{# * Copyright (C) 2021 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 %}{{ "Playlists"|trans }} | {% endblock %} {% block actionMenu %}
{% if currentUser.featureEnabled("playlist.add") %} {% endif %}
{% endblock %} {% block pageContent %}
{% trans "Playlists" %}
{% set title %}{% trans "Name" %}{% endset %} {{ inline.inputNameGrid('name', 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-live-search", value: "true" }, { name: "data-selected-text-format", value: "count > 4" } ] %} {% 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("userId", "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) }} {{ inline.hidden("folderId") }} {% set title %}{% trans "Layout ID" %}{% endset %} {{ inline.number("layoutId", title, layoutId) }}
{% set title %}{% trans "Show" %}{% endset %} {% set values = [{id: 1, value: "All"}, {id: 2, value: "Only Used"}, {id: 3, value: "Only Unused"}] %} {{ inline.dropdown("playlistStatusId", "single", title, 1, values, "id", "value") }} {% if currentUser.featureEnabled("library.view") %} {% set title %}{% trans "Media" %}{% endset %} {{ inline.input("mediaLike", title) }} {% endif %}

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

{% if currentUser.featureEnabled("tag.tagging") %}{% endif %}
{% trans "ID" %} {% trans "Name" %} {% trans "Duration" %}{% trans "Tags" %}{% trans "Dynamic?" %} {% trans "Owner" %} {% trans "Sharing" %} {% trans "Created" %} {% trans "Modified" %} {% trans "Stats?" %}
{% endblock %} {% block javaScript %} {# Add common files #} {% include "editorTranslations.twig" %} {% include "editorVars.twig" %} {% endblock %}