{% extends 'base.html' %} {% block main %}
{% from "_formhelpers.html" import render_field %}
{{ form.select(style="width: 100px; margin: 10px; float: left; font-size: 20px") }}


{{ form.grid(style="font-size:20px")}}{{ form.listview(style="font-size:20px")}}

All Books

{% with messages = get_flashed_messages() %} {% if messages %}
{% endif %} {% endwith %}
{% for book in books %}

{{ book.title }} ({{ book.year_published or '–' }})
{% for author in book.authors %} {{ author.author_name }}
{% endfor %}

{% endfor %}
{% endblock %}