diff options
Diffstat (limited to 'templates/web/zurich/admin/index-dm.html')
-rw-r--r-- | templates/web/zurich/admin/index-dm.html | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/templates/web/zurich/admin/index-dm.html b/templates/web/zurich/admin/index-dm.html index 6b7fbab85..e4676b811 100644 --- a/templates/web/zurich/admin/index-dm.html +++ b/templates/web/zurich/admin/index-dm.html @@ -1,24 +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'), - 'planned' = loc('Planned'), - 'fixed - council' = loc('Closed'), - 'hidden' = loc('Hidden'), - 'closed' = loc('Closed'), - } -%] -<h2>New reports</h2> +[% status_message %] + +<h2>[% loc('Submitted') %]</h2> [% INCLUDE list, problems = unconfirmed.all %] <h2>[% loc('Planned') %]</h2> [% INCLUDE list, problems = approval.all %] -<h2>All reports</h2> +<h2>[% loc('All reports') %]</h2> [% INCLUDE list, problems = other.all %] [% INCLUDE 'admin/footer.html' %] @@ -28,7 +19,7 @@ <tr> <th>[% loc('ID') %]</th> <th>[% loc('Title') %]</th> - <th>[% loc('Status') %]</th> + <th>[% loc('State') %]</th> <th>[% loc('Category') %]</th> <th>[% loc('Created') %]</th> <th>*</th> @@ -36,15 +27,6 @@ <tr class="filter-row"> <td colspan="6"><input type="text" placeholder="[%= loc('Filter report list') %]" /></td> </tr> -[%- FOR problem IN problems %] - <tr[% ' class="adminhidden"' IF problem.state == 'hidden' %]> - <td class="record-id">[% problem.id %]</td> - <td>[% PROCESS value_or_nbsp value=problem.title %]</td> - <td>[% states.${problem.state} %]</td> - <td>[% problem.category %]</td> - <td>[% PROCESS format_date this_date=problem.created %]</td> - <td><a href="[% c.uri_for( 'report_edit', problem.id ) %]">[% loc('Edit') %]</a></td> - </tr> -[%- END -%] +[% INCLUDE 'admin/problem_row.html' %] </table> [% END %] |