aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-05-02 18:02:27 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-05-08 15:32:12 +0100
commit3833f1feb9d4760bb0e2d8ba83c06c8455516d88 (patch)
treeb925586185f0d8fb6e00fee14f6c2cfe8a3eda9d /templates
parent505953fc71a6142826e1e5743a0a3dc18e306748 (diff)
Add help text metadata facility to categories.
This is shown when reporting and in map list filters.
Diffstat (limited to 'templates')
-rw-r--r--templates/web/base/report/new/category.html4
-rw-r--r--templates/web/base/reports/_list-filters.html1
2 files changed, 4 insertions, 1 deletions
diff --git a/templates/web/base/report/new/category.html b/templates/web/base/report/new/category.html
index 96b14e75b..83af42c6d 100644
--- a/templates/web/base/report/new/category.html
+++ b/templates/web/base/report/new/category.html
@@ -2,7 +2,9 @@
[%~ BLOCK category_option ~%]
[% cat_op_lc = cat_op.category | lower =%]
<option value='[% cat_op.category | html %]'[% ' selected' IF report.category == cat_op.category || category_lc == cat_op_lc || (category_options.size == 2 AND loop.last) ~%]
- >[% IF loop.first %][% cat_op.category_display %][% ELSE %][% cat_op.category_display | html %][% END %]</option>
+ >[% IF loop.first %][% cat_op.category_display %][% ELSE %][% cat_op.category_display | html %][% END %]
+ [%~ IF cat_op.get_extra_metadata('help_text') %] ([% cat_op.get_extra_metadata('help_text') %])[% END ~%]
+ </option>
[%~ END ~%]
[% IF category;
diff --git a/templates/web/base/reports/_list-filters.html b/templates/web/base/reports/_list-filters.html
index ba6becb80..5260aa773 100644
--- a/templates/web/base/reports/_list-filters.html
+++ b/templates/web/base/reports/_list-filters.html
@@ -40,6 +40,7 @@
[% FOR cat IN filter_categories %]
<option value="[% cat.category | html %]"[% ' selected' IF filter_category.${cat.category} %]>
[% cat.category_display | html %]
+ [%~ IF cat.get_extra_metadata('help_text') %] ([% cat.get_extra_metadata('help_text') %])[% END ~%]
</option>
[% END %]
</select>