From 3833f1feb9d4760bb0e2d8ba83c06c8455516d88 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 2 May 2018 18:02:27 +0100 Subject: Add help text metadata facility to categories. This is shown when reporting and in map list filters. --- templates/web/base/report/new/category.html | 4 +++- templates/web/base/reports/_list-filters.html | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'templates') 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 =%] + >[% 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 ~%] + [%~ 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 %] [% END %] -- cgit v1.2.3