blob: c54635b2abf99b9e8e61424f9e26d65c2bfa7810 (
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
[%
INCLUDE 'header.html'
title = loc('Dashboard')
robots = 'noindex, nofollow'
bodyclass = 'fullwidthpage'
%]
<style>
th[scope=row] { text-align: left; }
tr.subtotal { background-color: #eee; }
#overview tr:nth-child(2) { background-color: #fee; }
</style>
<p>Ward: <select name="ward"><option>All</option>
[% FOR ward IN children.values.sort('name') %]
<option value="[% ward.id %]">[% ward.name %]</option>
[% END %]
</select>
<h2>Performance Overview</h2>
<p>Report category: <select name="category"><option>All</option>
[% FOR category IN categories %]
<option></option>
[% END %]
</select>
<table width="100%" id="overview">
<tr>
<td> </td>
<th scope="col">WTD</th>
<th scope="col">Last 7 days</th>
<th scope="col">Last 4 weeks</th>
<th scope="col">YTD</th>
</tr>
[%
rows = {
'0' => [ "total", "Total reports received" ]
'1' => [ "fixed - council", "Council has marked as fixed" ]
'2' => [ "fixed_user", "User has marked as fixed" ]
};
FOR row IN rows %]
<tr>
<th scope="row">[% row.value.1 %]</th>
<td>[% problems.wtd.${row.value.0} %]</td>
<td>[% problems.week.${row.value.0} %]</td>
<td>[% problems.weeks.${row.value.0} %]</td>
<td>[% problems.ytd.${row.value.0} %]</td>
</tr>
[% END %]
<tr class='subtotal'>
<th scope="row">Total marked as fixed</th>
<td>[% problems.wtd.${"fixed - council"} + problems.wtd.fixed_user %]</td>
<td>[% problems.week.${"fixed - council"} + problems.week.fixed_user %]</td>
<td>[% problems.weeks.${"fixed - council"} + problems.weeks.fixed_user %]</td>
<td>[% problems.ytd.${"fixed - council"} + problems.ytd.fixed_user %]</td>
</tr>
[%
rows = {
'0' => [ "in progress", "Council has marked as in progress" ]
'1' => [ "planned", "Council has marked as planned" ]
'2' => [ "investigating", "Council has marked as investigating" ]
};
wtd = 0, week = 0, weeks = 0, ytd = 0;
FOR row IN rows %]
<tr>
<th scope="row">[% row.value.1 %]</th>
<td>[% problems.wtd.${row.value.0} %]</td>
<td>[% problems.week.${row.value.0} %]</td>
<td>[% problems.weeks.${row.value.0} %]</td>
<td>[% problems.ytd.${row.value.0} %]</td>
</tr>
[% END %]
<tr class='subtotal'>
<th scope="row">Total marked</th>
<td>[% problems.wtd.${"in progress"} + problems.wtd.planned + problems.wtd.investigating %]</td>
<td>[% problems.week.${"in progress"} + problems.week.planned + problems.week.investigating %]</td>
<td>[% problems.weeks.${"in progress"} + problems.weeks.planned + problems.weeks.investigating %]</td>
<td>[% problems.ytd.${"in progress"} + problems.ytd.planned + problems.ytd.investigating %]</td>
</tr>
<tr>
<th scope="row">Average time to fix</th>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
</tr>
<tr>
<th scope="row">Average time to mark</th>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
</tr>
<tr class='subtotal'>
<th scope="row">Total not marked</th>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
</tr>
</table>
<h2>Reports</h2>
<p>Report state: <select name="state"><option>All</option></select>
<table width="100%">
<tr>
<th scope="col">Less than 7 days old</th>
<th scope="col">7-14 days old</th>
<th scope="col">14-30 days old</th>
<th scope="col">30+ days old</th>
</tr>
<tr>
<td><ul><li></li></ul></td>
<td><ul><li></li></ul></td>
<td><ul><li></li></ul></td>
<td><ul><li></li></ul></td>
</tr>
</table>
[% INCLUDE 'footer.html' %]
|