Skip to content

Commit ffe1f19

Browse files
jamiefalcusThemitchell
authored andcommitted
Change imperial/metric to units
1 parent 3ceb491 commit ffe1f19

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lung_cancer_screening/questions/jinja2/height.jinja

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
{% from 'nhsuk/components/back-link/macro.jinja' import backLink %}
44
{% from 'nhsuk/components/fieldset/macro.jinja' import fieldset %}
55

6+
{% set HEIGHT_UNIT = {
7+
'imperial': 'feet and inches',
8+
'metric': 'centimetres'
9+
} %}
10+
611
{% block beforeContent %}
712
<nav>
813
{{
@@ -39,7 +44,7 @@
3944
{% endif %}
4045

4146

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>
4348

4449
{% endcall %}
4550

0 commit comments

Comments
 (0)