芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/avenida/modules/embedded-form-add.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 "Add Embedded" %} {% endblock %} {% block formButtons %} {% trans "Help" %}, XiboHelpRender("{{ help }}") {% trans "Cancel" %}, XiboDialogClose() {% trans "Save" %}, $("#embeddedForm").submit() {% endblock %} {% block formFieldActions %} [{ "field": "useDuration", "trigger": "init", "value": false, "operation": "is:checked", "actions": { ".duration-fields": { "display": "none" } } },{ "field": "useDuration", "trigger": "change", "value": false, "operation": "is:checked", "actions": { ".duration-fields": { "display": "none" } } },{ "field": "useDuration", "trigger": "init", "value": true, "operation": "is:checked", "actions": { ".duration-fields": { "display": "block" } } },{ "field": "useDuration", "trigger": "change", "value": true, "operation": "is:checked", "actions": { ".duration-fields": { "display": "block" } } }] {% endblock %} {% block formHtml %}
{% set title %}{% trans "Name" %}{% endset %} {% set helpText %}{% trans "An optional name for this widget" %}{% endset %} {{ forms.input("name", title, "", helpText) }} {% set title %}{% trans "Set a duration?" %}{% endset %} {% set helpText %}{% trans "Select to provide a specific duration for this Widget" %}{% endset %} {{ forms.checkbox("useDuration", title, 0, helpText) }} {% set title %}{% trans "Duration" %}{% endset %} {% set helpText %}{% trans "The duration in seconds this should be displayed" %}{% endset %} {{ forms.number("duration", title, module.getModule().defaultDuration, helpText, "duration-fields", "required") }} {% set title %}{% trans "Background transparent?" %}{% endset %} {% set helpText %}{% trans "Should the HTML be shown with a transparent background. Not current available on the Windows Display Client." %}{% endset %} {{ forms.checkbox("transparency", title, 0, helpText) }} {% set title %}{% trans "Scale Content?" %}{% endset %} {% set helpText %}{% trans "Should the embedded content be scaled along with the layout?" %}{% endset %} {{ forms.checkbox("scaleContent", title, 1, helpText) }} {% set helpText %}{% trans "HTML to Embed" %}{% endset %} {{ forms.textarea("embedHtml", "", "", helpText, "", "", 10) }} {% set styleDefault %} {% endset %} {% set helpText %}{% trans "Custom Style Sheets" %}{% endset %} {{ forms.textarea("embedStyle", "", styleDefault, helpText, "", "", 10) }} {% set scriptDefault %} {% endset %} {% set helpText %}{% trans "HEAD content to Embed (including script tags)" %}{% endset %} {{ forms.textarea("embedScript", "", scriptDefault, helpText, "", "", 10) }}
{% endblock %}