|
8 | 8 | {% include "patchwork/partials/pagination.html" %} |
9 | 9 |
|
10 | 10 | {% if order.editable %} |
11 | | -<table class="patchlist"> |
| 11 | +<table class="patch-list"> |
12 | 12 | <tr> |
13 | | - <td class="patchlistreorder"> |
14 | | - <form method="post" id="reorderform"> |
| 13 | + <td class="patch-list-reorder"> |
| 14 | + <form method="post" id="reorder-form"> |
15 | 15 | {% csrf_token %} |
16 | | - <input type="hidden" name="form" value="reorderform"/> |
| 16 | + <input type="hidden" name="form" value="reorder-form"/> |
17 | 17 | <input type="hidden" name="order_start" value="0"/> |
18 | | - <span id="reorderhelp"></span> |
| 18 | + <span id="reorder-help"></span> |
19 | 19 | <input id="reorder-cancel" type="button" value="Cancel" onClick="order_cancel_click(this)"/> |
20 | 20 | <input id="reorder-change" type="button" value="Change order" onClick="order_button_click(this)"/> |
21 | 21 | </form> |
|
26 | 26 |
|
27 | 27 | {% if page.paginator.long_page and user.is_authenticated %} |
28 | 28 | <div class="floaty"> |
29 | | - <a title="jump to form" href="#patchforms"> |
| 29 | + <a title="jump to form" href="#patch-forms"> |
30 | 30 | <span style="font-size: 120%">▾</span> |
31 | 31 | </a> |
32 | 32 | </div> |
33 | 33 | {% endif %} |
34 | 34 |
|
35 | 35 | <script type="text/javascript"> |
36 | 36 | $(document).ready(function() { |
37 | | - $('#patchlist').stickyTableHeaders(); |
| 37 | + $('#patch-list').stickyTableHeaders(); |
38 | 38 |
|
39 | | - $('#patchlist').checkboxes('range', true); |
| 39 | + $('#patch-list').checkboxes('range', true); |
40 | 40 |
|
41 | 41 | $('#check-all').change(function(e) { |
42 | 42 | if(this.checked) { |
43 | | - $('#patchlist > tbody').checkboxes('check'); |
| 43 | + $('#patch-list > tbody').checkboxes('check'); |
44 | 44 | } else { |
45 | | - $('#patchlist > tbody').checkboxes('uncheck'); |
| 45 | + $('#patch-list > tbody').checkboxes('uncheck'); |
46 | 46 | } |
47 | 47 | e.preventDefault(); |
48 | 48 | }); |
|
51 | 51 |
|
52 | 52 | <form method="post"> |
53 | 53 | {% csrf_token %} |
54 | | - <input type="hidden" name="form" value="patchlistform"/> |
| 54 | + <input type="hidden" name="form" value="patch-list-form"/> |
55 | 55 | <input type="hidden" name="project" value="{{project.id}}"/> |
56 | | - <table id="patchlist" class="table table-hover table-extra-condensed table-striped pw-list" data-toggle="checkboxes" data-range="true"> |
| 56 | + <table id="patch-list" class="table table-hover table-extra-condensed table-striped pw-list" data-toggle="checkboxes" data-range="true"> |
57 | 57 | <thead> |
58 | 58 | <tr> |
59 | 59 | {% if user.is_authenticated %} |
|
71 | 71 | <th> |
72 | 72 | {% if not order.editable %} |
73 | 73 | {% if order.name == "name" %} |
74 | | - <a class="colactive" href="{% listurl order=order.reversed_name %}"> |
| 74 | + <a class="col-active" href="{% listurl order=order.reversed_name %}"> |
75 | 75 | <span class="glyphicon glyphicon-chevron-{{ order.updown }}"></span> |
76 | 76 | </a> |
77 | | - <a class="colactive" href="{% listurl order=order.reversed_name %}"> |
| 77 | + <a class="col-active" href="{% listurl order=order.reversed_name %}"> |
78 | 78 | Patch |
79 | 79 | </a> |
80 | 80 | {% else %} |
81 | | - <a class="colinactive" href="{% listurl order="name" %}">Patch</a> |
| 81 | + <a class="col-inactive" href="{% listurl order="name" %}">Patch</a> |
82 | 82 | {% endif %} |
83 | 83 | {% else %} |
84 | | - <span class="colinactive">Patch</span> |
| 84 | + <span class="col-inactive">Patch</span> |
85 | 85 | {% endif %} |
86 | 86 | </th> |
87 | 87 |
|
88 | 88 | <th> |
89 | | - <span class="colinactive">Series</span> |
| 89 | + <span class="col-inactive">Series</span> |
90 | 90 | </th> |
91 | 91 |
|
92 | 92 | <th> |
|
100 | 100 | <th> |
101 | 101 | {% if not order.editable %} |
102 | 102 | {% if order.name == "date" %} |
103 | | - <a class="colactive" href="{% listurl order=order.reversed_name %}"> |
| 103 | + <a class="col-active" href="{% listurl order=order.reversed_name %}"> |
104 | 104 | <span class="glyphicon glyphicon-chevron-{{ order.updown }}"></span> |
105 | 105 | </a> |
106 | | - <a class="colactive" href="{% listurl order=order.reversed_name %}"> |
| 106 | + <a class="col-active" href="{% listurl order=order.reversed_name %}"> |
107 | 107 | Date |
108 | 108 | </a> |
109 | 109 | {% else %} |
110 | | - <a class="colinactive" href="{% listurl order="date" %}">Date</a> |
| 110 | + <a class="col-inactive" href="{% listurl order="date" %}">Date</a> |
111 | 111 | {% endif %} |
112 | 112 | {% else %} |
113 | | - <span class="colinactive">Date</span> |
| 113 | + <span class="col-inactive">Date</span> |
114 | 114 | {% endif %} |
115 | 115 | </th> |
116 | 116 |
|
117 | 117 | <th> |
118 | 118 | {% if not order.editable %} |
119 | 119 | {% if order.name == "submitter" %} |
120 | | - <a class="colactive" href="{% listurl order=order.reversed_name %}"> |
| 120 | + <a class="col-active" href="{% listurl order=order.reversed_name %}"> |
121 | 121 | <span class="glyphicon glyphicon-chevron-{{ order.updown }}"></span> |
122 | 122 | </a> |
123 | | - <a class="colactive" href="{% listurl order=order.reversed_name %}"> |
| 123 | + <a class="col-active" href="{% listurl order=order.reversed_name %}"> |
124 | 124 | Submitter |
125 | 125 | </a> |
126 | 126 | {% else %} |
127 | | - <a class="colinactive" href="{% listurl order="submitter" %}"> |
| 127 | + <a class="col-inactive" href="{% listurl order="submitter" %}"> |
128 | 128 | Submitter |
129 | 129 | </a> |
130 | 130 | {% endif %} |
131 | 131 | {% else %} |
132 | | - <span class="colinactive">Submitter</span> |
| 132 | + <span class="col-inactive">Submitter</span> |
133 | 133 | {% endif %} |
134 | 134 | </th> |
135 | 135 |
|
136 | 136 | <th> |
137 | 137 | {% if not order.editable %} |
138 | 138 | {% if order.name == "delegate" %} |
139 | | - <a class="colactive" href="{% listurl order=order.reversed_name %}"> |
| 139 | + <a class="col-active" href="{% listurl order=order.reversed_name %}"> |
140 | 140 | <span class="glyphicon glyphicon-chevron-{{ order.updown }}"></span> |
141 | 141 | </a> |
142 | | - <a class="colactive" href="{% listurl order=order.reversed_name %}"> |
| 142 | + <a class="col-active" href="{% listurl order=order.reversed_name %}"> |
143 | 143 | Delegate |
144 | 144 | </a> |
145 | 145 | {% else %} |
146 | | - <a class="colinactive" href="{% listurl order="delegate" %}">Delegate</a> |
| 146 | + <a class="col-inactive" href="{% listurl order="delegate" %}">Delegate</a> |
147 | 147 | {% endif %} |
148 | 148 | {% else %} |
149 | | - <span class="colinactive">Delegate</span> |
| 149 | + <span class="col-inactive">Delegate</span> |
150 | 150 | {% endif %} |
151 | 151 | </th> |
152 | 152 |
|
153 | 153 | <th> |
154 | 154 | {% if not order.editable %} |
155 | 155 | {% if order.name == "state" %} |
156 | | - <a class="colactive" href="{% listurl order=order.reversed_name %}"> |
| 156 | + <a class="col-active" href="{% listurl order=order.reversed_name %}"> |
157 | 157 | <span class="glyphicon glyphicon-chevron-{{ order.updown }}"></span> |
158 | 158 | </a> |
159 | | - <a class="colactive" href="{% listurl order=order.reversed_name %}"> |
| 159 | + <a class="col-active" href="{% listurl order=order.reversed_name %}"> |
160 | 160 | State |
161 | 161 | </a> |
162 | 162 | {% else %} |
163 | | - <a class="colinactive" href="{% listurl order="state" %}">State</a> |
| 163 | + <a class="col-inactive" href="{% listurl order="state" %}">State</a> |
164 | 164 | {% endif %} |
165 | 165 | {% else %} |
166 | | - <span class="colinactive">State</span> |
| 166 | + <span class="col-inactive">State</span> |
167 | 167 | {% endif %} |
168 | 168 | </th> |
169 | 169 |
|
|
172 | 172 |
|
173 | 173 | <tbody> |
174 | 174 | {% for patch in page.object_list %} |
175 | | - <tr id="patch_row:{{patch.id}}"> |
| 175 | + <tr id="patch-row:{{patch.id}}"> |
176 | 176 | {% if user.is_authenticated %} |
177 | | - <td style="text-align: center;"> |
| 177 | + <td id="select-patch:{{patch.id}}" style="text-align: center;"> |
178 | 178 | <input type="checkbox" name="patch_id:{{patch.id}}"/> |
179 | 179 | </td> |
180 | 180 | {% endif %} |
|
185 | 185 | </button> |
186 | 186 | </td> |
187 | 187 | {% endif %} |
188 | | - <td> |
| 188 | + <td id="patch-name:{{patch.id}}"> |
189 | 189 | <a href="{% url 'patch-detail' project_id=project.linkname msgid=patch.encoded_msgid %}"> |
190 | 190 | {{ patch.name|default:"[no subject]"|truncatechars:100 }} |
191 | 191 | </a> |
192 | 192 | </td> |
193 | | - <td> |
| 193 | + <td id="patch-series:{{patch.id}}"> |
194 | 194 | {% if patch.series %} |
195 | 195 | <a href="?series={{patch.series.id}}"> |
196 | 196 | {{ patch.series|truncatechars:100 }} |
197 | 197 | </a> |
198 | 198 | {% endif %} |
199 | 199 | </td> |
200 | | - <td class="text-nowrap">{{ patch|patch_tags }}</td> |
201 | | - <td class="text-nowrap">{{ patch|patch_checks }}</td> |
202 | | - <td class="text-nowrap">{{ patch.date|date:"Y-m-d" }}</td> |
203 | | - <td>{{ patch.submitter|personify:project }}</td> |
204 | | - <td>{{ patch.delegate.username }}</td> |
205 | | - <td>{{ patch.state }}</td> |
| 200 | + <td id="patch-tags:{{patch.id}}" class="text-nowrap">{{ patch|patch_tags }}</td> |
| 201 | + <td id="patch-checks:{{patch.id}}" class="text-nowrap">{{ patch|patch_checks }}</td> |
| 202 | + <td id="patch-date:{{patch.id}}" class="text-nowrap">{{ patch.date|date:"Y-m-d" }}</td> |
| 203 | + <td id="patch-submitter:{{patch.id}}">{{ patch.submitter|personify:project }}</td> |
| 204 | + <td id="patch-delegate:{{patch.id}}">{{ patch.delegate.username }}</td> |
| 205 | + <td id="patch-state:{{patch.id}}">{{ patch.state }}</td> |
206 | 206 | </tr> |
207 | 207 | {% empty %} |
208 | 208 | <tr> |
|
215 | 215 | {% if page.paginator.count %} |
216 | 216 | {% include "patchwork/partials/pagination.html" %} |
217 | 217 |
|
218 | | - <div class="patchforms" id="patchforms"> |
| 218 | + <div class="patch-forms" id="patch-forms"> |
219 | 219 |
|
220 | | -{% if patchform %} |
221 | | - <div class="patchform patchform-properties"> |
| 220 | +{% if patch_form %} |
| 221 | + <div class="patch-form patch-form-properties"> |
222 | 222 | <h3>Properties</h3> |
223 | 223 | <table class="form"> |
224 | 224 | <tr> |
225 | 225 | <th>Change state:</th> |
226 | 226 | <td> |
227 | | - {{ patchform.state }} |
228 | | - {{ patchform.state.errors }} |
| 227 | + {{ patch_form.state }} |
| 228 | + {{ patch_form.state.errors }} |
229 | 229 | </td> |
230 | 230 | </tr> |
231 | 231 | <tr> |
232 | 232 | <th>Delegate to:</th> |
233 | 233 | <td> |
234 | | - {{ patchform.delegate }} |
235 | | - {{ patchform.delegate.errors }} |
| 234 | + {{ patch_form.delegate }} |
| 235 | + {{ patch_form.delegate.errors }} |
236 | 236 | </td> |
237 | 237 | </tr> |
238 | 238 | <tr> |
239 | 239 | <th>Archive:</th> |
240 | 240 | <td> |
241 | | - {{ patchform.archived }} |
242 | | - {{ patchform.archived.errors }} |
| 241 | + {{ patch_form.archived }} |
| 242 | + {{ patch_form.archived.errors }} |
243 | 243 | </td> |
244 | 244 | </tr> |
245 | 245 | <tr> |
246 | 246 | <td></td> |
247 | 247 | <td> |
248 | | - <input type="submit" name="action" value="{{patchform.action}}"/> |
| 248 | + <input type="submit" name="action" value="{{patch_form.action}}"/> |
249 | 249 | </td> |
250 | 250 | </tr> |
251 | 251 | </table> |
252 | 252 | </div> |
253 | 253 | {% endif %} |
254 | 254 |
|
255 | 255 | {% if user.is_authenticated %} |
256 | | - <div class="patchform patchform-bundle"> |
| 256 | + <div class="patch-form patch-form-bundle"> |
257 | 257 | <h3>Bundling</h3> |
258 | 258 | <table class="form"> |
259 | 259 | <tr> |
|
0 commit comments