From 24a61b695f19785323cf8cc2a9b6b3017f8b93ba Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Fri, 16 Oct 2020 09:26:45 +0100 Subject: [PATCH] templates: explore: Add codelist support Fixes: https://github.com/open-contracting/cove-oc4ids/issues/47 --- .../templates/cove_oc4ids/explore.html | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/cove_oc4ids/templates/cove_oc4ids/explore.html b/cove_oc4ids/templates/cove_oc4ids/explore.html index 7d17974..01e9c5d 100644 --- a/cove_oc4ids/templates/cove_oc4ids/explore.html +++ b/cove_oc4ids/templates/cove_oc4ids/explore.html @@ -235,6 +235,31 @@

+ {% if additional_open_codelist_values %} +
+ +
+
+

+ {% trans 'Additional Codelist Values' %} +

+
+
+ {% trans 'Your data contains a number of fields that use an open codelist. You should use values from the codelist whenever possible, but if the codelist does not provide the values you need, you are permitted to add additional values. The values below do not appear in the codelist; you should check that you intended these as additional values. Where you see + or - this indicates that the codelist has been modified with these additions (+) or subtractions (-) by one or more extensions.' %} +
+ {% with additional_codelist_values=additional_open_codelist_values %} + {% include "additional_codelist_values.html" %} + {% endwith%} +
+ {% trans 'Make sure you list the definition of any additional codelist values you include within your publication policy, and if you believe they should be added as recommended values in the open codelist, please suggest this via the OC4IDS issue tracker.' %} +
+
+
+ {% endif %} + + {% if additional_checks %}