芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/sommatv/views/region-form-timeline.twig
{# /* * Spring Signage Ltd - http://www.springsignage.com * Copyright (C) 2015 Spring Signage Ltd * (${FILE_NAME}) */ #} {% extends "form-base.twig" %} {% import "forms.twig" as forms %} {% block formTitle %} {% trans "Region Timeline" %} {% endblock %} {% block formButtons %} {% trans "Help" %}, XiboHelpRender("{{ help }}") {% trans "Close" %}, XiboDialogClose() {% trans "Switch to Grid" %}, XiboSwapDialog("{{ urlFor("region.timeline.form", {id: region.regionId}) }}?view=grid") {% trans "Save Order" %}, XiboTimelineSaveOrder("timelineControl") {% endblock %} {% block callBack %}loadTimeLineCallback{% endblock %} {% block formHtml %} {# TODO: We will need to design a playlist selector #} {% set playlist = region.playlists[0] %}
{% trans "Add Media" %}
{% trans "Library" %}
{% set isAudioEnabled = 0 %} {% for module in modules %} {% if module.regionSpecific %}
{{ module.name }}
{% else %}
{{ module.name }}
{% endif %} {% if module.type == "audio" %} {% set isAudioEnabled = 1 %} {% endif %} {% endfor %}
{% for widget in playlist.widgets %} {% set name = widget.module.getName() %} {% set duration = widget.duration %} {% if options.REGION_OPTIONS_COLOURING == "Permissions" %} {% if currentUser.checkEditable(widget) %} {% set coloring = "timelineMediaItemColouring_enabled" %} {% else %} {% set coloring = "timelineMediaItemColouring_disabled" %} {% endif %} {% else %} {% set coloring %}timelineMediaItemColouringDefault timelineMediaItemColouring_{{ widget.type }}{% endset %} {% endif %}
{% if widget.module.getTransition("in") != "None" %}
{{ widget.module.getTransition("in") }}
{% endif %}
{% if currentUser.checkEditable(widget) %}
{% trans "Edit" %}
{% endif %} {% if currentUser.checkDeleteable(widget) %}
{% trans "Delete" %}
{% endif %} {% if currentUser.checkPermissionsModifyable(widget) %}
{% trans "Permissions" %}
{% endif %} {% if transitions.in|length > 0 %}
{% trans "In Transition" %}
{% endif %} {% if transitions.out|length > 0 %}
{% trans "Out Transition" %}
{% endif %} {% if isAudioEnabled and widget.type != "audio" and currentUser.checkEditable(widget) %}
{# Do we have audio already assigned? #} {% if widget.countAudio <= 0 %}
{% else %}
{% endif %}
{% endif %}
{% if widget.useDuration %}
{% trans %}{{ name }} ({{ duration }} seconds){% endtrans %}
{% else %}
{{ name }}
{% endif %}
{{ widget.module.hoverPreview()|raw }}
{% if widget.module.getTransition("out") != "None" %}
{{ widget.module.getTransition("out") }}
{% endif %}
{% endfor %}
{% endblock %}