diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-29 10:41:01 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-31 15:37:10 +0100 |
commit | 51a5bcc74982aefea4f7b364e2f4bc49596bd9bf (patch) | |
tree | ed76b4ea5dc1a1be65e34b33c8471c4c0472e2e8 /templates | |
parent | efd398d47b9cd7c5e86190f2daa3ec1fa613484c (diff) |
Hide things needing fixed state if no fixed state.
Front page stats, update form question, list filtering, plus do not send
any questionnaires.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/front/stats.html | 2 | ||||
-rw-r--r-- | templates/web/base/report/update/form_update.html | 2 | ||||
-rw-r--r-- | templates/web/base/reports/_list-filters.html | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/templates/web/base/front/stats.html b/templates/web/base/front/stats.html index eb671137b..41358c869 100644 --- a/templates/web/base/front/stats.html +++ b/templates/web/base/front/stats.html @@ -35,7 +35,9 @@ <div id="front_stats"> <div>[% tprintf( new_text, decode(new_n) ) %]</div> + [% IF has_fixed_state %] <div>[% tprintf( fixed_text, decode(fixed_n) ) %]</div> + [% END %] [% IF c.cobrand.moniker != 'zurich' %] <div>[% tprintf( updates_text, decode(updates_n) ) %]</div> [% END %] diff --git a/templates/web/base/report/update/form_update.html b/templates/web/base/report/update/form_update.html index c988e0593..5a1b3b602 100644 --- a/templates/web/base/report/update/form_update.html +++ b/templates/web/base/report/update/form_update.html @@ -48,7 +48,7 @@ <label class="inline" for="form_reopen">[% loc('This problem has not been fixed') %]</label> [% END %] - [% ELSIF !problem.is_fixed %] + [% ELSIF !problem.is_fixed AND has_fixed_state %] <div class="checkbox-group"> <input type="checkbox" name="fixed" id="form_fixed" value="1"[% ' checked' IF update.mark_fixed %]> diff --git a/templates/web/base/reports/_list-filters.html b/templates/web/base/reports/_list-filters.html index 329e481ae..50e88857d 100644 --- a/templates/web/base/reports/_list-filters.html +++ b/templates/web/base/reports/_list-filters.html @@ -19,7 +19,9 @@ [% ELSE %] <option value="open"[% ' selected' IF filter_status.open %]>[% prettify_state('confirmed') %]</option> <option value="closed"[% ' selected' IF filter_status.closed %]>[% prettify_state('closed') %]</option> - <option value="fixed"[% ' selected' IF filter_status.fixed %]>[% prettify_state('fixed') %]</option> + [% IF has_fixed_state %] + <option value="fixed"[% ' selected' IF filter_status.fixed %]>[% prettify_state('fixed') %]</option> + [% END %] [% END %] </select> [% END %] |