aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/seesomething/admin
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/seesomething/admin')
-rw-r--r--templates/web/seesomething/admin/footer.html7
-rw-r--r--templates/web/seesomething/admin/header.html2
-rw-r--r--templates/web/seesomething/admin/stats.html63
3 files changed, 72 insertions, 0 deletions
diff --git a/templates/web/seesomething/admin/footer.html b/templates/web/seesomething/admin/footer.html
new file mode 100644
index 000000000..bdd42e2e4
--- /dev/null
+++ b/templates/web/seesomething/admin/footer.html
@@ -0,0 +1,7 @@
+ </div><!-- .content role=main -->
+ </div><!-- .container -->
+ </div><!-- .table-cell -->
+<!-- [% INCLUDE 'debug_footer.html' %] -->
+ </div> <!-- .wrapper -->
+</body>
+</html>
diff --git a/templates/web/seesomething/admin/header.html b/templates/web/seesomething/admin/header.html
new file mode 100644
index 000000000..40bea25bf
--- /dev/null
+++ b/templates/web/seesomething/admin/header.html
@@ -0,0 +1,2 @@
+[% INCLUDE 'header.html' admin = 1, bodyclass = 'admin fullwidthpage' %]
+ <h1>[% title %]</h1>
diff --git a/templates/web/seesomething/admin/stats.html b/templates/web/seesomething/admin/stats.html
new file mode 100644
index 000000000..713c3fb6d
--- /dev/null
+++ b/templates/web/seesomething/admin/stats.html
@@ -0,0 +1,63 @@
+[% INCLUDE 'admin/header.html' title=loc('Reports') %]
+[% PROCESS 'admin/report_blocks.html' %]
+
+[% BLOCK options %]
+ [% FOR option IN option_list %]
+ <option value="[% option %]"[% ' selected' IF selected == option %]>[% option %]</opytion>
+ [% END %]
+[% END %]
+
+<form method="post" action="[% c.uri_for('stats') %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8" id="filter-form">
+ <label for="form_category">Transport Type: </label>
+ <select name="category" id="form_category">
+ <option value="">Select</option>
+ [% PROCESS options, option_list = [ 'Bus', 'Metro', 'Train' ], selected = category %]
+ </select>
+
+ <label for="form_subcategory">Incident Type: </label>
+ <select name="subcategory" id="form_subcategory">
+ <option value="">Select</option>
+ [% PROCESS options, option_list = ['Smoking', 'Drugs', 'Anti-social Behaviour', 'Loud Music', 'Damage', 'Feet on Seats', 'Other'], selected = subcategory %]
+ </select>
+
+ <label for="form_service">Device: </label>
+ <select name="service" id="form_service">
+ <option value="">Select</option>
+ [% PROCESS options, option_list = [ 'Android', 'iPhone' ], selected = service %]
+ </select>
+
+ <input type="submit" name="getcounts" size="30" id="getcounts" value="Look Up" />
+</form>
+
+[% IF pager.total_entries == 0 %]
+<p align="center">
+No Results found
+</p>
+[% ELSE %]
+<table class="admin-report">
+ <thead>
+ <tr>
+ <th>Device</th>
+ <th>Transport Category</th>
+ <th>Incident Category</th>
+ <th>Area</th>
+ <th>Submitted</th>
+ </tr>
+ </thead>
+ <tbody>
+ [%- WHILE (report = reports.next) %]
+ <tr>
+ <td>[% report.service || 'Other' %]</td>
+ <td>[% report.category %]</td>
+ <td class="nowrap">[% report.subcategory %]</td>
+ <td class="nowrap">[% council_details.${report.council}.name %]</td>
+ <td class="nowrap">[% PROCESS format_time time=report.confirmed %]</td>
+ </tr>
+ [%- END %]
+ </tbody>
+</table>
+[% END %]
+
+[% INCLUDE 'pagination.html', param = 'p' %]
+
+[% INCLUDE 'admin/footer.html' %]