{% from 'book_cover.html' import book_cover_image %} {% extends "layout.html" %} {% block body %} {% if book %}
{{ book_cover_image(book, book.id|get_book_thumbnails(thumbnails)) }}
{% if g.user.role_delete_books() %}
{% if book.data|length > 1 %}

{{_('Delete formats:')}}

{% for file in book.data %}
{% endfor %}
{% endif %} {% endif %} {% if source_formats|length > 0 and conversion_formats|length > 0 %}

{{_('Convert book format:')}}

{% endif %}
{% for identifier in book.identifiers %} {% endfor %}
{{_('Remove')}}
{{_('Add Identifier')}}
{% if g.user.role_upload() or g.user.role_admin()%} {% if g.allow_upload %}
{% endif %} {% endif %}
{% if cc|length > 0 %} {% for c in cc %}
{% if c.datatype == 'bool' %} {% endif %} {% if c.datatype == 'int' or c.datatype == 'float' %} {% endif %} {% if c.datatype == 'text' %} 0 %} value="{% for column in book['custom_column_' ~ c.id] %}{{ column.value.strip() }}{% if not loop.last %}, {% endif %}{% endfor %}"{% endif %}> {% endif %} {% if c.datatype == 'series' %} 0 %} value="{% for column in book['custom_column_' ~ c.id] %} {{ '%s [%s]' % (book['custom_column_' ~ c.id][0].value, book['custom_column_' ~ c.id][0].extra|formatfloat(2)) }}{% if not loop.last %}, {% endif %}{% endfor %}" {% endif %}> {% endif %} {% if c.datatype == 'datetime' %}
0 %} value="{% if book['custom_column_' ~ c.id][0].value %}{{ book['custom_column_' ~ c.id][0].value|formatdateinput}}{% endif %}" {% endif %}> 0 %} value="{% if book['custom_column_' ~ c.id][0].value %}{{book['custom_column_' ~ c.id][0].value|formatdate}}{% endif %}" {% endif %}>
{% endif %} {% if c.datatype == 'comments' %} {% endif %} {% if c.datatype == 'enumeration' %} {% endif %} {% if c.datatype == 'rating' %} 0 %} value="{{ '%.1f' % (book['custom_column_' ~ c.id][0].value / 2) }}" {% endif %}> {% endif %}
{% endfor %} {% endif %} {% if g.user.role_upload() or g.user.role_admin()%} {% if g.allow_upload %}
{% endif %} {% endif %}
{{_('Fetch Metadata')}} {{_('Cancel')}}
{% endif %} {% endblock %} {% block modal %} {{ delete_book() }} {{ delete_confirm_modal() }} {% endblock %} {% block js %} {% if not g.user.locale == 'en' %} {% endif %} {% endblock %} {% block header %} {% endblock %}