{% if mode == 'view_video' %} {% if no_video_id %}

{{'The videoId parameter has not been provided. Please provide it in the GET request of the URL.'|trans}}

{% elseif not_found %}

{{'Video not found.'|trans}}

{% else %} {% if video.last_updated %}
{{video.last_updated}}
{% endif %} {% if edit_video_button or delete_video_button %}
{% if edit_video_button %} {% set editVideoOnclick = "zenario_conductor.go(" ~ json_encode(slotName) ~ ", 'edit_video', " ~ json_encode({videoId: videoId}) ~ "); return false;" %} {{'Edit'|trans}} {% endif %} {% if delete_video_button %} {% set deleteVideoOnclick = " zenario_videos_fea.deleteVideoConfirm( " ~ json_encode(slotName) ~ ", " ~ json_encode(containerId) ~ ", " ~ json_encode(Ajax_link) ~ ", " ~ json_encode(Video_id) ~ ", " ~ json_encode(this.phrase("Delete video")) ~ ", " ~ json_encode(this.phrase("Are you sure you want to delete this video?")) ~ ", " ~ json_encode(this.phrase("Delete")) ~ ", " ~ json_encode(this.phrase("Cancel")) ~ " ); " %} {{'Delete'|trans}} {% endif %}
{% endif %}
{% if video.embed %} {{video.embed}} {% if Logged_in_user_is_admin and Video_organizer_href_start %} i {% endif %} {% else %}

{{'Video failed to load. If this video has been uploaded in the past few minutes, it may still be being processed.'|trans}}

{% endif %}
{% if show_video_title %} <{{video_title_tags}}>{{video.title|e}} {% endif %} {% if videoHasNoThumbnail %}

{{'This video has no thumbnail, click Edit to fix'|trans}}

{% endif %}
{{video.description}}

{{video.date|e}}

{% if show_privacy_info and video.privacy %}
{{video.privacy}}
{% if video.shareable_link %} {% endif %} {% endif %} {% if video.language %}
{{video.language}}
{% endif %}
{% endif %} {% elseif mode == 'new_video' or mode == 'edit_video' %} {# Currently disabled until we replace the upload library. #} {# do requireJsLib(module_loc ~ 'js/new_video_edit_video.js') #}
{% if last_updated %}
{{last_updated}}
{% endif %}

{{title}}

{% if mode == 'edit_video' and videoThumbnailHref %} {% if thumbnailNotSavedYet %}

{{'Thumbnail fetched.'|trans}}

{% endif %} {% if thumbnailNotSavedYet %}

{{'Click Save to save this thumbnail.'|trans}}

{% endif %} {% endif %} {% if mode == 'new_video' %}

{% if uploaded_or_added_by_url == "upload_a_video" %} {{"Video successfully uploaded."|trans}} {{"It may take a few minutes for the video to be processed, and the video will not be visible until the processing is complete."|trans}} {% elseif uploaded_or_added_by_url == "add_video_by_url" %} {{"Video added successfully"|trans}} {% endif %}

{# Uploading videos is currently disabled. Need to replace the upload library. #} {# #}
{% endif %} {{openForm}}

{{"Please enter the title."|trans}}



{{this.frameworkField({'type': "date", 'name': "date", 'id': "date", 'class': "input_date zenario_datepicker"})}}
{% if languages_are_available and language_id_values %}
{# When the video file picker is shown, all attributes become readonly. As there is no readonly parameter for select lists, #} {# it has to be disabled and its value has to be copied to the hidden input below. #}
{% if language_is_mandatory %}

{{"Please select a language."|trans}}

{% endif %} {% endif %} {% if mode == 'edit_video' %} {% if video_privacy %}
{{video_privacy}}
{% endif %} {% elseif mode == 'new_video' %} {% if vimeo_privacy_settings %}

{{"Privacy"|trans}}:

{% for privacy_setting_key, privacy_setting in vimeo_privacy_settings %}
{{privacy_setting.note|trans}}
{% endfor %}
{% endif %} {% endif %} {% if video_categories %}
{{"Categories"|trans}}: {% for video_category_id, video_category_label in video_categories %} {% endfor %}
{% endif %}
{% if mode == 'new_video' %} {% endif %} {{closeForm}} {% if mode == 'new_video' %} {% endif %}
{% endif %}