Dotclear


Ignore:
Timestamp:
08/09/13 11:14:13 (12 years ago)
Author:
Dsls
Branch:
twig
Message:

Manual merge for remaining little things from default, need to cope with this 3px difference in search box...
Btw, fixes checkboxes problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/default-templates/forms/form_layout.html.twig

    r1154 r1316  
    5151{% set nestedlabel = true %} 
    5252{% set labelclass = "classic" %} 
     53{% set descafter = true %} 
    5354    {{ 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 %}#} 
    6455{% endblock field_checkbox %} 
    6556 
    6657{% block field_attr %} 
    6758{% 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 %} 
    6960    {% for attrname,attrvalue in attr %}{{attrname}}="{{attrvalue}}" {% endfor %} 
    7061{% endspaceless %} 
     
    112103            {% set labelclass = labelclass ~ " required" %} 
    113104        {% 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 %} 
    115108        {% if nestedlabel is empty %}</label> {% endif %} 
    116109    {% endif %} 
     
    121114{% spaceless %} 
    122115    {% if label is not empty %} 
     116          {% if descafter %} {{label}} {% endif %} 
    123117        {% if nestedlabel is not empty %}</label>{% endif %} 
    124118    {% endif %} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map