{# /** * Copyright (C) 2022 Xibo Signage Ltd * * Xibo - Digital Signage - http://www.xibo.org.uk * * This file is part of Xibo. * * Xibo is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * Xibo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with Xibo. If not, see . */ #} {% extends "authed.twig" %} {% import "inline.twig" as inline %} {% block title %}{{ "Library"|trans }} | {% endblock %} {% block actionMenu %}
{% if currentUser.featureEnabledCount(["library.add", "library.modify"]) > 0 or settings.SETTING_LIBRARY_TIDY_ENABLED == 1 %} {% if currentUser.featureEnabled("library.add") %} {% endif %} {% if settings.SETTING_LIBRARY_TIDY_ENABLED == 1 and currentUser.featureEnabled("library.modify") %} {% endif %} {% endif %}
{% endblock %} {% block pageContent %}
{% trans "Library" %}
{% set title %}{% trans "ID" %}{% endset %} {{ inline.number("mediaId", title) }} {% set title %}{% trans "Name" %}{% endset %} {{ inline.inputNameGrid('media', title) }} {% if currentUser.featureEnabled("tag.tagging") %} {% set title %}{% trans "Tags" %}{% endset %} {% set exactTagTitle %}{% trans "Exact match?" %}{% endset %} {% set logicalOperatorTitle %}{% trans "When filtering by multiple Tags, which logical operator should be used?" %}{% endset %} {% set helpText %}{% trans "A comma separated list of tags to filter by. Enter a tag|tag value to filter tags with values. Enter --no-tag to filter all items without tags. Enter - before a tag or tag value to exclude from results." %}{% endset %} {{ inline.inputWithTags("tags", title, null, helpText, null, null, null, "exactTags", exactTagTitle, logicalOperatorTitle) }} {% endif %} {% set attributes = [ { name: "data-allow-clear", value: "true" }, { name: "data-placeholder--id", value: null }, { name: "data-placeholder--value", value: "" } ] %} {% set title %}{% trans "Owner" %}{% endset %} {% set helpText %}{% trans "Show items owned by the selected User." %}{% endset %} {% set attributes = [ { name: "data-width", value: "200px" }, { name: "data-allow-clear", value: "true" }, { name: "data-placeholder--id", value: null }, { name: "data-placeholder--value", value: "" }, { name: "data-search-url", value: url_for("user.search") }, { name: "data-search-term", value: "userName" }, { name: "data-search-term-tags", value: "tags" }, { name: "data-id-property", value: "userId" }, { name: "data-text-property", value: "userName" }, { name: "data-initial-key", value: "userId" }, ] %} {{ inline.dropdown("ownerId", "single", title, "", null, "userId", "userName", helpText, "pagedSelect", "", "", "", attributes) }} {% set title %}{% trans "Owner User Group" %}{% endset %} {% set helpText %}{% trans "Show items owned by users in the selected User Group." %}{% endset %} {% set attributes = [ { name: "data-width", value: "200px" }, { name: "data-allow-clear", value: "true" }, { name: "data-placeholder--id", value: null }, { name: "data-placeholder--value", value: "" }, { name: "data-search-url", value: url_for("group.search") }, { name: "data-search-term", value: "group" }, { name: "data-id-property", value: "groupId" }, { name: "data-text-property", value: "group" }, { name: "data-initial-key", value: "userGroupId" }, ] %} {{ inline.dropdown("ownerUserGroupId", "single", title, "", null, "groupId", "group", helpText, "pagedSelect", "", "", "", attributes) }} {% set title %}{% trans "Type" %}{% endset %} {{ inline.dropdown("type", "single", title, "", [{"type": none, "name": ""}]|merge(modules), "type", "name") }} {% set title %}{% trans "Retired" %}{% endset %} {% set values = [{id: 0, value: "No"}, {id: 1, value: "Yes"}] %} {{ inline.dropdown("retired", "single", title, 0, values, "id", "value") }} {{ inline.hidden("folderId") }} {% set title %}{% trans "Layout ID" %}{% endset %} {{ inline.number("layoutId", title, layoutId) }} {% set title %}{% trans "Orientation" %}{% endset %} {% set option1 = "All"|trans %} {% set option2 = "Landscape"|trans %} {% set option3 = "Portrait"|trans %} {% set values = [{id: '', value: option1}, {id: 'landscape', value: option2}, {id: 'portrait', value: option3}] %} {{ inline.dropdown("orientation", "single", title, '', values, "id", "value") }}

{% trans 'No Folders matching the search term' %}

{% if currentUser.featureEnabled("tag.tagging") %}{% endif %}
{% trans "ID" %} {% trans "Name" %} {% trans "Type" %}{% trans "Tag" %}{% trans "Thumbnail" %} {% trans "Duration" %} {% trans "Duration (seconds)" %} {% trans "Size" %} {% trans "Size (bytes)" %} {% trans "Resolution" %} {% trans "Owner" %} {% trans "Sharing" %} {% trans "Revised" %} {% trans "Released" %} {% trans "File Name" %} {% trans "Stats?" %} {% trans "Created" %} {% trans "Modified" %} {% trans "Expires" %}
{% endblock %} {% block javaScript %} {% endblock %}