Dotclear

source: inc/admin/default-templates/forms/lists_layout.html.twig @ 1507:33b12c40bc5c

Revision 1507:33b12c40bc5c, 1.4 KB checked in by Dsls, 11 years ago (diff)

Switched to Unix EOL

Line 
1{% block entrieslist -%}
2{% set lenv = _context['list_' ~ listname] %}
3{% if lenv.entries %}
4{% block list_pagination -%}
5<p class="pagination">{{__('Page:')}}
6{% for p in lenv.pages_links -%}
7     {% if p == lenv.page or p == '...' %}
8          <b>{{p}}</b>
9     {% else %}
10          <a href="{{build_url(lenv.url,{'page':p})}}">{{p}}</a>
11     {% endif %}
12     {% if not loop.last %} - {% endif %}
13{%- endfor %}</p>
14{% endblock %}
15{% form listname -%}
16{% spaceless %}
17<table class="maximal clear">
18     <caption> {{ caption }} - {{__('%s entries')|format(lenv.nb_entries)}}</caption>
19          <tr>
20          {% for h in lenv.cols -%}
21               <th scope="col"{% if loop.first %} colspan="2"{% endif %}>{{h.name}}</th>
22          {%- endfor %}
23          </tr>
24          {% for e in lenv.entries %}
25               {% block list_line_start %}<tr class="line">{% endblock %}
26               <td>{{widget('col_ref',{'e':e,'offset':loop.parent.loop.index0})}}</td>
27               {% for h in lenv.cols %}
28                    <td>{{widget(h.widget,{'e':e,'offset':loop.parent.loop.index0})}}</td>
29               {% endfor %}
30               </tr>
31          {% endfor %}
32</table>
33<div class="two-cols">
34     <p class="col checkboxes-helpers"></p>
35     <p class="col right">{{ form_field ('action',{},{'labelclass':'classic'})}} {{form_field('ok')}}</p>
36</div>
37{% endspaceless %}
38{%- endform %}
39{% else %}
40     <p>{{ __('No entries') }}</p>
41{% endif %}
42{{ block('list_pagination')}}
43{%- endblock %}
44
45{% block filter_checkbox %}
46
47{% endblock filter_checkbox %}
48
49
50{% block col_ref %}
51     {{form_field('entries',{'offset':offset})}}
52{% endblock %}
Note: See TracBrowser for help on using the repository browser.

Sites map