comparison sat_templates/templates/default/ticket/overview.html @ 168:9e9ce1ae8b53

ticket/overview: added pagination
author Goffi <goffi@goffi.org>
date Fri, 11 Jan 2019 21:49:55 +0100
parents e9f0a4215e46
children
comparison
equal deleted inserted replaced
167:6f05d4bdc58e 168:9e9ce1ae8b53
1 {# display the list of tickets #} 1 {# display the list of tickets #}
2 2
3 {% set category_menu = [('ticket_new', url_tickets_new)] %} 3 {% set category_menu = [('ticket_new', url_tickets_new)] %}
4 {% extends 'base/base.html' %} 4 {% extends 'base/base.html' %}
5 {% import 'input/xmlui.html' as xmlui with context %} 5 {% import 'input/xmlui.html' as xmlui with context %}
6 {% import 'input/navigation.html' as navigation with context %}
6 7
7 {% block body %} 8 {% block body %}
9 {{ icon_defs('angle-double-left', 'angle-double-right') }}
8 <div id="tickets" class="view tickets overview"> 10 <div id="tickets" class="view tickets overview">
9 {{ xmlui.generate_list(tickets, (('id', _('Id')), 11 {{ xmlui.generate_list(tickets, (('id', _('Id')),
10 ('title', _('Title')), 12 ('title', _('Title')),
11 ('labels', _('Labels'))), 13 ('labels', _('Labels'))),
12 {'id': '[{value}]'}, 14 {'id': '[{value}]'},
13 item_class_fields=['status', 'priority', 'severity'], 15 item_class_fields=['status', 'priority', 'severity'],
14 on_click=on_ticket_click) }} 16 on_click=on_ticket_click) }}
15 </div> 17 </div>
18 {{ navigation.prev_next(_("previous page"), _("next page")) }}
16 {% endblock body %} 19 {% endblock body %}