|
9 | 9 | {% endblock %} |
10 | 10 |
|
11 | 11 | {% include "patchwork/partials/filters.html" %} |
12 | | -{% include "patchwork/partials/pagination.html" %} |
13 | 12 |
|
14 | 13 | {% if order.editable %} |
15 | 14 | <table class="patch-list"> |
|
28 | 27 | </table> |
29 | 28 | {% endif %} |
30 | 29 |
|
31 | | -{% if page.paginator.long_page and user.is_authenticated %} |
32 | | -<div class="floaty"> |
33 | | - <a title="jump to form" href="#patch-forms"> |
34 | | - <span style="font-size: 120%">▾</span> |
35 | | - </a> |
36 | | -</div> |
37 | | -{% endif %} |
38 | | - |
39 | | -<form method="post"> |
| 30 | +<form id="patch-list-form" method="post"> |
40 | 31 | {% csrf_token %} |
41 | 32 | <input type="hidden" name="form" value="patch-list-form"/> |
42 | 33 | <input type="hidden" name="project" value="{{project.id}}"/> |
| 34 | + |
| 35 | + <div class="patch-list-actions"> |
| 36 | +{% include "patchwork/partials/patch-forms.html" %} |
| 37 | +{% include "patchwork/partials/pagination.html" %} |
| 38 | + </div> |
43 | 39 | <table id="patch-list" class="table table-hover table-extra-condensed table-striped pw-list" data-toggle="checkboxes" data-range="true"> |
44 | 40 | <thead> |
45 | 41 | <tr> |
|
159 | 155 |
|
160 | 156 | <tbody> |
161 | 157 | {% for patch in page.object_list %} |
162 | | - <tr id="patch-row:{{patch.id}}"> |
| 158 | + <tr id="patch-row:{{patch.id}}" data-patch-id="{{patch.id}}"> |
163 | 159 | {% if user.is_authenticated %} |
164 | 160 | <td id="select-patch:{{patch.id}}" style="text-align: center;"> |
165 | 161 | <input type="checkbox" name="patch_id:{{patch.id}}"/> |
|
201 | 197 |
|
202 | 198 | {% if page.paginator.count %} |
203 | 199 | {% include "patchwork/partials/pagination.html" %} |
204 | | - |
205 | | - <div class="patch-forms" id="patch-forms"> |
206 | | - |
207 | | -{% if patch_form %} |
208 | | - <div class="patch-form patch-form-properties"> |
209 | | - <h3>Properties</h3> |
210 | | - <table class="form"> |
211 | | - <tr> |
212 | | - <th>Change state:</th> |
213 | | - <td> |
214 | | - {{ patch_form.state }} |
215 | | - {{ patch_form.state.errors }} |
216 | | - </td> |
217 | | - </tr> |
218 | | - <tr> |
219 | | - <th>Delegate to:</th> |
220 | | - <td> |
221 | | - {{ patch_form.delegate }} |
222 | | - {{ patch_form.delegate.errors }} |
223 | | - </td> |
224 | | - </tr> |
225 | | - <tr> |
226 | | - <th>Archive:</th> |
227 | | - <td> |
228 | | - {{ patch_form.archived }} |
229 | | - {{ patch_form.archived.errors }} |
230 | | - </td> |
231 | | - </tr> |
232 | | - <tr> |
233 | | - <td></td> |
234 | | - <td> |
235 | | - <input type="submit" name="action" value="{{patch_form.action}}"/> |
236 | | - </td> |
237 | | - </tr> |
238 | | - </table> |
239 | | - </div> |
240 | | -{% endif %} |
241 | | - |
242 | | -{% if user.is_authenticated %} |
243 | | - <div class="patch-form patch-form-bundle"> |
244 | | - <h3>Bundling</h3> |
245 | | - <table class="form"> |
246 | | - <tr> |
247 | | - <td>Create bundle:</td> |
248 | | - <td> |
249 | | - <input type="text" name="bundle_name"/> |
250 | | - <input name="action" value="Create" type="submit"/> |
251 | | - </td> |
252 | | - </tr> |
253 | | -{% if bundles %} |
254 | | - <tr> |
255 | | - <td>Add to bundle:</td> |
256 | | - <td> |
257 | | - <select name="bundle_id"> |
258 | | -{% for bundle in bundles %} |
259 | | - <option value="{{bundle.id}}">{{bundle.name}}</option> |
260 | | -{% endfor %} |
261 | | - </select> |
262 | | - <input name="action" value="Add" type="submit"/> |
263 | | - </td> |
264 | | - </tr> |
265 | | -{% endif %} |
266 | | -{% if bundle %} |
267 | | - <tr> |
268 | | - <td>Remove from bundle:</td> |
269 | | - <td> |
270 | | - <input type="hidden" name="removed_bundle_id" value="{{bundle.id}}"/> |
271 | | - <input name="action" value="Remove" type="submit"/> |
272 | | - </td> |
273 | | - </tr> |
274 | | -{% endif %} |
275 | | - </table> |
276 | | - </div> |
277 | | -{% endif %} |
278 | | - <div style="clear: both;"> |
279 | | - </div> |
280 | | - </div> |
281 | 200 | {% endif %} |
282 | 201 | </form> |
0 commit comments