芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/avenida/views/settings-page.twig
{# /* * Spring Signage Ltd - http://www.springsignage.com * Copyright (C) 2015 Spring Signage Ltd * (${FILE_NAME}) */ #} {% extends "authed.twig" %} {% import "forms.twig" as forms %} {% block actionMenu %}
{% if settings.SETTING_IMPORT_ENABLED %}
{% trans "Import" %}
{% endif %}
{% trans "Export" %}
{% if settings.SETTING_LIBRARY_TIDY_ENABLED %}
{% trans "Tidy Library" %}
{% endif %}
{% endblock %} {% block pageContent %}
{% trans "Settings" %}
{% set first = true %} {% for category in categories %} {% set transCatTabName = category.tabName %}
{% trans transCatTabName %}
{% set first = false %} {% endfor %}
{% for field in fields %} {% if currentCat != field.cat %} {% if currentCat != "" %}
{% endif %}
{% set currentCat = field.cat %} {% set transFieldCat = field.cat %}
{% trans transFieldCat %}
{% 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 == "dropdown" %} {{ forms.dropdown(field.name, "single", field.title, field.value, field.options, "id", "value", field.helpText) }} {% elseif field.fieldType == "timezone" %} {{ forms.dropdown(field.name, "single", field.title, field.value, field.options, "id", "value", field.helpText) }} {% elseif field.fieldType == "datetime" %} {{ forms.datetime(field.name, field.title, field.value, field.helpText) }} {% endif %} {% endfor %}
{% trans "Save" %}
{% endblock %} {% block javaScript %} {% endblock %} {% block javaScriptTemplates %} {{ parent() }} {% raw %} {% endraw %} {% endblock %}