4 {% include "patchwork/pagination.html" %}
7 <table class="patchlist">
9 <td class="patchlistfilters">
10 {% include "patchwork/filters.html" %}
12 {% if order.editable %}
13 <td class="patchlistreorder">
14 <form method="post" id="reorderform">
16 <input type="hidden" name="form" value="reorderform"/>
17 <input type="hidden" name="order_start" value="0"/>
18 <span id="reorderhelp"></span>
19 <input id="reorder-cancel" type="button" value="Cancel"
20 onClick="order_cancel_click(this)"/>
21 <input id="reorder-change" type="button" value="Change order"
22 onClick="order_button_click(this)"/>
29 {% if page.paginator.long_page and user.is_authenticated %}
31 <a title="jump to form" href="#patchforms"><span
32 style="font-size: 120%">▾</span></a>
38 <input type="hidden" name="form" value="patchlistform"/>
39 <input type="hidden" name="project" value="{{project.id}}"/>
40 <table class="patchlist" id="patchlist">
43 {% if user.is_authenticated %}
45 <input type="checkbox" onChange="select_all(this)"/>
50 {% ifequal order.name "name" %}
52 href="{% listurl order=order.reversed_name %}"><img
53 src="/images/16-arrow-{% if order.reversed %}up{% else %}down{%endif%}.png"
54 width="16" height="16"
55 ></a> <a class="colactive"
56 href="{% listurl order=order.reversed_name %}">Patch</a>
58 {% if not order.editable %}
59 <a class="colinactive" href="{% listurl order="name" %}">Patch</a>
61 <span class="colinactive">Patch</span>
67 {% ifequal order.name "date" %}
69 href="{% listurl order=order.reversed_name %}"><img
70 src="/images/16-arrow-{% if order.reversed %}up{% else %}down{%endif%}.png"
71 width="16" height="16"
72 ></a> <a class="colactive"
73 href="{% listurl order=order.reversed_name %}">Date</a>
75 {% if not order.editable %}
76 <a class="colinactive" href="{% listurl order="date" %}">Date</a>
78 <span class="colinactive">Date</span>
84 {% ifequal order.name "submitter" %}
86 href="{% listurl order=order.reversed_name %}"><img
87 src="/images/16-arrow-{% if order.reversed %}up{% else %}down{%endif%}.png"
88 width="16" height="16"
89 ></a> <a class="colactive"
90 href="{% listurl order=order.reversed_name %}">Submitter</a>
92 {% if not order.editable %}
93 <a class="colinactive" href="{% listurl order="submitter" %}">Submitter</a>
95 <span class="colinactive">Submitter</span>
101 {% ifequal order.name "delegate" %}
103 href="{% listurl order=order.reversed_name %}"><img
104 src="/images/16-arrow-{% if order.reversed %}up{% else %}down{%endif%}.png"
105 width="16" height="16"
106 ></a> <a class="colactive"
107 href="{% listurl order=order.reversed_name %}">Delegate</a>
109 {% if not order.editable %}
110 <a class="colinactive" href="{% listurl order="delegate" %}">Delegate</a>
112 <span class="colinactive">Delegate</span>
118 {% ifequal order.name "state" %}
120 href="{% listurl order=order.reversed_name %}"><img
121 src="/images/16-arrow-{% if order.reversed %}up{% else %}down{%endif%}.png"
122 width="16" height="16"
123 ></a> <a class="colactive"
124 href="{% listurl order=order.reversed_name %}">State</a>
126 {% if not order.editable %}
127 <a class="colinactive" href="{% listurl order="state" %}">State</a>
129 <span class="colinactive">State</span>
139 {% for patch in page.object_list %}
140 <tr id="patch_row:{{patch.id}}" class="{% cycle 'odd' 'even' %}">
141 {% if user.is_authenticated %}
143 <input type="checkbox" name="patch_id:{{patch.id}}"/>
146 <td><a href="{% url patchwork.views.patch.patch patch_id=patch.id %}"
147 >{{ patch.name|default:"[no subject]" }}</a></td>
148 <td>{{ patch.date|date:"Y-m-d" }}</td>
149 <td>{{ patch.submitter|personify }}</td>
150 <td>{{ patch.delegate.username }}</td>
151 <td>{{ patch.state }}</td>
157 {% include "patchwork/pagination.html" %}
159 <div class="patchforms" id="patchforms" name="patchforms">
162 <div class="patchform patchform-properties">
166 <th>Change state:</th>
168 {{ patchform.state }}
169 {{ patchform.state.errors }}
173 <th>Delegate to:</td>
175 {{ patchform.delegate }}
176 {{ patchform.delegate.errors }}
182 {{ patchform.archived }}
183 {{ patchform.archived.errors }}
189 <input type="submit" name="action" value="Update"/>
197 {% if user.is_authenticated %}
198 <div class="patchform patchform-bundle">
202 <td>Create bundle:</td>
204 <input type="text" name="bundle_name"/>
205 <input name="action" value="Create" type="submit"/>
210 <td>Add to bundle:</td>
212 <select name="bundle_id"/>
213 {% for bundle in bundles %}
214 <option value="{{bundle.id}}">{{bundle.name}}</option>
217 <input name="action" value="Add" type="submit"/>
223 <td>Remove from bundle:</td>
225 <input type="hidden" name="removed_bundle_id" value="{{bundle.id}}"/>
226 <input name="action" value="Remove" type="submit"/>
235 <div style="clear: both;">
241 <td colspan="5">No patches to display</td>