diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-05-19 12:04:05 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-05-26 12:41:32 +0100 |
commit | 018193054d34778488ed8e5a1669eb9e03c317cd (patch) | |
tree | 33284e882ec609f063b5992659d6d1fd1273b348 /templates | |
parent | d7286a011c7216cdae9e8aee21895f4f74c3277b (diff) |
Use same state input in update form as elsewhere.
This lets it look the same as admin/inspect uses, with optgroups.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/report/update/form_update.html | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/templates/web/base/report/update/form_update.html b/templates/web/base/report/update/form_update.html index f15a1f74b..34abf53c5 100644 --- a/templates/web/base/report/update/form_update.html +++ b/templates/web/base/report/update/form_update.html @@ -36,16 +36,8 @@ <textarea rows="7" cols="30" name="update" class="form-control" id="form_update" placeholder="[% loc('Please write your update here') %]" required>[% update.text | html %]</textarea> [% IF c.user && c.user.belongs_to_body( problem.bodies_str ) %] - <label for="form_state">[% loc( 'State' ) %]</label> - <select name="state" id="form_state" class="form-control"> - [% FOREACH state IN [ ['confirmed', loc('Open')], ['investigating', - loc('Investigating')], ['action scheduled', loc('Action Scheduled')], - ['in progress', loc('In Progress')], ['duplicate', loc('Duplicate')], - ['unable to fix', loc('No further action')], ['not responsible', loc('Not Responsible')], - ['fixed', loc('Fixed')] ] %] - <option [% 'selected ' IF state.0 == problem.state_display %] value="[% state.0 %]">[% state.1 %]</option> - [% END %] - </select> + <label for="state">[% loc( 'State' ) %]</label> + [% INCLUDE 'report/inspect/state_groups_select.html' %] [% ELSE %] [% IF (problem.is_fixed OR problem.state == 'closed') AND ((c.user_exists AND c.user.id == problem.user_id) OR alert_to_reporter) %] |