diff options
Diffstat (limited to 'templates/web')
-rw-r--r-- | templates/web/zurich/admin/header.html | 18 | ||||
-rw-r--r-- | templates/web/zurich/admin/index-sdm.html | 34 |
2 files changed, 44 insertions, 8 deletions
diff --git a/templates/web/zurich/admin/header.html b/templates/web/zurich/admin/header.html index 1d72deb0f..252f4c2d1 100644 --- a/templates/web/zurich/admin/header.html +++ b/templates/web/zurich/admin/header.html @@ -8,13 +8,15 @@ select { width: auto; } </style> <p><strong>[% loc('FixMyStreet admin:') %]</strong> - <a href="/admin/summary">[% loc('Summary') %]</a> | - <a href="/admin/bodies">[% loc('Bodies') %]</a> | - <a href="/admin/reports">[% loc('Reports') %]</a> | - <!-- <a href="timeline">Timeline</a> | --> - <!-- <a href="questionnaire">Survey</a> | --> - <a href="/admin/users">[% loc('Users') %]</a> - <!-- <a href="flagged">Flagged</a> | --> - <!-- <a href="stats">Stats</a> --> + <a href="/admin/summary">[% loc('Summary') %]</a> +[% IF admin_type == 'dm' OR admin_type == 'super' %] + | <a href="/admin/bodies">[% loc('Bodies') %]</a> + | <a href="/admin/reports">[% loc('Reports') %]</a> + <!-- | <a href="timeline">Timeline</a> --> + <!-- | <a href="questionnaire">Survey</a> --> + | <a href="/admin/users">[% loc('Users') %]</a> + <!-- | <a href="flagged">Flagged</a> --> + <!-- | <a href="stats">Stats</a> --> +[% END %] <h1>[% title %]</h1> diff --git a/templates/web/zurich/admin/index-sdm.html b/templates/web/zurich/admin/index-sdm.html new file mode 100644 index 000000000..c4659d56c --- /dev/null +++ b/templates/web/zurich/admin/index-sdm.html @@ -0,0 +1,34 @@ +[% INCLUDE 'admin/header.html' title=loc('Summary') -%] +[% PROCESS 'admin/report_blocks.html' %] + +<h2>New reports</h2> +[% INCLUDE list, problems = reports_new.all %] + +<h2>Reports awaiting approval</h2> +[% INCLUDE list, problems = reports_unpublished.all %] + +<h2>Reports published</h2> +[% INCLUDE list, problems = reports_published.all %] + +[% INCLUDE 'admin/footer.html' %] + +[% BLOCK list %] +<table cellspacing="0" cellpadding="2" border="1"> + <tr> + <th>[% loc('ID') %]</th> + <th>[% loc('Title') %]</th> + <th>[% loc('Category') %]</th> + <th>[% loc('Created') %]</th> + <!-- <th>*</th> --> + </tr> +[%- FOR problem IN problems %] + <tr[% ' class="adminhidden"' IF problem.state == 'hidden' %]> + <td>[% problem.id %]</td> + <td>[% PROCESS value_or_nbsp value=problem.title %]</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> --> + </tr> +[%- END -%] +</table> +[% END %] |