annotate MoinMoin/templates/tickets.html @ 2717:c868f29f6d90

Fixed #3: Now user can select a filter(open/closed/all) and then choose sort option and only tickets relevant to that filter will be displayed
author Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
date Thu, 14 Aug 2014 23:28:15 +0530
parents 43987f1b008e
children 122424b4bc22
rev   line source
2627
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
1 {% extends theme("layout.html") %}
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
2 {% set search_form=None %}
2688
d1872000dcdc Removed HTML validation errors from +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2636
diff changeset
3 {% set title = _("Tickets") %}
2627
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
4
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
5 {% block content %}
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
6 <h1>{{_("Tickets")}}</h1>
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
7
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
8 {% set status_values = ['all', 'open', 'closed'] %}
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
9 {{_("Filter:")}}
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
10 {% for status_value in status_values %}
2636
5ed45d642d47 Added suggestions for in ticket modify and submit template and also shown all tags in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2635
diff changeset
11 <form action="{{ url_for('frontend.tickets', selected_tags=list(selected_tags), time_sorting=time_sorting if time_sorting) }}" method="post" class='moin-ticketsearch-form'>
2627
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
12 <input type="hidden" name="q" value="{{ query if query }}" >
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
13 &nbsp;<input type="hidden" name="status" value="{{ status_value }}">
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
14 <input type="submit" value="{{ status_value.capitalize() }}" title="{{ _('Show %(status)s tickets', status=status_value) }}" class="{{ 'ticket-query-button active' if status == status_value else 'ticket-query-button'}}">
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
15 </form>
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
16 {% endfor %}
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
17
2635
d98612551045 Added option of sort by recently and least recently updated tickets in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2634
diff changeset
18 <div class="tickets-sort-button dropdown">
d98612551045 Added option of sort by recently and least recently updated tickets in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2634
diff changeset
19 <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">
d98612551045 Added option of sort by recently and least recently updated tickets in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2634
diff changeset
20 {% if time_sorting == 'new' %}
d98612551045 Added option of sort by recently and least recently updated tickets in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2634
diff changeset
21 {% set sortedby = 'Recently updated' %}
d98612551045 Added option of sort by recently and least recently updated tickets in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2634
diff changeset
22 {% elif time_sorting == 'old' %}
d98612551045 Added option of sort by recently and least recently updated tickets in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2634
diff changeset
23 {% set sortedby = 'Least recently updated' %}
d98612551045 Added option of sort by recently and least recently updated tickets in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2634
diff changeset
24 {% endif %}
d98612551045 Added option of sort by recently and least recently updated tickets in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2634
diff changeset
25 {{_("Sort: %(sortedby)s", sortedby=sortedby if sortedby)}}
d98612551045 Added option of sort by recently and least recently updated tickets in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2634
diff changeset
26 <span class="caret"></span>
d98612551045 Added option of sort by recently and least recently updated tickets in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2634
diff changeset
27 </button>
d98612551045 Added option of sort by recently and least recently updated tickets in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2634
diff changeset
28 <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
d98612551045 Added option of sort by recently and least recently updated tickets in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2634
diff changeset
29 <li role="presentation">
2717
c868f29f6d90 Fixed #3: Now user can select a filter(open/closed/all) and then choose sort option and only tickets relevant to that filter will be displayed
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2691
diff changeset
30 <form action="{{ url_for('frontend.tickets', selected_tags=list(selected_tags), time_sorting='new') }}" method="post">
c868f29f6d90 Fixed #3: Now user can select a filter(open/closed/all) and then choose sort option and only tickets relevant to that filter will be displayed
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2691
diff changeset
31 <input type="hidden" name="status" value="{{ status }}">
c868f29f6d90 Fixed #3: Now user can select a filter(open/closed/all) and then choose sort option and only tickets relevant to that filter will be displayed
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2691
diff changeset
32 <input type="hidden" name="q" value="{{ query if query }}" >
c868f29f6d90 Fixed #3: Now user can select a filter(open/closed/all) and then choose sort option and only tickets relevant to that filter will be displayed
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2691
diff changeset
33 <button type="submit">
c868f29f6d90 Fixed #3: Now user can select a filter(open/closed/all) and then choose sort option and only tickets relevant to that filter will be displayed
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2691
diff changeset
34 {{_("Recently updated")}}
c868f29f6d90 Fixed #3: Now user can select a filter(open/closed/all) and then choose sort option and only tickets relevant to that filter will be displayed
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2691
diff changeset
35 </button>
c868f29f6d90 Fixed #3: Now user can select a filter(open/closed/all) and then choose sort option and only tickets relevant to that filter will be displayed
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2691
diff changeset
36 </form>
2635
d98612551045 Added option of sort by recently and least recently updated tickets in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2634
diff changeset
37 </li>
d98612551045 Added option of sort by recently and least recently updated tickets in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2634
diff changeset
38 <li role="presentation">
2717
c868f29f6d90 Fixed #3: Now user can select a filter(open/closed/all) and then choose sort option and only tickets relevant to that filter will be displayed
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2691
diff changeset
39 <form action="{{ url_for('frontend.tickets', selected_tags=list(selected_tags), time_sorting='old') }}" method="post">
c868f29f6d90 Fixed #3: Now user can select a filter(open/closed/all) and then choose sort option and only tickets relevant to that filter will be displayed
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2691
diff changeset
40 <input type="hidden" name="status" value="{{ status }}">
c868f29f6d90 Fixed #3: Now user can select a filter(open/closed/all) and then choose sort option and only tickets relevant to that filter will be displayed
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2691
diff changeset
41 <input type="hidden" name="q" value="{{ query if query }}" >
c868f29f6d90 Fixed #3: Now user can select a filter(open/closed/all) and then choose sort option and only tickets relevant to that filter will be displayed
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2691
diff changeset
42 <button type="submit">
c868f29f6d90 Fixed #3: Now user can select a filter(open/closed/all) and then choose sort option and only tickets relevant to that filter will be displayed
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2691
diff changeset
43 {{_("Least Recently updated")}}
c868f29f6d90 Fixed #3: Now user can select a filter(open/closed/all) and then choose sort option and only tickets relevant to that filter will be displayed
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2691
diff changeset
44 </button>
c868f29f6d90 Fixed #3: Now user can select a filter(open/closed/all) and then choose sort option and only tickets relevant to that filter will be displayed
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2691
diff changeset
45 </form>
2635
d98612551045 Added option of sort by recently and least recently updated tickets in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2634
diff changeset
46 </li>
d98612551045 Added option of sort by recently and least recently updated tickets in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2634
diff changeset
47 </ul>
d98612551045 Added option of sort by recently and least recently updated tickets in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2634
diff changeset
48 </div>
d98612551045 Added option of sort by recently and least recently updated tickets in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2634
diff changeset
49
2691
43987f1b008e Added ticket-create button and blog-entry-create button in +tickets view and blog view respectively in all themes with a TODO of creating items without any initial fqname/name
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2688
diff changeset
50 <a id="moin-ticket-create-link" href="{{ url_for('frontend.new', itemtype='ticket') }}" >
43987f1b008e Added ticket-create button and blog-entry-create button in +tickets view and blog view respectively in all themes with a TODO of creating items without any initial fqname/name
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2688
diff changeset
51 <button class="btn btn-primary btn-lg btn-block">{{ _("Create ticket") }}</button>
43987f1b008e Added ticket-create button and blog-entry-create button in +tickets view and blog view respectively in all themes with a TODO of creating items without any initial fqname/name
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2688
diff changeset
52 </a>
43987f1b008e Added ticket-create button and blog-entry-create button in +tickets view and blog view respectively in all themes with a TODO of creating items without any initial fqname/name
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2688
diff changeset
53
2636
5ed45d642d47 Added suggestions for in ticket modify and submit template and also shown all tags in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2635
diff changeset
54 <form action="{{ url_for('frontend.tickets',selected_tags=list(selected_tags), time_sorting=time_sorting if time_sorting) }}" method="post">
2627
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
55 <input type="hidden" name="status" value="{{ status }}">
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
56 <input type="text" name="q" value="{{ query if query }}" id="moin-ticketsearch-query" class="form-control" placeholder="{{_('Find tickets')}}">
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
57 </form>
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
58
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
59 {% if results %}
2688
d1872000dcdc Removed HTML validation errors from +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2636
diff changeset
60 <p>{{ _("%(result_len)d Tickets found.", result_len=results|length) }}</p>
2627
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
61 <table class="table table-hover" id="ticket-list">
2688
d1872000dcdc Removed HTML validation errors from +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2636
diff changeset
62 <thead>
d1872000dcdc Removed HTML validation errors from +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2636
diff changeset
63 <tr>
d1872000dcdc Removed HTML validation errors from +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2636
diff changeset
64 <th id="ticket-itemid">{{_("ID")}}</th>
d1872000dcdc Removed HTML validation errors from +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2636
diff changeset
65 <th id="ticket-summary">{{_("Summary")}}</th>
d1872000dcdc Removed HTML validation errors from +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2636
diff changeset
66 <th id="ticket-status">{{_("Status")}}</th>
d1872000dcdc Removed HTML validation errors from +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2636
diff changeset
67 <th id="ticket-effort" title="{{ _('Effort') }}">E</th>
d1872000dcdc Removed HTML validation errors from +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2636
diff changeset
68 <th id="ticket-difficulty" title="{{ _('Difficulty') }}">D</th>
d1872000dcdc Removed HTML validation errors from +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2636
diff changeset
69 <th id="ticket-severity" title="{{ _('Severity') }}">S</th>
d1872000dcdc Removed HTML validation errors from +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2636
diff changeset
70 <th id="ticket-priority" title="{{ _('Priority') }}">P</th>
d1872000dcdc Removed HTML validation errors from +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2636
diff changeset
71 <th id="ticket-tags">{{_("Tags")}}</th>
d1872000dcdc Removed HTML validation errors from +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2636
diff changeset
72 </tr>
d1872000dcdc Removed HTML validation errors from +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2636
diff changeset
73 </thead>
2627
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
74 <tbody>
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
75 {% for result in results %}
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
76 <tr>
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
77 <td>
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
78 <a href="{{ url_for_item(result['itemid'], field='itemid', namespace=result['namespace'])}}" title="{{ _('ITEMID: %(itemid)s', itemid=result['itemid'])}}">
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
79 {{result['itemid'] | shorten_id}}
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
80 </a>
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
81 <td>
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
82 <a href="{{ url_for_item(result['itemid'], field='itemid', namespace=result['namespace'])}}" title="{{ _('ITEMID: %(itemid)s', itemid=result['itemid'])}}">
2634
4cc1d15c203c Added tags filter option
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2632
diff changeset
83 {{ result['summary'] }}
2627
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
84 </a>
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
85 </td>
2634
4cc1d15c203c Added tags filter option
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2632
diff changeset
86 <td>
2627
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
87 {{ _("Closed") if result['closed'] else _("Open") }}
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
88 </td>
2634
4cc1d15c203c Added tags filter option
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2632
diff changeset
89 <td>
4cc1d15c203c Added tags filter option
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2632
diff changeset
90 {{ result.get('effort', '') }}
2627
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
91 </td>
2634
4cc1d15c203c Added tags filter option
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2632
diff changeset
92 <td>
4cc1d15c203c Added tags filter option
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2632
diff changeset
93 {{ result.get('difficulty', '') }}
2627
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
94 </td>
2634
4cc1d15c203c Added tags filter option
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2632
diff changeset
95 <td>
4cc1d15c203c Added tags filter option
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2632
diff changeset
96 {{ result.get('severity', '') }}
2627
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
97 </td>
2634
4cc1d15c203c Added tags filter option
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2632
diff changeset
98 <td>
4cc1d15c203c Added tags filter option
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2632
diff changeset
99 {{ result.get('priority', '') }}
2627
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
100 </td>
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
101 <td>
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
102 {% for tag in result['tags'] %}
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
103 {{ tag }}
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
104 {% endfor %}
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
105 </td>
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
106 </tr>
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
107 {% endfor %}
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
108 </tbody>
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
109 </table>
2634
4cc1d15c203c Added tags filter option
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2632
diff changeset
110
4cc1d15c203c Added tags filter option
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2632
diff changeset
111 <p id="ticket-table-tip">
4cc1d15c203c Added tags filter option
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2632
diff changeset
112 {{_("Tip: Sort multiple columns simultaneously by holding down the Shift key and clicking a second, third or even fourth column header!")}}
4cc1d15c203c Added tags filter option
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2632
diff changeset
113 </p>
2627
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
114 {% else %}
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
115 {{ _("No Ticket found.") }}
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
116 {% endif %}
2636
5ed45d642d47 Added suggestions for in ticket modify and submit template and also shown all tags in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2635
diff changeset
117
2688
d1872000dcdc Removed HTML validation errors from +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2636
diff changeset
118 <h3 class="moin-ticket-tags">{{_("Tags")}}</h3>
2636
5ed45d642d47 Added suggestions for in ticket modify and submit template and also shown all tags in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2635
diff changeset
119 {% for tag in tags %}
5ed45d642d47 Added suggestions for in ticket modify and submit template and also shown all tags in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2635
diff changeset
120 {# If user clicks on the tag then it gets selected if it is not already selected #}
5ed45d642d47 Added suggestions for in ticket modify and submit template and also shown all tags in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2635
diff changeset
121 {# If that tag is already selected then it gets deselected #}
5ed45d642d47 Added suggestions for in ticket modify and submit template and also shown all tags in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2635
diff changeset
122 {% set selected_tags_value = list(selected_tags.difference([tag]) if tag in selected_tags else selected_tags.union([tag])) %}
5ed45d642d47 Added suggestions for in ticket modify and submit template and also shown all tags in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2635
diff changeset
123 <form action="{{ url_for('frontend.tickets', selected_tags=selected_tags_value, time_sorting=time_sorting if time_sorting) }}" method="post">
5ed45d642d47 Added suggestions for in ticket modify and submit template and also shown all tags in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2635
diff changeset
124 <input type="hidden" name="q" value="{{ query if query }}" >
5ed45d642d47 Added suggestions for in ticket modify and submit template and also shown all tags in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2635
diff changeset
125 <input type="hidden" name="status" value="{{ status }}">
5ed45d642d47 Added suggestions for in ticket modify and submit template and also shown all tags in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2635
diff changeset
126 <input type="submit" value="{{ tag }}" class="{{ 'ticket-tags-button btn btn-primary active' if tag in selected_tags else 'ticket-tags-button btn btn-default' }}">
5ed45d642d47 Added suggestions for in ticket modify and submit template and also shown all tags in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2635
diff changeset
127 </form>
5ed45d642d47 Added suggestions for in ticket modify and submit template and also shown all tags in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2635
diff changeset
128 {% endfor %}
5ed45d642d47 Added suggestions for in ticket modify and submit template and also shown all tags in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2635
diff changeset
129
2627
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
130 {% endblock %}
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
131 {% block body_scripts %}
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
132 {{ super() }}
2632
647ee04f863e Added XStatic.JQuery.TableSorter plugin in +tickets view
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2631
diff changeset
133 <script src="{{ url_for('serve.files', name='jquery_tablesorter', filename='jquery.tablesorter.js') }}"></script>
2627
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
134 <script src="{{ url_for('static', filename='js/tickets.js') }}"></script>
8f93193cfd9b Added +tickets view having list of tickets
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents:
diff changeset
135 {% endblock %}