Dotclear

source: inc/admin/default-templates/forms/lists_layout.html.twig @ 1154:e85c1417b8a4

Revision 1154:e85c1417b8a4, 954 bytes checked in by Dsls <dsls@…>, 12 years ago (diff)

Intermediate commit, needs to be better documented

  • introducing new dcListFetcher class for lists
  • Lists are now driving filters
  • forms tags are now defined in twig format
Line 
1{% block entrieslist -%}
2{% set lenv = _context['list_' ~ listname] %}
3{% if lenv.entries %}
4<p>Pages:</p>
5{% form listname -%}
6{% spaceless %}
7<table class="maximal clear">
8     <caption> {{ caption }} - {{__('Page %s')|format(page)}}</caption>
9          <tr>
10          {% for h in lenv.cols -%}
11               <th scope="col">{{h.name}}</th>
12          {%- endfor %}
13          </tr>
14          {% for e in lenv.entries %}
15               {% block list_line_start %}<tr class="line">{% endblock %}
16               {% for h in lenv.cols %}
17                    <td>{{widget(h.widget,{'e':e,'offset':loop.parent.loop.index0})}}</td>
18               {% endfor %}
19               </tr>
20          {% endfor %}
21</table>
22<div class="two-cols">
23     <p class="col checkboxes-helpers"></p>
24     <p class="col right">{{ form_field ('action',{},{'labelclass':'classic'})}} {{form_field('ok')}}</p>
25</div>
26{% endspaceless %}
27{%- endform %}
28{% else %}
29     <p>{{ __('No entries') }}</p>
30{% endif %}
31{%- endblock %}
32
33{% block filter_checkbox %}
34
35{% endblock filter_checkbox %}
36
Note: See TracBrowser for help on using the repository browser.

Sites map