diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-04-13 13:13:23 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-04-13 13:13:23 +0100 |
commit | cfe97d706f5cb7b3f3ca6d9227a872a7e50d97b2 (patch) | |
tree | 7bb88afa5f5a3168ec6beb43b9cdcd559b568014 /templates/web/base/report/_inspect.html | |
parent | 4c8f35f69a2435492e1bd5f38d20211b6b492c22 (diff) |
Factor out shared admin template.
Diffstat (limited to 'templates/web/base/report/_inspect.html')
-rw-r--r-- | templates/web/base/report/_inspect.html | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/templates/web/base/report/_inspect.html b/templates/web/base/report/_inspect.html index d2ba1cc88..b75394abd 100644 --- a/templates/web/base/report/_inspect.html +++ b/templates/web/base/report/_inspect.html @@ -36,21 +36,7 @@ <div class="inspect-section"> <p> <label for="category">[% loc('Category') %]</label> - [%# XXX this is duplicated from admin/report_edit.html, should be refactored %] - <select name="category" id="category" class="form-control"> - [% IF NOT problem.category OR NOT categories.grep(problem.category).size %] - <optgroup label="[% loc('Existing category') %]"> - <option selected value="[% problem.category | html %]">[% (problem.category OR '-') | html %]</option> - </optgroup> - [% END %] - [% IF categories.size %] - <optgroup label="[% loc('Available categories') %]"> - [% FOREACH cat IN categories %] - <option[% ' selected' IF problem.category == cat %]>[% cat | html %]</option> - [% END %] - </optgroup> - [% END %] - </select> + [% INCLUDE 'admin/report-category.html' %] </p> [% FOREACH category IN categories %] |