aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/zurich/admin/header.html
blob: d0c399a83312382cc296134050448bcbd2d950b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[% INCLUDE 'header.html' admin = 1, bodyclass = 'fullwidthpage admin' %]
[%
    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'),
    }
%]
<style type="text/css">
dt { clear: left; float: left; font-weight: bold; }
dd { margin-left: 8em; }
.adminhidden { color: #666666; }
.error { color: red; }
select { width: auto; }
</style>

    <!--<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>
            <li [% IF pagename == 'reports' OR pagename == 'report_edit' %]class="current"[% END %]>
                <a href="/admin/reports">[% loc('Reports') %]</a>
            </li>
            [% IF admin_type == 'dm' OR admin_type == 'super' %]
            <li [% IF pagename == 'bodies' OR pagename == 'body' %]class="current"[% END %]>
                <a href="/admin/bodies">[% loc('Bodies') %]</a>
            </li>
            [% END %]
            [% IF admin_type == 'super' %]
            <li [% IF pagename == 'users' OR pagename == 'user_edit' %]class="current"[% END %]>
                <a href="/admin/users">[% loc('Users') %]</a>
            </li>
            [% END %]
            <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="flagged">Flagged</a> -->
    <!-- | <a href="stats">Stats</a> -->

    <h1 style="clear:both;">[% title %]</h1>