aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/web/zurich/admin/header.html30
-rw-r--r--templates/web/zurich/admin/reports.html4
2 files changed, 24 insertions, 10 deletions
diff --git a/templates/web/zurich/admin/header.html b/templates/web/zurich/admin/header.html
index 113839a65..7e2337e6d 100644
--- a/templates/web/zurich/admin/header.html
+++ b/templates/web/zurich/admin/header.html
@@ -18,11 +18,29 @@ dd { margin-left: 8em; }
select { width: auto; }
</style>
- <p><strong>[% loc('FixMyStreet admin:') %]</strong>
- <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>
+ <!--<strong>[% loc('FixMyStreet admin:') %]</strong>-->
+ <div class="admin-nav">
+ <ul>
+ [% pagename = c.req.uri.path %]
+ [% pagename = pagename.replace('/admin/?(\w*)', '$1') %]
+
+ <li [% IF pagename == 'summary' OR pagename == '' %]class="current"[% END %]>
+ <a href="/admin/summary">[% loc('Summary') %]</a>
+ </li>
+ [% IF admin_type == 'dm' OR admin_type == 'super' %]
+ <li [% IF pagename == 'bodies' %]class="current"[% END %]>
+ <a href="/admin/bodies">[% loc('Bodies') %]</a>
+ </li>
+ <li [% IF pagename == 'reports' %]class="current"[% END %]>
+ <a href="/admin/reports">[% loc('Reports') %]</a>
+ </li>
+ <li class="search-box">
+ <form method="get" action="[% c.uri_for('reports') %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8">
+ <input type="text" name="search" size="20" id="search" placeholder="[% loc('Search reports') %]">
+ </form>
+ </li>
+ </ul>
+ </div>
<!-- | <a href="timeline">Timeline</a> -->
<!-- | <a href="questionnaire">Survey</a> -->
<!-- | <a href="/admin/users">[% loc('Users') %]</a> -->
@@ -30,4 +48,4 @@ select { width: auto; }
<!-- | <a href="stats">Stats</a> -->
[% END %]
- <h1>[% title %]</h1>
+ <h1 style="clear:both;">[% title %]</h1>
diff --git a/templates/web/zurich/admin/reports.html b/templates/web/zurich/admin/reports.html
index 5911934c8..0a3b5d568 100644
--- a/templates/web/zurich/admin/reports.html
+++ b/templates/web/zurich/admin/reports.html
@@ -1,10 +1,6 @@
[% PROCESS 'admin/header.html' title=loc('Search Reports') %]
[% PROCESS 'admin/report_blocks.html' %]
-<form method="get" action="[% c.uri_for('reports') %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8">
- <p><label for="search">[% loc('Search:') %]</label> <input type="text" name="search" size="30" id="search">
-</form>
-
[% IF searched %]
<table cellspacing="0" cellpadding="2" border="1">
<tr>