{# /** * 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 "form-base.twig" %} {% block formHtml %} {% if spotsFound <= 0 %}
{% trans "This Playlist does not have any Spots for you to manage. Please choose another." %}
{% endif %} {% if spotsFound > 0 %}

{{ playlist.name }} {{ spotsFound }} {% trans "Spots" %}

{% set widgetLength = playlist.widgets|length %} {% set remaining = spotsFound - widgetLength %} {% for widget in playlist.widgets %}
{{ loop.index }}
{% if widget.getUnmatchedProperty("viewble") %} {% if widget.type == 'image' %} {% set downloadUrl = url_for("library.download", {id: widget.getPrimaryMediaId()}) %} {% set thumbnailUrl = url_for("library.thumbnail", {id: widget.getPrimaryMediaId()}) %} {{ {% else %} {% endif %} {% endif %}
{% if widget.getUnmatchedProperty("regionSpecific") == 0 and widget.getUnmatchedProperty("editable") %} {% if not widget.getUnmatchedProperty("viewble") %} {% elseif not widget.getUnmatchedProperty("editable") %} {% else %} {% endif %} {% else %} {% endif %}
{% if widget.getUnmatchedProperty("deletable") == 1 and currentUser.featureEnabled("playlist.modify") and widget.getUnmatchedProperty("regionSpecific") == 0 %} {% endif %}
{% endfor %} {% if remaining > 0 %} {% for i in 0..remaining - 1 %}
{{ loop.index + widgetLength }}
{% if loop.first %} {% else %} {% endif %}
{% endfor %} {% endif %}
{% endif %} {% endblock %}