{% if not is_main_dir %}
{% include 'page-elements/components/widgets/remove-folder.twig' with { 'folder_path' : subdirectory_path, 'upload_module_dir' : upload_module_dir, 'files_count_in_tree' : files_count_in_tree, 'popoverContent' : "video.popover.removeFolder"|trans } %}
{% endif %}

{{ 'video.labels.headers.main' | trans }}

{% include "page-elements/components/editable-module-content.twig" with { id : (module_data is not null ? module_data.getId() : null), record_type : constant('App\\Entity\\Modules\\ModuleData::RECORD_TYPE_DIRECTORY'), module : constant('App\\Controller\\Modules\\ModulesController::MODULE_NAME_VIDEO'), record_identifier : upload_path, description : (module_data is not null ? module_data.getDescription() : "") }%}
{# Topbar #}
{# Tags #}

{{ 'video.labels.tags' | trans }}

{# Buttons here will be generated via JS #}
{# Search #}
{# the leading "/" in twig tpl must be added because to display video from upload dir it needs to have "/" #}
{% for video in all_video %} {% set tags = ( "" == video[KEY_TAGS] ? "[]" : video[KEY_TAGS] ) %} {% set tags_list = jsonDecode(tags) | join(', ') %}
{% include 'page-elements/components/forms/input-rounded-checkbox.twig' with { "wrapperStyles" : "padding: 5px;", "labelStyle" : "left: 13px;", "classes" : "pointer", "inputDataValue" : video[KEY_FILE_FULL_PATH], "additionalAttributes" : " data-is-mass-action-checkbox data-value=\'" ~ video[KEY_FILE_FULL_PATH] ~ "\' " }%}

{{ substring(video[KEY_FILE_NAME]) }}

{# popover attr #}
{% endfor %}
{% include 'page-elements/components/widgets/plus-icon.twig' with { 'widgetName' : "my-files-upload-widget", 'id' : "my-files-upload-widget", 'popoverContent' : "video.popover.addFiles"|trans } %} {% include 'page-elements/components/widgets/new-folder-icon.twig' with { 'widgetName' : "new-folder-widget", 'id' : "my-video-new-folder-widget", 'style' : "margin-top: 10px; background-color: #0062cc; opacity: .5;", 'popoverContent' : "video.popover.addFolder"|trans } %} {% include 'page-elements/components/upload-modules/settings.twig' with { reloaded_menu_node : constant("App\\Action\\System\\AppAction::MENU_NODE_MODULE_NAME_MY_VIDEO"), popover_translation_string : "files.popover.settings" } %}