{% extends "wagtailadmin/base.html" %} {% load wagtailadmin_tags i18n l10n %} {% block titletag %}{% blocktrans trimmed with title=video.title %}Editing video {{ title }} {% endblocktrans %}{% endblock %} {% block extra_css %} {{ block.super }} {{ form.media.css }} {% include "wideo/preview/plyr_styles.html" %} {% 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=video.title icon="video" %} {% include "wagtailadmin/shared/non_field_errors.html" %}
{% csrf_token %}
{% for field in form %} {% if field.name == 'upload' %} {% include "wideo/forms/file_edit.html" %} {% elif field.is_hidden %} {{ field }} {% else %} {% include "wagtailadmin/shared/field.html" %} {% endif %} {% endfor %}
{% if user_can_delete %} {% trans "Delete video" %} {% endif %}
{% if user_can_delete %} {% trans "Delete video" %} {% endif %}
{% include "wideo/preview/video_source.html" with current_video_id=video.upload.id %} {% endblock %}