diff default/ticket/overview.html @ 56:ea67eba3199d

ticket: first draft: those templates are the first implementations to: - show a list of tickets - create a new ticket - display a ticket an its comments
author Goffi <goffi@goffi.org>
date Sun, 05 Nov 2017 22:04:34 +0100
parents
children e7b62f6980a1
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/default/ticket/overview.html	Sun Nov 05 22:04:34 2017 +0100
@@ -0,0 +1,11 @@
+{% extends 'base/base.html' %}
+{% import 'input/xmlui.html' as xmlui with context %}
+
+{% block body %}
+<div id="tickets" class="view tickets overview">
+    {{ xmlui.generate_table(tickets, (('id', _('Id')),
+                                      ('title', _('Title'))),
+                            tr_class_fields=['status', 'priority', 'severity'],
+                            on_click=on_ticket_click) }}
+</div>
+{% endblock body %}