{% extends "wagtailadmin/base.html" %} {% load wagtailimages_tags wagtailadmin_tags i18n l10n %} {% block titletag %}{% blocktrans with title=image.title %}Editing image {{ title }}{% endblocktrans %}{% endblock %} {% block extra_css %} {{ block.super }} {{ form.media.css }} {% endblock %} {% block extra_js %} {{ block.super }} {{ form.media.js }} {% 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=image.title icon="image" %}
{% csrf_token %}
    {% for field in form %} {% if field.name == 'file' %} {% include "wagtailimages/images/_file_field_as_li.html" with li_classes="label-above label-uppercase" %} {% elif field.is_hidden %} {{ field }} {% else %} {% include "wagtailadmin/shared/field_as_li.html" with li_classes="label-above label-uppercase" %} {% endif %} {% endfor %}
{% if user_can_delete %} {% trans "Delete image" %} {% endif %}
{% image image max-800x600 as rendition %}
{% if url_generator_enabled %} {% trans "URL Generator" %}
{% endif %}

{% trans "Focal point" %} {% trans "(optional)" %}

{% trans "To define this image's most important region, drag a box over the image above." %} {% if image.focal_point %}({% trans "Current focal point shown" %}){% endif %}

{% image image original as original_image %}
{% trans "Max dimensions" %}
{{ original_image.width }}x{{ original_image.height }}
{% trans "Filesize" %}
{% if filesize %}{{ filesize|filesizeformat }}{% else %}{% trans "File not found" %}{% endif %}
{% usage_count_enabled as uc_enabled %} {% if uc_enabled %}
{% trans "Usage" %}
{% blocktrans count usage_count=image.get_usage.count %}Used {{ usage_count }} time{% plural %}Used {{ usage_count }} times{% endblocktrans %}
{% endif %}
{% if user_can_delete %} {% trans "Delete image" %} {% endif %}
{% endblock %}