{% extends 'layout/page.html' %} {% import 'layout/view.tmpl' as view with context -%} {% import 'layout/edit.tmpl' as edit with context -%} {% block head_title %} {% trans %}File display{% endtrans %} {% endblock %} {% block page_header %} {% trans %}File display{% endtrans %} {% endblock %} {% block content %} {% include 'layout/permission.html' %} {% if context.is_view_ok() %}
{% if context.is_edit_ok() %} {{ edit.field_small('Name', 'name', 'name', required=True) }} {{ edit.field_small('Content Type', 'type', 'type', required=True) }} {% else %} {{ view.field_small('Name', 'name') }} {{ view.field_small('Content Type', 'type') }} {% endif %}
{% if '@multilink' in request.form %} {% endif %} {% if context.is_edit_ok() %}
{{ context.submit(html_kwargs={'class': 'btn btn-primary'})|u|safe }}
{% endif %}
{% endif %} {% if context.id and context.is_view_ok() %}
{% trans %}Download{% endtrans %}
{% endif %}
{{ context.history()|u|safe }} {% endblock %}