{% extends "wagtailadmin/base.html" %} {% load embed_video_tags wagtailimages_tags wagtailadmin_tags static i18n l10n %} {% block titletag %}{% blocktrans trimmed with title=embed_video.title %}Editing embed video {{ title }}{% endblocktrans %}{% endblock %} {% block extra_css %} {{ block.super }} {% include "wagtailadmin/pages/_editor_css.html" %} {{ form.media.css }} {% endblock %} {% block extra_js %} {{ block.super }} {% include "wagtailadmin/pages/_editor_js.html" %} {{ 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=embed_video.title icon="media" usage_object=embed_video %} {% include "wagtailadmin/shared/non_field_errors.html" %}
{% csrf_token %}
{% for field in form %} {% if field.is_hidden %} {{ field }} {% else %} {% include "wagtailadmin/shared/field.html" %} {% endif %} {% endfor %}
{% if user_can_delete %} {% trans "Delete embed video" %} {% endif %}
{% video embed_video.url as my_video %} {% video my_video "small" %}
{% trans "URL" %}
{{ my_video.url }}
{% trans "Backend" %}
{{ my_video.backend }}
{% trans "Usage" %}
{% blocktrans trimmed count usage_count=embed_video.get_usage.count %}Used {{ usage_count }} time{% plural %}Used {{ usage_count }} times{% endblocktrans %}
{% endvideo %}
{% if user_can_delete %} {% trans "Delete embed video" %} {% endif %}
{% endblock %}