{% 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 %}
{% 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 %}
{% if can_transcode %}

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

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

{% trans "Ffmpeg is not found on your server or you have disabled transcodes. Please install Ffmepg and make sure that transcoding is enabled 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 %}