aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-06-03 22:29:30 +0100
committerMatthew Somerville <matthew@mysociety.org>2013-06-03 22:29:30 +0100
commit81adadcb615d97b6b3d45399e15f3bed140bd61a (patch)
treef9984f27cb86e5603db2c6e3f697810090b0fead
parent8d4e4e509ccd17014c1ea66b980dd8b340679aea (diff)
Show all states in admin state dropdown. Fixes #430.
-rw-r--r--templates/web/default/admin/report_edit.html27
1 files changed, 23 insertions, 4 deletions
diff --git a/templates/web/default/admin/report_edit.html b/templates/web/default/admin/report_edit.html
index 91af70d14..b9527af73 100644
--- a/templates/web/default/admin/report_edit.html
+++ b/templates/web/default/admin/report_edit.html
@@ -26,12 +26,31 @@
<li>[% loc('Property address:') %] [% problem.extra.address | html %]</li>
[% END %]
<li><label class="inline" for="state">[% loc('State:') %]</label> <select name="state" id="state">
- [% FOREACH state IN [ ['confirmed', loc('Open')], ['investigating',
- loc('Investigating')], ['planned', loc('Planned')], ['in progress',
- loc('In progress')], ['closed', loc('Closed')], ['fixed', loc('Fixed')], ['fixed - user',
- loc('Fixed - User')], ['fixed - council', loc('Fixed - Council')], ['hidden', loc('Hidden')], ['partial', loc('Partial')],['unconfirmed',loc('Unconfirmed')] ] %]
+[% FOREACH group IN [
+ [ loc('Open'), [
+ [ 'confirmed', loc('Open') ], [ 'investigating', loc('Investigating') ],
+ [ 'planned', loc('Planned') ], [ 'in progress', loc('In progress') ],
+ [ 'action scheduled', loc('Action Scheduled') ],
+ ] ],
+ [ loc('Fixed'), [
+ [ 'fixed', loc('Fixed') ], [ 'fixed - user', loc('Fixed - User') ],
+ [ 'fixed - council', loc('Fixed - Council') ]
+ ] ],
+ [ loc('Closed'), [
+ [ 'unable to fix', loc('Unable to fix') ], [ 'not responsible', loc('Not Responsible') ],
+ [ 'duplicate', loc('Duplicate') ], [ 'closed', loc('Closed') ],
+ [ 'internal referral', loc('Internal referral') ],
+ ] ],
+ [ loc('Hidden'), [
+ [ 'hidden', loc('Hidden') ], [ 'partial', loc('Partial') ], [ 'unconfirmed',loc('Unconfirmed') ]
+ ] ]
+] %]
+ <optgroup label="[% group.0 %]">
+ [% FOREACH state IN group.1 %]
<option [% 'selected ' IF state.0 == problem.state %] value="[% state.0 %]">[% state.1 %]</option>
[% END %]
+ </optgroup>
+[% END %]
</select></li>
<li>[% loc('Category:') %] [% problem.category | html %] </li>
<li><label class="inline" for="anonymous">[% loc('Anonymous:') %]</label> <select name="anonymous" id="anonymous">