Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(938)

Side by Side Diff: MoinMoin/templates/tickets.html

Issue 256230043: Advanced search for tickets
Patch Set: fixed userid and made it more like /+search view Created 8 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « MoinMoin/templates/ticket/submit.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {% extends theme("layout.html") %} 1 {% extends theme("layout.html") %}
2 {% set search_form=None %} 2 {% set search_form=None %}
3 {% set title = _("Tickets") %} 3 {% set title = _("Tickets") %}
4 4
5 {% block content %} 5 {% block content %}
6 <h1>{{ _("Tickets") }}</h1> 6 <h1>{{ _("Tickets") }}</h1>
7 7
8 {% set status_values = ['all', 'open', 'closed'] %} 8 {% set status_values = ['all', 'open', 'closed'] %}
9 <span>{{ _("Filter:") }}</span> 9 <span>{{ _("Filter:") }}</span>
10 {% for status_value in status_values %} 10 {% for status_value in status_values %}
11 <form action="{{ url_for('frontend.tickets', selected_tags=list()) }}" m ethod="post" class='moin-ticketsearch-form'> 11 <form action="{{ url_for('frontend.tickets', selected_tags=list()) }}" m ethod="post" class='moin-ticketsearch-form'>
12 <input type="hidden" name="q" value="" > 12 <input type="hidden" name="q" value="" >
13 <input type="hidden" name="status" value="{{ status_value }}"> 13 <input type="hidden" name="status" value="{{ status_value }}">
14 <input type="submit" value="{{ status_value.capitalize() }}" title=" {{ _('Show %(status)s tickets', status=status_value) }}" class="{{ 'moin-button active' if status == status_value else 'moin-button' }}"> 14 <input type="submit" value="{{ status_value.capitalize() }}" title=" {{ _('Show %(status)s tickets', status=status_value) }}" class="{{ 'moin-button active' if status == status_value else 'moin-button' }}">
15 </form> 15 </form>
16 {% endfor %} 16 {% endfor %}
17 17
18 <input type="button" class="moin-button ticket-tags-toggle" title="{{ _("Sho w all tags") }}" value="{{ _("Tags") }}"> 18 <input type="button" class="moin-button ticket-tags-toggle" title="{{ _("Sho w all tags") }}" value="{{ _("Tags") }}">
19 19
20 <a href={{ url_for('frontend.ticket_search') }} class="moin-button">{{ _('Ad vanced Search') }}</a>
21
20 <form class="moin-ticket-search" action="{{ url_for('frontend.tickets',selec ted_tags=list(selected_tags)) }}" method="post"> 22 <form class="moin-ticket-search" action="{{ url_for('frontend.tickets',selec ted_tags=list(selected_tags)) }}" method="post">
21 <input type="hidden" name="status" value="{{ status }}"> 23 <input type="hidden" name="status" value="{{ status }}">
22 <input type="text" name="q" value="{{ query if query }}" id="moin-ticket search-query" placeholder="{{ _('Find tickets') }}"> 24 <input type="text" name="q" value="{{ query if query }}" id="moin-ticket search-query" placeholder="{{ _('Find tickets') }}">
23 </form> 25 </form>
24 26
25 {# TODO: This is a workaround that creates named tickets, rework when there is a means of creating unnamed tickets #} 27 {# TODO: This is a workaround that creates named tickets, rework when there is a means of creating unnamed tickets #}
26 <form method="get" class="moin-ticket-create-link" action="{{ url_for('front end.modify_item', item_name='ticket_'+current_timestamp ) }}"> 28 <form method="get" class="moin-ticket-create-link" action="{{ url_for('front end.modify_item', item_name='ticket_'+current_timestamp ) }}">
27 <input class="moin-button" type="submit" value="{{ _('Create ticket') }} "> 29 <input class="moin-button" type="submit" value="{{ _('Create ticket') }} ">
28 <input type="hidden" name="itemtype" value="ticket"> 30 <input type="hidden" name="itemtype" value="ticket">
29 </form> 31 </form>
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 <p> 108 <p>
107 {{ _("No tickets found.") }} 109 {{ _("No tickets found.") }}
108 </p> 110 </p>
109 {% endif %} 111 {% endif %}
110 112
111 {% endblock %} 113 {% endblock %}
112 {% block body_scripts %} 114 {% block body_scripts %}
113 {{ super() }} 115 {{ super() }}
114 <script src="{{ url_for('static', filename='js/tickets.js') }}"></script> 116 <script src="{{ url_for('static', filename='js/tickets.js') }}"></script>
115 {% endblock %} 117 {% endblock %}
OLDNEW
« no previous file with comments | « MoinMoin/templates/ticket/submit.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b