From c9bc36bef37a9b06b5db8cc85d2f8100c6f71228 Mon Sep 17 00:00:00 2001 From: Andrew Croce Date: Mon, 20 Aug 2018 13:38:04 -0400 Subject: [PATCH] use getOptionLabel filter for DOD component fields --- templates/requests/screen-4.html | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/templates/requests/screen-4.html b/templates/requests/screen-4.html index 06b5cd7b..b901c47c 100644 --- a/templates/requests/screen-4.html +++ b/templates/requests/screen-4.html @@ -8,16 +8,6 @@ {% from "components/text_input.html" import TextInput %} {% from "components/icon.html" import Icon %} - -{% set dod_component_choices = { - "null": "Select an option", - "us_air_force": "US Air Force", - "us_army": "US Army", - "us_navy": "US Navy", - "us_marine_corps": "US Marine Corps", - "joint_chiefs_of_staff": "Joint Chiefs of Staff" -} %} - {% set organization_providing_assistance_choices = { "in_house_staff": "In-house staff", "contractor": "Contractor", @@ -59,7 +49,7 @@
DoD Component
{% if data['details_of_use']['dod_component'] %} - {{ dod_component_choices[data['details_of_use']['dod_component']] }} + {{ data['details_of_use']['dod_component'] | getOptionLabel(service_branches) }} {% else %} {{ RequiredLabel() }} {% endif %} @@ -195,7 +185,7 @@
{% endif %} - +
Total Spend
@@ -251,7 +241,13 @@
Service Branch or Agency
-
{{ data['information_about_you']['service_branch'] or RequiredLabel() }}
+
+ {% if data['information_about_you']['service_branch'] %} + {{ data['information_about_you']['service_branch'] | getOptionLabel(service_branches) }} + {% else %} + {{ RequiredLabel() }} + {% endif %} +