main.view--onboarding
article(
style='display: flex; flex-direction: column; align-items: center'
v-if='incomplete'
)
.answers(v-for='(value, key) in answered')
span(v-if='key == "name" && value && currentStep == 2') Hi {{ value }}!
span(v-if='key == "email" && value && currentStep == 3') Thanks for the contact info, {{ answered.name }}!
h3(v-if="currentStep == 1") Welcome to Siimee Onboarding! Let's get started!
br
.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'
)
footer
p(v-if='currentStep != 0') You have completed: {{ currentStep - 1 }} / {{ survey.steps.length -2 }} survey steps
article(v-else)
SurveyCompleteView(:answers='answered' :surveySteps='survey.steps')