{% extends "wagtailadmin/base.html" %} {% load static wagtailadmin_tags i18n wagtailvideos_tags %} {% block titletag %}{% blocktrans with title=video.title %}Editing video {{ title }}{% endblocktrans %}{% endblock %} {% block extra_css %} {{ block.super }} {% 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=video.title icon="media" %}
{% csrf_token %}
    {% for field in form %} {% if field.name == 'file' %} {% include "wagtailvideos/videos/_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 video" %} {% endif %}

{% trans "Video preview" %}

{% video video controls style=max-width:100% %} {% if can_transcode %}

Transcodes

If you wish to generate HTML5 compliant transcodes use the form below. This may take a while depending on the length of the video.

{% if transcodes %}

Available Transcodes

{% endif %}

Create transcode

    {% csrf_token %} {% include "wagtailadmin/shared/field_as_li.html" with field=transcode_form.media_format li_classes="label-above label-uppercase" %} {% include "wagtailadmin/shared/field_as_li.html" with field=transcode_form.quality li_classes="label-above label-uppercase" %}
{% else %}

Ffmpeg is not found on your server. Please install if you wish to transcode videos into an HTML5 video compliant format. {% endif %}
{% if video.thumbnail %}
{% trans "Thumbnail" %}
{% endif %}
{% trans "Filesize" %}
{% if filesize %}{{ filesize|filesizeformat }}{% else %}{% trans "File not found" %}{% endif %}
{% if video.duration %}
{% trans "Duration" %}
{{ video.formatted_duration }}
{% usage_count_enabled as uc_enabled %} {% if uc_enabled %}
{% trans "Usage" %}
{% blocktrans count usage_count=video.get_usage.count %}Used {{ usage_count }} time{% plural %}Used {{ usage_count }} times{% endblocktrans %}
{% endif %} {% endif %}
{% endblock %}