We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ceb491 commit ffe1f19Copy full SHA for ffe1f19
lung_cancer_screening/questions/jinja2/height.jinja
@@ -3,6 +3,11 @@
3
{% from 'nhsuk/components/back-link/macro.jinja' import backLink %}
4
{% from 'nhsuk/components/fieldset/macro.jinja' import fieldset %}
5
6
+{% set HEIGHT_UNIT = {
7
+ 'imperial': 'feet and inches',
8
+ 'metric': 'centimetres'
9
+} %}
10
+
11
{% block beforeContent %}
12
<nav>
13
{{
@@ -39,7 +44,7 @@
39
44
{% endif %}
40
45
41
46
42
- <p><a href="?unit={{ switch_to_unit }}">Switch to {{ switch_to_unit }}</a></p>
47
+ <p><a href="?unit={{ switch_to_unit }}">Switch to {{ HEIGHT_UNIT[switch_to_unit] }}</a></p>
43
48
49
{% endcall %}
50
0 commit comments