aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/admin/responsepriorities/edit.html
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2016-10-18 15:35:44 +0100
committerDave Arter <davea@mysociety.org>2016-10-19 14:45:41 +0100
commit255d42b042d06c2a4da39e1a1a73c331862a1c62 (patch)
treed71e979fdf7b8b43f57565588fbc51cebb9f65c5 /templates/web/base/admin/responsepriorities/edit.html
parent58684be7a9b8fec8c90e6f94ecea0c21c3ae5e59 (diff)
Refactor template/priority category checkboxes into own template
- Also adds add select all/none UI - Adds admin hint for empty category list behaviour
Diffstat (limited to 'templates/web/base/admin/responsepriorities/edit.html')
-rw-r--r--templates/web/base/admin/responsepriorities/edit.html21
1 files changed, 8 insertions, 13 deletions
diff --git a/templates/web/base/admin/responsepriorities/edit.html b/templates/web/base/admin/responsepriorities/edit.html
index 93b050a20..4d838eed2 100644
--- a/templates/web/base/admin/responsepriorities/edit.html
+++ b/templates/web/base/admin/responsepriorities/edit.html
@@ -17,19 +17,14 @@
<strong>[% loc('Description:') %] </strong>
<input type="text" name="description" class="form-control" size="30" value="[% rp.description | html %]">
</p>
- <p>
- <strong>[% loc('Categories:') %]</strong>
- <ul>
- [% FOR contact IN contacts %]
- <li>
- <label>
- <input type="checkbox" name="contacts[[% contact.id %]]" [% 'checked' IF contact.active %]/>
- [% contact.category %]
- </label>
- </li>
- [% END %]
- </ul>
- </p>
+
+ <div class="admin-hint">
+ <p>
+ [% loc('If you only want this priority to be an option for specific categories, pick them here. By default they will show for all categories.') %]
+ </p>
+ </div>
+ [% INCLUDE 'admin/category-checkboxes.html' %]
+
<p>
<label>
<input type="checkbox" name="deleted" id="deleted" value="1"[% ' checked' IF rp.deleted %]>