diff options
-rw-r--r-- | templates/web/zurich/admin/index-dm.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/web/zurich/admin/index-dm.html b/templates/web/zurich/admin/index-dm.html index 6ece5385b..0e6bd7dc9 100644 --- a/templates/web/zurich/admin/index-dm.html +++ b/templates/web/zurich/admin/index-dm.html @@ -1,5 +1,15 @@ [% INCLUDE 'admin/header.html' title=loc('Summary') -%] [% PROCESS 'admin/report_blocks.html' %] +[% + states = { + 'unconfirmed' = loc('Submitted'), + 'confirmed' = loc('Open'), + 'in progress' = loc('In progress'), + 'fixed - council' = loc('Fixed'), + 'hidden' = loc('Hidden'), + 'closed' = loc('Third party'), + } +%] <h2>New reports</h2> [% INCLUDE list, problems = unconfirmed.all %] @@ -36,6 +46,7 @@ <tr> <th>[% loc('ID') %]</th> <th>[% loc('Title') %]</th> + <th>[% loc('Status') %]</th> <th>[% loc('Category') %]</th> <th>[% loc('Created') %]</th> <th>*</th> @@ -44,6 +55,13 @@ <tr[% ' class="adminhidden"' IF problem.state == 'hidden' %]> <td>[% problem.id %]</td> <td>[% PROCESS value_or_nbsp value=problem.title %]</td> + [% 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')] ] %] + <option [% 'selected ' IF state.0 == problem.state %] value="[% state.0 %]">[% state.1 %]</option> + [% END %] + <td>[% states.${problem.state} %]</td> <td>[% problem.category %]</td> <td>[% PROCESS format_time time=problem.created %]</td> <td><a href="[% c.uri_for( 'report_edit', problem.id ) %]">[% loc('Edit') %]</a></td> |