{% extends "layout.html" %} {% block body %} {% if book %}
{{ book.title }}
{% 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 %}
{% 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 in ['text', 'series'] and not c.is_multiple %} 0 %} value="{{ book['custom_column_' ~ c.id][0].value }}" {% endif %}> {% endif %} {% if c.datatype in ['text', 'series'] and c.is_multiple %} 0 %} value="{% for column in book['custom_column_' ~ c.id] %}{{ column.value.strip() }}{% if not loop.last %}, {% endif %}{% endfor %}"{% endif %}> {% endif %} {% if c.datatype == 'enumeration' %} {% endif %} {% if c.datatype == 'rating' %} 0 %} value="{{ '%d' % (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 %}
{{_('Get metadata')}} {{_('Back')}}
{% endif %} {% endblock %} {% block modal %} {% if g.user.role_delete_books() %} {% endif %} {% endblock %} {% block js %} {% if not g.user.locale == 'en' %} {% endif %} {% endblock %} {% block header %} {% endblock %}