blob: 8498055b19be675ca1bbefe0f2f3de47125a98c2 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
[% INCLUDE 'admin/header.html' title=loc('Summary') -%]
[% PROCESS 'admin/report_blocks.html' %]
<div class="fms-admin-info fms-admin-floated">
This is the administration interface for [% site_name %]. If you
need any help or guidance, there is <a href="http://fixmystreet.org/">plenty of
online documentation</a>. The FixMyStreet Platform is
<a href="https://github.com/mysociety/fixmystreet">actively supported</a> by
its developers, and has a community of people using or working on the code.
Please <a href="http://fixmystreet.org/community/">sign up to the mailing list
or get in touch</a> to let us know about your use of the FixMyStreet Platform,
and to receive notices of updates.
</div>
[% IF bodies.size == 0 %]
<p class="fms-admin-info">
[% loc('Currently no bodies have been created.') %]
<br>
[% tprintf( loc('You need to <a href="%s">add some bodies</a> (such as councils or departments) before any reports can be sent.'), c.uri_for('bodies')) %]
</p>
[% END %]
<div class="admin-index-search form-txt-submit-box clearfix">
<form method="get" action="[% c.uri_for('reports') %]" accept-charset="utf-8">
<p><label for="search_reports">[% loc('Search Reports') %]</label>
<input type="text" class="form-control" name="search" size="30" id="search_reports" value="[% searched | html %]">
<input type="submit" class="btn" value="[% loc('Go') %]">
</form>
<form method="get" action="[% c.uri_for('users') %]" accept-charset="utf-8">
<p><label for="search_users">[% loc('Search Users') %]</label>
<input type="text" class="form-control" name="search" size="30" id="search_users" value="[% searched | html %]">
<input type="submit" class="btn" value="[% loc('Go') %]">
</form>
[% IF c.user.is_superuser %]
<form method="get" action="[% c.uri_for('bodies') %]">
<label for="search_body">[% loc('Edit body details') %]</label>
<select class="form-control" id="search_body" name="body">
[% FOREACH body IN bodies %]
[%- SET id = body.id %]
<option[% IF body.deleted %] class="adminhidden"[% END %] value="[% body.id %]">
[% body.name | html %]
[%- IF body.parent %], [% body.parent.name | html %][% END -%]
</option>
[% END %]
</select>
<input type="submit" class="btn" value="[% loc('Go') %]">
</form>
[% END %]
</div>
[% IF unsent_reports.size %]
<h2>[% loc('Reports waiting to be sent') %]</h2>
<table cellspacing="0" cellpadding="2" border="1">
<tr>
<th>[% loc('ID') %]</th>
<th>[% loc('Title') %]</th>
<th>[% loc('Name') %]</th>
<th>[% loc('Body') %]</th>
<th>[% loc('State') %]</th>
<th>*</th>
</tr>
[% INCLUDE 'admin/problem_row.html' problems = unsent_reports %]
</table>
[% END %]
<h2>[% loc('Stats') %]</h2>
[% INCLUDE 'status/stats.html' admin_include_users=1 %]
[% IF c.cobrand.admin_show_creation_graph -%]
<p>
<a href="[% c.config.BASE_URL %]/fms-live-creation.png" class="admin-offsite-link">[% loc('Graph of problem creation by status over time') %]</a>
</p>
[% END -%]
[% INCLUDE 'admin/footer.html' %]
|