From f53e656475d4a556ef7f015bcfb0ca958422550a Mon Sep 17 00:00:00 2001 From: Patrick Smith Date: Fri, 10 Aug 2018 14:47:52 -0400 Subject: [PATCH] Don't display cloud migration questions until an answer is selected --- js/components/forms/details_of_use.js | 3 +++ templates/requests/screen-1.html | 22 +++++++++++++--------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/js/components/forms/details_of_use.js b/js/components/forms/details_of_use.js index 94b0f5f0..edc9cacf 100644 --- a/js/components/forms/details_of_use.js +++ b/js/components/forms/details_of_use.js @@ -37,6 +37,9 @@ export default { const monthlySpend = this.estimated_monthly_spend || 0 return monthlySpend * 12 }, + jediMigrationOptionSelected: function () { + return this.jedi_migration !== '' + }, isJediMigration: function () { return this.jedi_migration === 'yes' } diff --git a/templates/requests/screen-1.html b/templates/requests/screen-1.html index d0acf98d..23f078ab 100644 --- a/templates/requests/screen-1.html +++ b/templates/requests/screen-1.html @@ -17,7 +17,7 @@ ) }} {% endif %} - +

We’d like to know a little about how you plan to use JEDI Cloud services to process your request. Please answer the following questions to the best of your ability. Note that the CCPO does not directly help with migrating systems to JEDI Cloud. These questions are for learning about your cloud readiness and financial usage of the JEDI Cloud; your estimates will not be used for any department level reporting.

@@ -30,14 +30,18 @@

Cloud Readiness

{{ TextInput(f.num_software_systems, validation='integer') }} {{ OptionsInput(f.jedi_migration) }} -