{% 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 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.html" with li_classes="label-above label-uppercase" %}
  • {% endif %} {% endfor %}
  • {% if user_can_delete %} {% trans "Delete video" %} {% endif %}
{% video video controls style=max-width:100%;width:100%;height:auto; %}
{% if video.thumbnail %}
{% trans "Thumbnail" %}
{% trans 'Video thumbnail' %}
{% endif %}
{% trans "Filesize" %}
{% if filesize %}{{ filesize|filesizeformat }}{% else %}{% trans "File not found" %}{% endif %}
{% if video.duration %}
{% trans "Duration" %}
{{ video.formatted_duration }}
{% endif %}
{% trans "Usage" %}
{% blocktrans count usage_count=video.get_usage.count %}Used {{ usage_count }} time{% plural %}Used {{ usage_count }} times{% endblocktrans %}

{% trans "Transcodes" %}

{% trans "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 %}

{% trans "Available Transcodes" %}

{% endif %}

{% trans "Create transcode" %}

{% if transcoder_installed and transcoder_enabled %}
    {% csrf_token %}
  • {% include "wagtailadmin/shared/field.html" with field=transcode_form.media_format li_classes="label-above label-uppercase" %}
  • {% include "wagtailadmin/shared/field.html" with field=transcode_form.quality li_classes="label-above label-uppercase" %}
{% elif transcoder_installed and not transcoder_enabled %}

{% trans "Transcoding is disabled." %} {% elif not transcoder_installed and transcoder_enabled %}

{% trans "The selected transcoding backend is not installed on your server." %} {% else %}

{% trans "The selected transcoding backend is not installed on your server and you have disabled transcodes. Please install the backend requirements and enable transcoding if you wish to transcode videos into an HTML5 video compliant format." %} {% endif %} {% if tracks_action_url %}

{% trans "Tracks" %}

{% trans 'You can add/edit subtitles or accessibility captions for this video. For information about the filetype that should be used see the mozilla docs on WebVTT' %}

{% if video.track_listing %}
    {% for track in video.track_listing.tracks.all %}
  • {{ track }}
  • {% endfor %}
{% trans "Edit" %} {% else %} {% trans "Add tracks" %} {% endif %} {% endif %}
{% endblock %}