aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/web/fixmystreet/my/my.html10
-rw-r--r--templates/web/oxfordshire/my/_problem-list.html9
-rw-r--r--templates/web/oxfordshire/reports/_list-filters.html23
3 files changed, 21 insertions, 21 deletions
diff --git a/templates/web/fixmystreet/my/my.html b/templates/web/fixmystreet/my/my.html
index b614963fe..16779e503 100644
--- a/templates/web/fixmystreet/my/my.html
+++ b/templates/web/fixmystreet/my/my.html
@@ -58,13 +58,3 @@
</div>
[% INCLUDE 'footer.html' %]
-
-[% BLOCK problem %]
- [% "<ul class='issue-list-a full-width'>" IF loop.first %]
- [% IF c.cobrand.moniker == 'oxfordshire' %]
- [% INCLUDE 'reports/_list-entry.html', problem = p, no_fixed =1 %]
- [% ELSE %]
- [% INCLUDE 'report/_item.html', problem = p, no_fixed =1 %]
- [% END %]
- [% "</ul>" IF loop.last %]
-[% END %]
diff --git a/templates/web/oxfordshire/my/_problem-list.html b/templates/web/oxfordshire/my/_problem-list.html
new file mode 100644
index 000000000..1365dccd3
--- /dev/null
+++ b/templates/web/oxfordshire/my/_problem-list.html
@@ -0,0 +1,9 @@
+[% FOREACH p = problems.all %]
+ [% INCLUDE problem %]
+[% END %]
+
+[% BLOCK problem %]
+ [% "<ul class='issue-list-a full-width'>" IF loop.first %]
+ [% INCLUDE 'reports/_list-entry.html', problem = p, no_fixed =1 %]
+ [% "</ul>" IF loop.last %]
+[% END %]
diff --git a/templates/web/oxfordshire/reports/_list-filters.html b/templates/web/oxfordshire/reports/_list-filters.html
index 029b14144..5d610261b 100644
--- a/templates/web/oxfordshire/reports/_list-filters.html
+++ b/templates/web/oxfordshire/reports/_list-filters.html
@@ -6,23 +6,24 @@
<p class="report-list-filters">
<label>
Show
- <select name="status">
- <option value="">all reports</option>
- <option value="open">unfixed reports</option>
- <option value="fixed">fixed reports</option>
+ <select name="status" id="statuses">
+ <option value="all"[% ' selected' IF filter_status == 'all' %]>all reports</option>
+ <option value="open"[% ' selected' IF filter_status == 'open' %]>unfixed reports</option>
+ <option value="fixed"[% ' selected' IF filter_status == 'fixed' %]>fixed reports</option>
</select>
</label>
<label>
about
- <select name="category">
- <option value="">anything</option>
- <option value="">bridges</option>
- <option value="">carriageway defect</option>
- <option value="">debris/spillage</option>
- <option value="">…</option>
+ <select name="filter_category" id="filter_categories">
+ <option value="">Everything</option>
+ [% FOR category IN filter_categories %]
+ <option value="[% category | html %]"[% ' selected' IF filter_category == category %]>
+ [% category | html %]
+ </option>
+ [% END %]
</select>
</label>
- <input type=submit value="go" />
+ <input type=submit value="Go" />
</p>
[% IF use_section_wrapper %]