From 021e7512b2b7589f74b0ce5d1889ee1369738fbe Mon Sep 17 00:00:00 2001 From: Andrew Croce Date: Tue, 14 Aug 2018 16:35:09 -0400 Subject: [PATCH] conditionally display certain fields, just like the form --- templates/requests/screen-4.html | 69 ++++++++++++++++++-------------- 1 file changed, 38 insertions(+), 31 deletions(-) diff --git a/templates/requests/screen-4.html b/templates/requests/screen-4.html index 9e433ffd..84c0e91e 100644 --- a/templates/requests/screen-4.html +++ b/templates/requests/screen-4.html @@ -59,43 +59,50 @@
{{ data['details_of_use']['jedi_migration'] or RequiredLabel() }}
-
-
Rationalization of Software Systems
-
{{ data['details_of_use']['rationalization_software_systems'] or RequiredLabel() }}
-
- -
-
Technical Support Team
-
{{ data['details_of_use']['technical_support_team'] or RequiredLabel() }}
-
- - - {% if data['details_of_use']['technical_support_team'] == 'yes' %} + {% if data['details_of_use']['jedi_migration'] == 'yes' %}
-
Organization Providing Assistance
-
{{ data['details_of_use']['organization_providing_assistance'] or RequiredLabel() }}
+
Rationalization of Software Systems
+
{{ data['details_of_use']['rationalization_software_systems'] or RequiredLabel() }}
- {% endif %} -
-
Engineering Assessment
-
{{ data['details_of_use']['engineering_assessment'] or RequiredLabel() }}
-
+
+
Technical Support Team
+
{{ data['details_of_use']['technical_support_team'] or RequiredLabel() }}
+
-
-
Data Transfers
-
{{ data['details_of_use']['data_transfers'] or RequiredLabel() }}
-
-
-
Expected Completion Date
-
{{ data['details_of_use']['expected_completion_date'] or RequiredLabel() }}
-
+ {% if data['details_of_use']['technical_support_team'] == 'yes' %} -
-
Cloud Native
-
{{ data['details_of_use']['cloud_native'] or RequiredLabel() }}
-
+
+
Organization Providing Assistance
+
{{ data['details_of_use']['organization_providing_assistance'] or RequiredLabel() }}
+
+ + {% endif %} + +
+
Engineering Assessment
+
{{ data['details_of_use']['engineering_assessment'] or RequiredLabel() }}
+
+ +
+
Data Transfers
+
{{ data['details_of_use']['data_transfers'] or RequiredLabel() }}
+
+ +
+
Expected Completion Date
+
{{ data['details_of_use']['expected_completion_date'] or RequiredLabel() }}
+
+ + {% else %} + +
+
Cloud Native
+
{{ data['details_of_use']['cloud_native'] or RequiredLabel() }}
+
+ + {% endif %}
Estimated Monthly Spend