aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorpezholio <pezholio@gmail.com>2017-05-24 11:27:19 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-06-20 17:58:59 +0100
commitbdd1e1627a1be6d9253ecc4e6904e68948227914 (patch)
tree8acbe51dd2419778eeacd7c8512b1b515da5a2a3 /templates
parent6c4f3f78bfada011441411f308967298984e7ba5 (diff)
Populate defect types dropdown on category change
Diffstat (limited to 'templates')
-rw-r--r--templates/web/base/report/_inspect.html4
-rw-r--r--templates/web/oxfordshire/footer_extra_js.html3
2 files changed, 5 insertions, 2 deletions
diff --git a/templates/web/base/report/_inspect.html b/templates/web/base/report/_inspect.html
index a0c310ba4..79f48743a 100644
--- a/templates/web/base/report/_inspect.html
+++ b/templates/web/base/report/_inspect.html
@@ -46,11 +46,11 @@
[% cat_prefix = category | lower | replace('[^a-z]', '') %]
[% cat_prefix = "category_" _ cat_prefix _ "_" %]
[% IF category == problem.category %]
- <p data-category="[% category | html %]" data-priorities="[% priorities_by_category.$category %]">
+ <p data-category="[% category | html %]" data-priorities="[% priorities_by_category.$category %]" data-defect-types='[% category_defect_types.$category %]'>
[% INCLUDE 'report/new/category_extras_fields.html' %]
</p>
[% ELSE %]
- <p data-category="[% category | html %]" class="hidden" data-priorities="[% priorities_by_category.$category %]">
+ <p data-category="[% category | html %]" class="hidden" data-priorities="[% priorities_by_category.$category %]" data-defect-types='[% category_defect_types.$category %]'>
[% INCLUDE 'report/new/category_extras_fields.html' report_meta='' %]
</p>
[% END %]
diff --git a/templates/web/oxfordshire/footer_extra_js.html b/templates/web/oxfordshire/footer_extra_js.html
new file mode 100644
index 000000000..abef0d40f
--- /dev/null
+++ b/templates/web/oxfordshire/footer_extra_js.html
@@ -0,0 +1,3 @@
+[% scripts.push(
+ version('/cobrands/oxfordshire/js.js'),
+) %]