芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/midiatech/views/module-form-transition.twig
{# /** * Copyright (C) 2019 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" %} {% import "forms.twig" as forms %} {% block formTitle %} {% set name = module.getName() %} {% trans %}Edit {{ type }} Transition for {{ name }}{% endtrans %} {% endblock %} {% block formButtons %} {% trans "Help" %}, XiboHelpRender("{{ help }}") {% trans "Cancel" %}, XiboDialogClose() {% trans "Save" %}, $("#moduleTransitionEditForm").submit() {% endblock %} {% block formFieldActions %} [{ "field": "transitionType", "trigger": "init", "value": 0, "operation": "equals", "actions": { ".transition-group": { "display": "none" } } },{ "field": "transitionType", "trigger": "init", "value": 0, "operation": "not", "actions": { ".transition-group": { "display": "block" } } },{ "field": "transitionType", "trigger": "change", "value": 0, "operation": "equals", "actions": { ".transition-group": { "display": "none" } } },{ "field": "transitionType", "trigger": "change", "value": 0, "operation": "not", "actions": { ".transition-group": { "display": "block" } } }] {% endblock %} {% block formHtml %}
{% if type == "in" %} {% set transitionsWithEmpty = [{code: "", transition: ""}]|merge(transitions.in) %} {% set trans = module.getOption("transIn", null) %} {% set transDuration = module.getOption("transInDuration", null) %} {% set transDirection = module.getOption("transInDirection") %} {% set helpText %}{% trans "What transition should be applied when this item starts?" %}{% endset %} {% elseif type == "out" %} {% set transitionsWithEmpty = [{transitionId: null, transition: ""}]|merge(transitions.out) %} {% set trans = module.getOption("transOut", null) %} {% set transDuration = module.getOption("transOutDuration", null) %} {% set transDirection = module.getOption("transOutDirection") %} {% set helpText %}{% trans "What transition should be applied when this item finishes?" %}{% endset %} {% else %} {% set message %}{% trans "Unknown Transition Type Requested" %}{% endset %} {{ forms.message(message) }} {% endif %} {% set title %}{% trans "Transition" %}{% endset %} {{ forms.dropdown("transitionType", "single", title, trans, transitionsWithEmpty, "code", "transition", helpText) }} {% set title %}{% trans "Duration" %}{% endset %} {% set helpText %}{% trans "The duration for this transition, in milliseconds." %}{% endset %} {{ forms.number("transitionDuration", title, transDuration, helpText) }} {% set title %}{% trans "Direction" %}{% endset %} {% set helpText %}{% trans "The direction for this transition. Only appropriate for transitions that move, such as Fly." %}{% endset %} {{ forms.dropdown("transitionDirection", "single", title, transDirection, transitions.compassPoints, "id", "name", helpText, "transition-group transition-direction") }}
{% endblock %}