aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default/admin/stats.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/default/admin/stats.html')
-rw-r--r--templates/web/default/admin/stats.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/templates/web/default/admin/stats.html b/templates/web/default/admin/stats.html
index ccd41601a..3b9f4a264 100644
--- a/templates/web/default/admin/stats.html
+++ b/templates/web/default/admin/stats.html
@@ -4,6 +4,28 @@
<p>
<strong>[% tprintf( loc( '%sreports between %s and %s' ), ( unconfirmed ? loc( 'All' ) _ ' ' : loc( 'Confirmed' ) _ ' ' ), start_date.ymd, end_date.ymd ) | html %]</strong>
</p>
+[% IF bymonth %]
+<table>
+ <thead>
+ <td style="width: 8em"><strong>[% loc('Year') %]</strong></td>
+ <td style="width: 8em"><strong>[% loc('Month') %]</strong></td>
+ <td><strong>[% loc('Count') %]</strong></td>
+ </thead>
+ [% total = 0 %]
+ [% WHILE ( state = states.next ) %]
+ [% total = total + state.get_column( 'count' ) %]
+ <tr>
+ <td>[% state.get_column( 'c_year') | html %]</td>
+ <td>[% state.get_column( 'c_month') | html %]</td>
+ <td>[% state.get_column( 'count' ) %]</td>
+ </tr>
+ [% END %]
+ <tr>
+ <td colspan="2"><strong>[% loc( 'Total' ) %]</strong></td>
+ <td><strong>[% total %]</strong></td>
+ </tr>
+</table>
+[% ELSE %]
<table>
<thead>
<td style="width: 8em"><strong>[% loc('Current state') %]</strong></td>
@@ -22,6 +44,7 @@
<td><strong>[% total %]</strong></td>
</tr>
</table>
+[% END %]
[% IF unconfirmed %]
<p>
@@ -54,6 +77,19 @@
</p>
<p>
+ <input type="checkbox" name="bymonth" id="bymonth"[% bymonth ? ' checked' : '' %] /><label for="bymonth">[% loc('By Date') %]</label>
+ </p>
+
+ <p>
+ [% loc('Council:') %] <select id='council' name='council'>
+ <option value=''>[% loc('No council') %]</option>
+ [% FOR council IN council_ids %]
+ <option value="[% council %]"[% ' selected' IF council == selected_council %]>[% council_details.$council.name %]</option>
+ [% END %]
+ </select>
+ </p>
+
+ <p>
<input type="submit" name="getcounts" size="30" id="getcounts" value="Get Count" />
</p>
</form>