diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-06-29 14:18:39 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-07-02 16:55:06 +0100 |
commit | 419ed059989e7c0718de0dda436f1928200b6518 (patch) | |
tree | 00c8ff7cb957c4e99f9a1e0463ddd311fbde42e2 /templates | |
parent | 6e3ea5f3fbc56919dd183276bfb84b1deef9c21c (diff) |
Show all fixed issues when staff uses map filter.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/reports/_list-filters.html | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/templates/web/base/reports/_list-filters.html b/templates/web/base/reports/_list-filters.html index 928d54452..61cff8de0 100644 --- a/templates/web/base/reports/_list-filters.html +++ b/templates/web/base/reports/_list-filters.html @@ -3,7 +3,13 @@ <select class="form-control js-multiple" name="status" id="statuses" multiple data-all="[% loc('All') %]" [% IF show_all_states %] - [% options = []; FOR group IN filter_states; FOR state IN group.1; NEXT IF state == 'hidden'; options.push(state); END; END %] + [% options = []; + FOR group IN filter_states; FOR state IN group.1; + NEXT IF state == 'hidden'; + SET state = 'fixed' IF state == 'fixed - council'; + options.push(state); + END; END + %] data-all-options='["[% options.join('", "') %]"]' [%~ ELSE ~%] [%~ IF has_fixed_state ~%] @@ -22,6 +28,7 @@ [% FOR group IN filter_states %] [% FOR state IN group.1 %] [% NEXT IF state == 'hidden' %] + [% SET state = 'fixed' IF state == 'fixed - council' ~%] <option value="[% state %]"[% ' selected' IF filter_status.$state %]>[% prettify_state(state, 1) %]</option> [% END %] [% END %] |