Revision 1152:fbd922f6ed09,
939 bytes
checked in by Dsls <dsls@…>, 12 years ago
(diff) |
form filters reloaded, first try for lists (to be completed)
form fields now support multiple values.
|
Line | |
---|
1 | {% block entrieslist -%} |
---|
2 | {% set lenv = _context['list_' ~ listname] %} |
---|
3 | {% if lenv.entries %} |
---|
4 | {% form listname -%} |
---|
5 | {% spaceless %} |
---|
6 | <table class="maximal clear"> |
---|
7 | <caption> {{ caption }} - {{__('Page %s')|format(page)}}</caption> |
---|
8 | <tr> |
---|
9 | {% for h in lenv.cols -%} |
---|
10 | <th scope="col">{{h.name}}</th> |
---|
11 | {%- endfor %} |
---|
12 | </tr> |
---|
13 | {% for e in lenv.entries %} |
---|
14 | {% block list_line_start %}<tr class="line">{% endblock %} |
---|
15 | {% for h in lenv.cols %} |
---|
16 | <td>{{widget(h.widget,{'e':e,'offset':loop.parent.loop.index0})}}</td> |
---|
17 | {% endfor %} |
---|
18 | </tr> |
---|
19 | {% endfor %} |
---|
20 | </table> |
---|
21 | <div class="two-cols"> |
---|
22 | <p class="col checkboxes-helpers"></p> |
---|
23 | <p class="col right">{{ form_field ('action',{},{'labelclass':'classic'})}} {{form_field('ok')}}</p> |
---|
24 | </div> |
---|
25 | {% endspaceless %} |
---|
26 | {%- endform %} |
---|
27 | {% else %} |
---|
28 | <p>{{ __('No entries') }}</p> |
---|
29 | {% endif %} |
---|
30 | {%- endblock %} |
---|
31 | |
---|
32 | {% block filter_checkbox %} |
---|
33 | |
---|
34 | {% endblock filter_checkbox %} |
---|
35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.