diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-03-10 18:04:04 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-03-10 18:05:22 +0000 |
commit | 8b19bd2c900e94b1dff643211a4b3a93c8718c27 (patch) | |
tree | 665fc3b7d751d3f3618953688f22a574d8b1c651 /templates | |
parent | 57e5cd72ed7fe2f8b9c72a1390a7ad37fd5cfcc2 (diff) |
Be clearer if no states selected is not all states
As with 1115f106, a default might not be everything.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/reports/_list-filters.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/web/base/reports/_list-filters.html b/templates/web/base/reports/_list-filters.html index 61a44629d..ce4666156 100644 --- a/templates/web/base/reports/_list-filters.html +++ b/templates/web/base/reports/_list-filters.html @@ -1,6 +1,10 @@ [% select_status = BLOCK %] <select class="form-control js-multiple" name="status" id="statuses" multiple - data-all="[% loc('All reports') %]" data-all-options='["open","closed","fixed"]'> + data-all="[% loc('All reports') %]" data-all-options='["open","closed","fixed"]' + [%~ IF c.cobrand.on_map_default_status == 'open' %] + data-none="[% loc('Unfixed reports') %]" + [%~ END ~%] + > [% IF c.user_exists AND c.user.has_body_permission_to('planned_reports') AND !shortlist %] <option value="shortlisted"[% ' selected' IF filter_status.shortlisted %]>[% loc('Shortlisted') %]</option> <option value="unshortlisted"[% ' selected' IF filter_status.unshortlisted %]>[% loc('Unshortlisted') %]</option> |