{% load i18n %} {% load static %} {% if form.non_field_errors %}

{{ form.non_field_errors }}

{% endif %} {% csrf_token %}

{% trans "Metadata" %}

{% include 'snippets/form_errors.html' with errors_list=form.title.errors id="desc_title" %}
{% include 'snippets/form_errors.html' with errors_list=form.subtitle.errors id="desc_subtitle" %}
{{ form.description }} {% include 'snippets/form_errors.html' with errors_list=form.description.errors id="desc_description" %}
{% include 'snippets/form_errors.html' with errors_list=form.series.errors id="desc_series" %}
{{ form.series_number }} {% include 'snippets/form_errors.html' with errors_list=form.series_number.errors id="desc_series_number" %}
{{ form.languages }} {% trans "Separate multiple values with commas." %} {% include 'snippets/form_errors.html' with errors_list=form.languages.errors id="desc_languages" %}
{% for subject in book.subjects %}
{% endfor %} {% include 'snippets/form_errors.html' with errors_list=form.subjects.errors id="desc_subjects" %}

{% trans "Publication" %}

{{ form.publishers }} {% trans "Separate multiple values with commas." %} {% include 'snippets/form_errors.html' with errors_list=form.publishers.errors id="desc_publishers" %}
{{ form.first_published_date }} {% include 'snippets/form_errors.html' with errors_list=form.first_published_date.errors id="desc_first_published_date" %}
{{ form.published_date }} {% include 'snippets/form_errors.html' with errors_list=form.published_date.errors id="desc_published_date" %}

{% trans "Authors" %}

{% if book.authors.exists %} {# preserve authors if the book is unsaved #}
{% for author in book.authors.all %}

{% blocktrans with name=author.name %}Author page for {{ name }}{% endblocktrans %}

{% endfor %}
{% endif %}
{% for author in add_author %} {% empty %} {% endfor %}

{% trans "Cover" %}

{% if book.cover %}
{% include 'snippets/book_cover.html' with book=book cover_class='is-h-xl-mobile is-w-auto-tablet' size_mobile='xlarge' size='large' %}
{% endif %}
{{ form.cover }}
{% include 'snippets/form_errors.html' with errors_list=form.cover.errors id="desc_cover" %}

{% trans "Physical Properties" %}

{{ form.physical_format }} {% include 'snippets/form_errors.html' with errors_list=form.physical_format.errors id="desc_physical_format" %}
{{ form.physical_format_detail }} {% include 'snippets/form_errors.html' with errors_list=form.physical_format_detail.errors id="desc_physical_format_detail" %}
{{ form.pages }} {% include 'snippets/form_errors.html' with errors_list=form.pages.errors id="desc_pages" %}

{% trans "Book Identifiers" %}

{{ form.isbn_13 }} {% include 'snippets/form_errors.html' with errors_list=form.isbn_13.errors id="desc_isbn_13" %}
{{ form.isbn_10 }} {% include 'snippets/form_errors.html' with errors_list=form.isbn_10.errors id="desc_isbn_10" %}
{{ form.openlibrary_key }} {% include 'snippets/form_errors.html' with errors_list=form.openlibrary_key.errors id="desc_openlibrary_key" %}
{{ form.inventaire_id }} {% include 'snippets/form_errors.html' with errors_list=form.inventaire_id.errors id="desc_inventaire_id" %}
{{ form.oclc_number }} {% include 'snippets/form_errors.html' with errors_list=form.oclc_number.errors id="desc_oclc_number" %}
{{ form.asin }} {% include 'snippets/form_errors.html' with errors_list=form.ASIN.errors id="desc_ASIN" %}
{% block scripts %} {% endblock %}