|
|
@@ -4,9 +4,17 @@ main.view--surveycomplete
|
|
4
|
4
|
h2 Thanks for Completing Our Survey!!
|
|
5
|
5
|
h1 Please review your answers and let us know if you need to change anything.
|
|
6
|
6
|
br
|
|
|
7
|
+ h1 Your Profile Info:
|
|
7
|
8
|
div(v-for='(answer, key) in answers')
|
|
8
|
|
- span(v-if='answer') Your {{ key }}: {{ answer }}
|
|
|
9
|
+ span(v-if='answer && key != "aspects"') Your {{ key }}: {{ answer }}
|
|
9
|
10
|
br
|
|
|
11
|
+ div(v-if="answers.aspects")
|
|
|
12
|
+ h1 Your Survey Answers:
|
|
|
13
|
+ div(v-for='(aspect, index) in answers.aspects')
|
|
|
14
|
+ div(v-if='aspect')
|
|
|
15
|
+ p {{ surveyObjects[index].response_key_prompt }}
|
|
|
16
|
+ p You Answered: {{aspect}}
|
|
|
17
|
+ br
|
|
10
|
18
|
button(@click="changeAnswers") Change Answers
|
|
11
|
19
|
br
|
|
12
|
20
|
button(@click="finalSubmit") Submit Answers
|
|
|
@@ -17,8 +25,18 @@ export default {
|
|
17
|
25
|
props: {
|
|
18
|
26
|
answers: {
|
|
19
|
27
|
type: Object,
|
|
20
|
|
- default: () => ({})
|
|
|
28
|
+ default: () => ({}),
|
|
21
|
29
|
},
|
|
22
|
|
- }
|
|
|
30
|
+ surveySteps: {
|
|
|
31
|
+ type: Array,
|
|
|
32
|
+ default: () => [],
|
|
|
33
|
+ },
|
|
|
34
|
+ },
|
|
|
35
|
+ data: () => ({
|
|
|
36
|
+ surveyObjects: [],
|
|
|
37
|
+ }),
|
|
|
38
|
+ created() {
|
|
|
39
|
+ this.surveyObjects = this.surveySteps.slice(-6)
|
|
|
40
|
+ },
|
|
23
|
41
|
}
|
|
24
|
42
|
</script>
|