{% extends "wagtailadmin/base.html" %} {% load i18n %} {% load wagtailimages_tags %} {% block titletag %}{% blocktrans with title=document.title %}Editing {{ title }}{% endblocktrans %}{% endblock %} {% block extra_js %} {{ block.super }} {% url 'wagtailadmin_tag_autocomplete' as autocomplete_url %} {% endblock %} {% block content %} {% trans "Editing" as editing_str %} {% include "wagtailadmin/shared/header.html" with title=editing_str subtitle=document.title icon="doc-full-inverse" usage_object=document %}
{% csrf_token %}
    {% for field in form %} {% if field.name == 'file' %} {% include "wagtaildocs/documents/_file_field_as_li.html" %} {% else %} {% include "wagtailadmin/shared/field_as_li.html" %} {% endif %} {% endfor %}
  • {% if user_can_delete %} {% trans "Delete document" %} {% endif %}
{% if document.file %}
{% trans "Filesize" %}
{% if filesize %}{{ filesize|filesizeformat }}{% else %}{% trans "File not found" %}{% endif %}
{% endif %}
{% endblock %}