Don't display cloud migration questions until an answer is selected

This commit is contained in:
Patrick Smith 2018-08-10 14:47:52 -04:00
parent 653c22e0a1
commit f53e656475
2 changed files with 16 additions and 9 deletions

View File

@ -37,6 +37,9 @@ export default {
const monthlySpend = this.estimated_monthly_spend || 0 const monthlySpend = this.estimated_monthly_spend || 0
return monthlySpend * 12 return monthlySpend * 12
}, },
jediMigrationOptionSelected: function () {
return this.jedi_migration !== ''
},
isJediMigration: function () { isJediMigration: function () {
return this.jedi_migration === 'yes' return this.jedi_migration === 'yes'
} }

View File

@ -17,7 +17,7 @@
) }} ) }}
{% endif %} {% endif %}
<details-of-use inline-template v-bind:initial-data='{{ f.data }}'> <details-of-use inline-template v-bind:initial-data='{{ f.data|tojson }}'>
<div> <div>
<p>Wed 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.</p> <p>Wed 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.</p>
@ -30,14 +30,18 @@
<h2>Cloud Readiness</h2> <h2>Cloud Readiness</h2>
{{ TextInput(f.num_software_systems, validation='integer') }} {{ TextInput(f.num_software_systems, validation='integer') }}
{{ OptionsInput(f.jedi_migration) }} {{ OptionsInput(f.jedi_migration) }}
<template v-if='isJediMigration' v-cloak> <template v-if="jediMigrationOptionSelected">
{{ OptionsInput(f.rationalization_software_systems) }} <template v-if='isJediMigration' v-cloak>
{{ OptionsInput(f.technical_support_team) }} {{ OptionsInput(f.rationalization_software_systems) }}
{{ OptionsInput(f.organization_providing_assistance) }} {{ OptionsInput(f.technical_support_team) }}
{{ OptionsInput(f.engineering_assessment) }} {{ OptionsInput(f.organization_providing_assistance) }}
{{ OptionsInput(f.data_transfers) }} {{ OptionsInput(f.engineering_assessment) }}
{{ OptionsInput(f.expected_completion_date) }} {{ OptionsInput(f.data_transfers) }}
{{ OptionsInput(f.cloud_native) }} {{ OptionsInput(f.expected_completion_date) }}
</template>
<template v-else-if='!isJediMigration' v-cloak>
{{ OptionsInput(f.cloud_native) }}
</template>
</template> </template>
<h2>Financial Usage</h2> <h2>Financial Usage</h2>