{# Introducing the MySQL 8 Document Store This template defines the book template for use in the MyLibrary application using the base template. Dr. Charles Bell, 2017 #} {% extends "base.html" %} {% block title %}MyLibrary Search{% endblock %} {% block page_content %}
{{ form.csrf_token }}
Book - Detail {{ form.hidden_tag() }}
{{ form.isbn.label }}
{{ form.isbn(size=32) }}
{{ form.title.label }}
{{ form.title(size=100) }}
{{ form.year.label }}
{{ form.year(size=10) }}
{{ form.edition.label }}
{{ form.edition(size=10) }}
{{ form.language.label }}
{{ form.language(size=34) }}
{{ form.publisher.label }}
{{ form.publisher(style="width: 300px;") }}

{{ form.authors.label }}
{{ form.authors(size=100) }}
{# Show the new note text field if this is an update. #} {% if form.create_button.label.text == "Update" %}
{{ form.new_note.label }}
{{ form.new_note(rows='2',cols='100') }} {% endif %}

{{ form.create_button }} {% if form.del_button %} {{ form.del_button }} {% endif %}

{# Show the list of existing notes if there is a list. #} {% if notes %}
{% for note in notes %} {% endfor %}
Notes
{{ note }}

{% endif %}
{% endblock %}