{% 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")}}


Results: "{{ query }}" included in {{ count }} out of {{ whole }} items


{% with messages = get_flashed_messages() %} {% if messages %}
{% endif %} {% endwith %}
{% for book in books|sort(attribute='title', reverse = False) %}

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

{% endfor %}

Other books

{% for book in books_all|sort(attribute='title', reverse = False) %}

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

{% endfor %}

See all books

{% endblock %}