main.view--onboarding
article(
style='display: flex; flex-direction: column; align-items: center'
<<<<<<< HEAD
v-if='currentStep !== survey.steps.length'
)
.answers(v-for='(value, key) in answered')
span(v-if='key == "name" && value && currentStep == 2') Hi {{ value }}!
br
.step(v-for='(step, i) in survey.steps')
component(
:is='step.component'
:question='step'
:answered='answered'
:responses='responses'
:survey='survey'
:currentStep='currentStep'
:surveyStepsCount='survey.steps.length'
@handle-submit='onSubmit'
@update-answers='updateAnswers'
v-if='step && currentStep == i'
)
.invalidResponseMessage(
style='text-align: center'
v-if='invalidResponse'
)
p {{ survey.steps[currentStep].invalidInputPrompt }}
footer
p(v-if='currentStep != 0') You have completed: {{ currentStep }} / {{ survey.steps.length }} survey steps
article(v-else)
SurveyCompleteView(:answers='answered' :surveySteps='survey.steps')
=======
v-if='survey'
)
.step(v-for='(step, i) in survey.steps')
component(
:aspect-questions='step.component == "Aspects" ? survey.aspectQuestions : null'
:is='step.component'
:question='step'
@handle-submit='onSubmit'
@update-answers='updateAnswers'
v-if='step && currentStep == i'
)
>>>>>>> b0c2120 (another pre-release (#53))