Changeset 1154:e85c1417b8a4 for inc/admin/default-templates
- Timestamp:
- 04/09/13 09:08:48 (12 years ago)
- Branch:
- twig
- Location:
- inc/admin/default-templates/forms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/default-templates/forms/form_layout.html.twig
r1153 r1154 126 126 {% endblock endlabel %} 127 127 128 {%- block beginform -%} 129 <form {% if class is not empty -%} class="{{class|join(' ')}}" {%- endif %} {% if id is not empty -%} id="{{id}}" {%- endif %} 130 method="{{method}}" action="{{action}}"> 131 {%- endblock beginform -%} 132 133 {% block endform -%} 134 </form> 135 {%- endblock endform %} -
inc/admin/default-templates/forms/formfilter_layout.html.twig
r1152 r1154 2 2 3 3 4 {% block filterset %}4 {% block filterset -%} 5 5 <p> 6 6 <a href="#" id="toggle-filters">{{ __('Toggle filters and display options') }} </a> 7 7 </p> 8 8 <div class="two-cols"> 9 {% form filtersetname%}10 {% set fenv = _context['filterset_' ~ filtersetname]%}9 {% set fenv = _context['filterset_' ~ filtersetname] %} 10 {% form filtersetname with {'class':fenv.hide_filters?'hidden':'opened' } -%} 11 11 <div class="col70"> 12 12 <h3>{{__('Entries filters')}}</h3> 13 13 <table summary="{{__('Query filters')}}" id="tfilters"> 14 14 <tbody> 15 {% for f in fenv.active_filters%}15 {%- for f in fenv.active_filters -%} 16 16 <tr class="{{f.id}}"> 17 17 <td>{{form_field(f.del_id)}}</td> 18 18 {{block(f.fwidget)}} 19 19 </tr> 20 {% endfor%}20 {%- endfor -%} 21 21 </tbody> 22 22 </table> … … 31 31 </div> 32 32 <div class="col30"> 33 {% for f in fenv.static_filters%}33 {%- for f in fenv.static_filters -%} 34 34 {{block(f.fwidget)}} 35 {% endfor%}35 {%- endfor -%} 36 36 </div> 37 37 <p class="clear margintop"></p> 38 {% endform%}38 {%- endform -%} 39 39 </div> 40 {% endblock %}40 {%- endblock %} 41 41 42 42 43 {% block filterenabled %}43 {% block filterenabled -%} 44 44 <tr class="{{ id }}">'; 45 45 <td> … … 49 49 {{ block(filter) }} 50 50 </tr> 51 {% endblock %}51 {%- endblock %} 52 52 53 53 54 {% block filter_combo %}54 {% block filter_combo -%} 55 55 {% if f.display_inline is defined -%} 56 56 <p id='{{f.filter_id}}'>{{form_field(f.ffield,{},{'label':f.desc,'nestedlabel': true, 'labelclass':'classic' })}}</p> … … 59 59 <td >{{ form_field(f.ffield) }}</td> 60 60 {%- endif %} 61 {% endblock %}61 {%- endblock %} 62 62 63 {% block filter_combo_cont %}63 {% block filter_combo_cont -%} 64 64 {% if f.display_inline is defined -%} 65 65 <p id='{{filter_id}}'>{{form_field(f.ffield,{'label':__('or :')})}}</p> … … 67 67 <td id='{{filter_id}}' colspan="2">{{ __('or :') }} </td><td>{{ form_field(f.ffield) }}</td> 68 68 {%- endif %} 69 {% endblock %}69 {%- endblock %} 70 70 71 71 72 {% block filter_richcombo %}72 {% block filter_richcombo -%} 73 73 <td id='{{filterd_id}}' title='{{f.desc}}' class="filter-title">{{f.desc}} : </td> 74 74 <td>{{ form_field(f.fverb)}}</td> 75 75 <td>{{ form_field(f.ffield) }}</td> 76 {% endblock %}76 {%- endblock %} 77 77 78 78 79 {% block filter_boolean %}79 {% block filter_boolean -%} 80 80 <td id='{{filterd_id}}' title='{{f.desc}}' class="filter-title" colspan="2">{{f.desc}}</td> 81 81 <td>{{ form_field(f.ffield) }}</td> 82 {% endblock %}82 {%- endblock %} 83 83 84 {% block filter_text %}84 {% block filter_text -%} 85 85 {% if f.display_inline is defined -%} 86 86 <p id='{{filter_id}}'>{{form_field(f.ffield,{},{'label':f.desc,'nestedlabel': true, 'labelclass':'classic' })}}</p> … … 88 88 <td id='{{filterd_id}}' title='{{f.desc}}' class="filter-title" colspan="2">{{f.desc}}</td> 89 89 <td>{{ form_field(f.ffield) }}</td> 90 {% endif %}91 {% endblock %}90 {%- endif %} 91 {%- endblock %} 92 92 93 93 -
inc/admin/default-templates/forms/lists_layout.html.twig
r1152 r1154 2 2 {% set lenv = _context['list_' ~ listname] %} 3 3 {% if lenv.entries %} 4 <p>Pages:</p> 4 5 {% form listname -%} 5 6 {% spaceless %}
Note: See TracChangeset
for help on using the changeset viewer.