芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/avenida/views/displayprofile-form-edit.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 "Edit Profile" %} {% endblock %} {% block formButtons %} {% trans "Help" %}, XiboHelpRender("{{ help }}") {% trans "Cancel" %}, XiboDialogClose() {% trans "Save" %}, $("#displayProfileForm").submit() {% endblock %} {% block formHtml %}
{% set first = true %} {% for tab in displayProfile.configTabs %}
{{ tab.name }}
{% set first = false %} {% endfor %} {% if commands|length > 0 %}
{% trans "Commands" %}
{% endif %}
{% for field in displayProfile.configDefault %} {% if currentCat != field.tabId %} {% if currentCat != "" %}
{% endif %}
{% if field.tabId == "general" %} {% set title %}{% trans "Name" %}{% endset %} {% set helpText %}{% trans "The Name of the Profile - (1 - 50 characters)" %}{% endset %} {{ forms.input("name", title, displayProfile.name, helpText) }} {% set title %}{% trans "Default Profile?" %}{% endset %} {% set helpText %}{% trans "Is this the default profile for all Displays of this type? Only 1 profile can be the default." %}{% endset %} {{ forms.checkbox("isDefault", title, displayProfile.isDefault, helpText) }} {% endif %} {% set currentCat = field.tabId %} {% endif %} {# Now we have to output the relevant form field #} {% if field.enabled != 1 %} {{ forms.disabled(field.name, field.title, field.value, field.helpText) }} {% elseif field.fieldType == "text" %} {{ forms.input(field.name, field.title, field.value, field.helpText) }} {% elseif field.fieldType == "number" %} {{ forms.number(field.name, field.title, field.value, field.helpText) }} {% elseif field.fieldType == "email" %} {{ forms.email(field.name, field.title, field.value, field.helpText) }} {% elseif field.fieldType == "checkbox" %} {{ forms.checkbox(field.name, field.title, field.value, field.helpText) }} {% elseif field.fieldType == "timePicker" %} {{ forms.time(field.name, field.title, field.value, field.helpText) }} {% elseif field.fieldType == "dropdown" %} {{ forms.dropdown(field.name, "single", field.title, field.value, field.options, "id", "value", field.helpText) }} {% endif %} {% endfor %}
{% if commands|length > 0 %}
{% for field in commands %} {% set title %}{% trans "Name" %}{% endset %} {{ forms.disabled("command", title, field.command, field.description) }} {% set fieldId = "commandString_" ~ field.commandId %} {% set title %}{% trans "Command" %}{% endset %} {% set helpText %}{% trans "The Command String for this Command on this display" %}{% endset %} {{ forms.input(fieldId, title, field.commandString, helpText) }} {% set fieldId = "validationString_" ~ field.commandId %} {% set title %}{% trans "Validation" %}{% endset %} {% set helpText %}{% trans "The Validation String for this Command on this display" %}{% endset %} {{ forms.input(fieldId, title, field.validationString, helpText) }} {% endfor %}
{% endif %}
{% endblock %}