Legend:
- Unmodified
- Added
- Removed
-
inc/admin/default-templates/forms/form_layout.html.twig
r1154 r1316 51 51 {% set nestedlabel = true %} 52 52 {% set labelclass = "classic" %} 53 {% set descafter = true %} 53 54 {{ block('field_input') }} 54 {#{% spaceless %}55 56 {% if label is not empty %}57 <label for="{{name}}" class="classic">58 {% endif %}59 <input type="checkbox" {{ block('field_attr') }}{% if value is defined %} value="{{ value }}"{% endif %}{% if checked %} checked="checked"{% endif %} />60 {% if label is not empty %}61 {{ label }}</label>62 {% endif %}63 {% endspaceless %}#}64 55 {% endblock field_checkbox %} 65 56 66 57 {% block field_attr %} 67 58 {% spaceless %} 68 id="{{id}}" name="{{name}}" {% if read_only %} disabled="disabled"{% endif %}{% if required %} required="required"{% endif %}{% if max _length %} maxlength="{{ max_length }}"{% endif %}{% if pattern %} pattern="{{ pattern }}"{% endif %}59 id="{{id}}" name="{{name}}" {% if read_only %} disabled="disabled"{% endif %}{% if required %} required="required"{% endif %}{% if maxlength %} maxlength="{{ maxlength }}"{% endif %}{% if pattern %} pattern="{{ pattern }}"{% endif %} 69 60 {% for attrname,attrvalue in attr %}{{attrname}}="{{attrvalue}}" {% endfor %} 70 61 {% endspaceless %} … … 112 103 {% set labelclass = labelclass ~ " required" %} 113 104 {% endif %} 114 <label for="{{name}}" {% if labelclass is not empty %}class="{{labelclass}}"{% endif %} {% if required is not empty %}<abbr title="{{__('Required field')}}">*</abbr>{% else %}>{% endif %} {{label}} 105 <label for="{{name}}" {% if labelclass is not empty %}class="{{labelclass}}"{% endif %}>{% if required is not empty %}<abbr title="{{__('Required field')}}">*</abbr>{% endif %} 106 107 {% if descafter is empty %} {{label}} {% endif %} 115 108 {% if nestedlabel is empty %}</label> {% endif %} 116 109 {% endif %} … … 121 114 {% spaceless %} 122 115 {% if label is not empty %} 116 {% if descafter %} {{label}} {% endif %} 123 117 {% if nestedlabel is not empty %}</label>{% endif %} 124 118 {% endif %}
Note: See TracChangeset
for help on using the changeset viewer.