|
11 | 11 | v-bind:language="language" |
12 | 12 | v-bind:progressbar="false" |
13 | 13 | > |
14 | | - <!-- Custom content for the Complete/Submit screen slots in the FlowForm component --> |
| 14 | + <!-- Custom content for the Complete/Submit screen slots in the FlowForm component --> |
15 | 15 | <!-- We've overriden the default "complete" slot content --> |
16 | | - <template v-slot:complete> |
| 16 | + <template v-slot:complete> |
17 | 17 | <div class="section-wrap"> |
18 | 18 | <p> |
19 | 19 | <span class="fh2">Thank you for visiting our technical support page. 🙏</span> |
|
27 | 27 | <!-- We've overriden the default "completeButton" slot content --> |
28 | 28 | <template v-slot:completeButton> |
29 | 29 | <div class="f-submit" v-if="!submitted"> |
30 | | - <button |
31 | | - class="o-btn-action" |
32 | | - ref="button" |
33 | | - type="submit" |
34 | | - href="#" |
35 | | - v-on:click.prevent="onSendData()" |
36 | | - aria-label="Press to submit" |
37 | | - > |
38 | | - <span>Exit</span> |
39 | | - </button> |
40 | | - <a class="f-enter-desc" |
41 | | - href="#" |
42 | | - v-on:click.prevent="onSendData()" |
43 | | - v-html="language.formatString(language.pressEnter)"> |
44 | | - </a> |
| 30 | + <!-- Leave empty to hide default submit button --> |
45 | 31 | </div> |
46 | | - |
47 | | - <!-- <p class="text-success" v-if="submitted">Your request has been submitted successfully.</p> --> |
48 | 32 | </template> |
49 | 33 | </flow-form> |
50 | 34 | </div> |
|
75 | 59 | language: new LanguageModel(), |
76 | 60 | // Create question list with QuestionModel instances |
77 | 61 | questions: [ |
78 | | - new QuestionModel({ |
| 62 | + new QuestionModel({ |
79 | 63 | id: 'multiple_choice', |
80 | 64 | tagline: "Welcome to our support page!", |
81 | 65 | title: 'Hi 👋, how can we help you today?', |
|
91 | 75 | new ChoiceOption({ |
92 | 76 | label: 'I wish to check my ticket status', |
93 | 77 | value: 'enter_ticket' |
94 | | - }), |
| 78 | + }), |
95 | 79 | ], |
96 | 80 | jump: { |
97 | 81 | technical_issue: 'technical_issue', |
|
110 | 94 | descriptionLink: [ |
111 | 95 | new LinkOption({ |
112 | 96 | url: '#', |
113 | | - text: 'frequently asked questions', |
| 97 | + text: 'FAQs', |
114 | 98 | target: '_self' |
115 | 99 | }) |
116 | 100 | ], |
117 | 101 | options: [ |
118 | | - new ChoiceOption({ |
| 102 | + new ChoiceOption({ |
119 | 103 | label: 'Yes, but still couldn’t find the answer.', |
120 | 104 | value: 'faq_no' |
121 | | - }), |
| 105 | + }), |
122 | 106 | ], |
123 | 107 | jump: { |
124 | 108 | faq_no: 'faq_no' |
125 | 109 | } |
126 | 110 | }), |
127 | | - new QuestionModel({ |
| 111 | + new QuestionModel({ |
128 | 112 | id: 'enter_ticket', |
129 | 113 | tagline: 'Support page > Ticket status', |
130 | 114 | title: 'Please enter your 6-digit code', |
|
135 | 119 | mask: '#-#-#-#-#-#', |
136 | 120 | placeholder: '#-#-#-#-#-#' |
137 | 121 | }), |
138 | | - new QuestionModel({ |
| 122 | + new QuestionModel({ |
139 | 123 | id: 'ticket_status', |
140 | 124 | tagline: 'Support page > Ticket status', |
141 | 125 | title: 'Good news - the wheels are turning, your ticket is being processed!😉', |
142 | | - content: 'Press continue to exit the support form', |
143 | 126 | type: QuestionType.SectionBreak, |
144 | 127 | jump: { |
145 | 128 | _other: '_submit' |
|
148 | 131 | new QuestionModel({ |
149 | 132 | id: 'faq_no', |
150 | 133 | tagline: 'Submit issue > Step 2/3', |
151 | | - title: 'Enter your question to receive a ticket', |
| 134 | + title: 'Please describe your problem', |
152 | 135 | type: QuestionType.LongText, |
153 | 136 | required: true, |
154 | 137 | placeholder: 'Start typing here...', |
155 | 138 | }), |
156 | | - new QuestionModel({ |
| 139 | + new QuestionModel({ |
157 | 140 | id: 'ticket', |
158 | 141 | tagline: 'Submit issue > Step 3/3', |
159 | 142 | title: 'Your ticket number is: ' + this.getTicket(), |
|
162 | 145 | jump: { |
163 | 146 | _other: '_submit' |
164 | 147 | } |
165 | | - }), |
| 148 | + }) |
166 | 149 | ] |
167 | 150 | } |
168 | 151 | }, |
|
247 | 230 | </script> |
248 | 231 |
|
249 | 232 | <style lang="css"> |
250 | | - @import '../../src/assets/css/themes/theme-minimal.css'; |
| 233 | + @import '../../src/assets/css/themes/theme-green.css'; |
251 | 234 | /* If using the npm package, use the following lines instead of the one above */ |
252 | 235 | /* @import '~@ditdot-dev/vue-flow-form/dist/vue-flow-form.css'; */ |
253 | 236 | /* @import '~@ditdot-dev/vue-flow-form/dist/vue-flow-form.theme-green.css'; */ |
|
0 commit comments