芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/fmd/views/forms.twig
{% macro disabled(name, title, value, helpText, groupClass) %}
{{ title }}
{{ value }}
{{ helpText }}
{% endmacro %} {% macro hidden(name, value) %}
{% endmacro %} {% macro raw(text, groupClass) %}
{{ text }}
{% endmacro %} {% macro message(message, groupClass) %}
{{ message }}
{% endmacro %} {% macro button(title, type, link, groupClass, id) %}
{% if type == "link" %}
{{ title }}
{% else %}
{{ title }}
{% endif %}
{% endmacro %} {% macro input(name, title, value, helpText, groupClass, validation, accessKey) %}
{{ title }}
{{ helpText }}
{% endmacro %} {% macro inputWithButton(name, title, value, helpText, groupClass, validation, accessKey, buttonId, buttonTitle, buttonType, buttonLink) %}
{{ title }}
{{ helpText }}
{% if buttonType == "link" %}
{{ buttonTitle }}
{% else %}
{{ buttonTitle }}
{% endif %}
{% endmacro %} {% macro inputWithTags(name, title, value, helpText, groupClass, validation, accessKey) %}
{{ title }}
{{ helpText }}
{% endmacro %} {% macro number(name, title, value, helpText, groupClass, validation, accessKey) %}
{{ title }}
{{ helpText }}
{% endmacro %} {% macro email(name, title, value, helpText, groupClass, validation, accessKey) %}
{{ title }}
{{ helpText }}
{% endmacro %} {% macro password(name, title, value, helpText, groupClass, validation, accessKey) %}
{{ title }}
{{ helpText }}
{% endmacro %} {% macro textarea(name, title, value, helpText, groupClass, validation, rows) %}
{{ helpText }}
{{ value }}</textarea>
{% endmacro %} {% macro checkbox(name, title, value, helpText, groupClass, accessKey) %}
{{ title }}
{{ helpText }}
{% endmacro %} {% macro radio(name, id, title, value, helpText, groupClass, accessKey, setValue) %}
{{ title }}
{{ helpText }}
{% endmacro %} {% macro dropdown(name, type, title, value, options, optionId, optionValue, helpText, groupClass, validation, accessKey, callBack, dataAttributes, optionGroups, optionImageValue) %}
{{ title }}
0 %} {% for attribute in dataAttributes %} {{ attribute.name }}="{{ attribute.value }}" {% endfor %} {% endif %}> {% set hasGroups = optionGroups|length > 0 %} {% if not hasGroups %} {% set optionGroups = {label: "General"} %} {% endif %} {% for group in optionGroups %} {% if hasGroups %}
{% set tempOptions = attribute(options, group.id) %} {% else %} {% set tempOptions = options %} {% endif %} {% for option in tempOptions %} {% if optionId == "" %} {% set itemOptionId = option %} {% set itemOptionValue = option %} {% if optionImageValue %} {% set itemOptionImageValue = option %} {% endif %} {% else %} {% set itemOptionId = attribute(option, optionId) %} {% set itemOptionValue = attribute(option, optionValue) %} {% if optionImageValue %} {% set itemOptionImageValue = attribute(option, optionImageValue) %} {% endif %} {% endif %} {% if type == "dropdownmulti" %} {% set selected = (itemOptionId in value) %} {% else %} {% set selected = (itemOptionId == value) %} {% endif %}
{{ itemOptionValue }}
{% endfor %} {% if hasGroups %}
{% endif %} {% endfor %}
{{ helpText }}
{% endmacro %} {% macro dateTime(name, title, value, helpText, groupClass, validation, accessKey) %}
{{ title }}
{# form-control-inline brings these two columns back onto the same line (resetting form-control) #}
{{ helpText }}
{% endmacro %} {% macro date(name, title, value, helpText, groupClass, validation, accessKey) %}
{{ title }}
{% set linkedName %}{{ name }}Link{% endset %}
{{ helpText }}
{% endmacro %} {% macro time(name, title, value, helpText, groupClass, validation, accessKey) %}
{{ title }}
{% set linkedName %}{{ name }}Link{% endset %}
{{ helpText }}
{% endmacro %}