|
|
@@ -1,8 +1,19 @@
|
|
1
|
1
|
<template lang="pug">
|
|
2
|
2
|
.form-input
|
|
3
|
|
- h3 {{ question.response_key_category }}
|
|
4
|
|
- p {{ question.response_key_prompt }}
|
|
5
|
|
- input(placeholder='i am a little teapot' type='text' v-model='input')
|
|
|
3
|
+ h3 Welcome to Siimee Onboarding! Let's get started!
|
|
|
4
|
+ span(v-if='question.response_key_prompt == "name"') Hi there, my {{ question.response_key_prompt }} is:
|
|
|
5
|
+ input(v-if='question.response_key_prompt == "name"' placeholder='Jon Doe' type='text' v-model='input')
|
|
|
6
|
+ span(v-if='question.response_key_prompt == "email"') My {{ question.response_key_prompt }} is:
|
|
|
7
|
+ input(v-if='question.response_key_prompt == "email"' placeholder='Jon_Doe@myemail.com' type='text' v-model='input')
|
|
|
8
|
+ span(v-if='question.response_key_prompt == "password"') Please input a {{ question.response_key_prompt }}:
|
|
|
9
|
+ input(v-if='question.response_key_prompt == "password"' placeholder='mysupersecretpassword' type='text' v-model='input')
|
|
|
10
|
+ span(v-if='question.response_key_prompt == "zipcode"') What zipcode would you like to see results from?{{ question.response_key_prompt }}:
|
|
|
11
|
+ input(v-if='question.response_key_prompt == "zipcode"' placeholder='99999' type='text' v-model='input')
|
|
|
12
|
+ span(v-if='question.response_key_prompt == "blurb"') Please provide us with a short {{ question.response_key_prompt }} about yourself?:
|
|
|
13
|
+ textarea(v-if='question.response_key_prompt == "blurb"' placeholder='I was born on a distant planet named Krypton, but was raised in a small town called SmallVille...' type='text' v-model='input' rows='4' cols='50')
|
|
|
14
|
+ p(v-if='question.response_key_prompt == "image"')
|
|
|
15
|
+ p Please Upload a Profile Image:
|
|
|
16
|
+ button(@click='submitImage') Upload Image
|
|
6
|
17
|
w-button.ma1.grow(@click='handleSubmit') NEXT
|
|
7
|
18
|
</template>
|
|
8
|
19
|
<script>
|
|
|
@@ -20,7 +31,7 @@ export default {
|
|
20
|
31
|
}),
|
|
21
|
32
|
methods: {
|
|
22
|
33
|
handleSubmit() {
|
|
23
|
|
- if(this.question.response_key_prompt === 'password') {
|
|
|
34
|
+ if (this.question.response_key_prompt === 'password') {
|
|
24
|
35
|
this.$emit('update-answers') // no password collection
|
|
25
|
36
|
return
|
|
26
|
37
|
}
|
|
|
@@ -31,6 +42,25 @@ export default {
|
|
31
|
42
|
}
|
|
32
|
43
|
this.$emit('update-answers', payload)
|
|
33
|
44
|
},
|
|
|
45
|
+ submitImage() {
|
|
|
46
|
+ let payload = {
|
|
|
47
|
+ question: this.question,
|
|
|
48
|
+ answer: 'placeholder for image'
|
|
|
49
|
+ }
|
|
|
50
|
+ this.$emit('update-answers', payload)
|
|
|
51
|
+ }
|
|
34
|
52
|
},
|
|
35
|
53
|
}
|
|
36
|
54
|
</script>
|
|
|
55
|
+
|
|
|
56
|
+<style>
|
|
|
57
|
+h3 {
|
|
|
58
|
+ text-align: center;
|
|
|
59
|
+}
|
|
|
60
|
+input {
|
|
|
61
|
+ border: 0;
|
|
|
62
|
+ outline: 0;
|
|
|
63
|
+ background: transparent;
|
|
|
64
|
+ border-bottom: 1px solid black;
|
|
|
65
|
+}
|
|
|
66
|
+</style>
|