diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-07-07 13:49:05 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-07-07 13:49:05 +0100 |
commit | 44819320af5533bb03a0855a75da0c9ffd207ee8 (patch) | |
tree | b42efd3598d5ef52eab09d3f58c8e451a3f67047 /templates | |
parent | 719afb490479aa1cbc306b81a7534bb8a8affbf3 (diff) | |
parent | c93ebfa26b864c26b9219b59f6676371e434ea0a (diff) |
Merge branch 'issues/forcouncils/195-overloaded-action-scheduled'
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/report/_inspect.html | 11 | ||||
-rw-r--r-- | templates/web/oxfordshire/report/inspect/state_groups_select.html | 5 |
2 files changed, 12 insertions, 4 deletions
diff --git a/templates/web/base/report/_inspect.html b/templates/web/base/report/_inspect.html index 98925271d..9d73fbb94 100644 --- a/templates/web/base/report/_inspect.html +++ b/templates/web/base/report/_inspect.html @@ -72,6 +72,17 @@ <label for="state">[% loc('State') %]</label> [% INCLUDE 'report/inspect/state_groups_select.html' %] </p> + [% IF permissions.report_instruct AND NOT problem.get_extra_metadata('inspected') %] + <div id="js-inspect-action-scheduled" class="[% "hidden" UNLESS problem.state == 'action scheduled' %]"> + <p>[% loc('Do you want to automatically raise a defect?') %]</p> + <p class="segmented-control segmented-control--radio"> + <input type="radio" name="raise_defect" id="raise_defect_yes" value="1"> + <label class="btn" for="raise_defect_yes">[% loc('Yes') %]</label> + <input type="radio" name="raise_defect" id="raise_defect_no" value="0"> + <label class="btn" for="raise_defect_no">[% loc('No') %]</label> + </p> + </div> + [% END %] <div id="js-duplicate-reports" class="[% "hidden" UNLESS problem.duplicate_of %]"> <input type="hidden" name="duplicate_of" value="[% problem.duplicate_of.id %]"> <p class="[% "hidden" UNLESS problem.duplicate_of %]"><strong>[% loc('Duplicate of') %]</strong></p> diff --git a/templates/web/oxfordshire/report/inspect/state_groups_select.html b/templates/web/oxfordshire/report/inspect/state_groups_select.html index dcb24c982..a5fce525c 100644 --- a/templates/web/oxfordshire/report/inspect/state_groups_select.html +++ b/templates/web/oxfordshire/report/inspect/state_groups_select.html @@ -2,14 +2,11 @@ SET state_groups = [ [ loc('New'), [ 'confirmed', 'investigating' ] ], + [ loc('Scheduled'), [ 'action scheduled' ] ], [ loc('Fixed'), [ 'fixed - council' ] ], [ loc('Closed'), [ 'not responsible', 'duplicate', 'unable to fix' ] ] ]; -IF c.user_exists AND c.user.has_body_permission_to('report_instruct'); - CALL state_groups.splice(1, 0, [ [ loc('Scheduled'), [ 'action scheduled' ] ] ]); -END - %] [% DEFAULT current_state = problem.state %] [% INCLUDE 'report/_state_select_field.html' %] |