WIP add first and last name textboxes.
This commit is contained in:
parent
eb70fda412
commit
df97db7100
1 changed files with 45 additions and 4 deletions
|
|
@ -3,12 +3,20 @@
|
||||||
<div class="page-container-grouped-styles">
|
<div class="page-container-grouped-styles">
|
||||||
<funnelHeader cmsWidgetName="FunnelHeaderWidget" />
|
<funnelHeader cmsWidgetName="FunnelHeaderWidget" />
|
||||||
<funnelSubHeader cmsWidgetName="FunnelSubHeaderWidget" class="my-5" />
|
<funnelSubHeader cmsWidgetName="FunnelSubHeaderWidget" class="my-5" />
|
||||||
<!-- <textboxQuestion
|
<textboxQuestion
|
||||||
cmsWidgetName="FirstNameQuestionWidget"
|
class="mb-4"
|
||||||
|
cmsWidgetName="FirstNameWidget"
|
||||||
v-model="customerModel.firstName"
|
v-model="customerModel.firstName"
|
||||||
ref="firstName"
|
ref="firstName"
|
||||||
inputId="08497a2efd9a4a73a70360ab47b4838d"
|
inputId="08497a2efd9a4a73a70360ab47b4838d"
|
||||||
validationRules="first-name-required" /> -->
|
validationRules="first-name-required" />
|
||||||
|
<textboxQuestion
|
||||||
|
class="mb-4"
|
||||||
|
cmsWidgetName="LastNameWidget"
|
||||||
|
v-model="customerModel.lastName"
|
||||||
|
ref="lastName"
|
||||||
|
inputId="0030e56a57e74a4ab92de7fb8e97fec5"
|
||||||
|
validationRules="last-name-required" />
|
||||||
<textboxQuestion
|
<textboxQuestion
|
||||||
class="mb-4"
|
class="mb-4"
|
||||||
cmsWidgetName="emailQuestionWidget"
|
cmsWidgetName="emailQuestionWidget"
|
||||||
|
|
@ -22,10 +30,13 @@
|
||||||
isRequired
|
isRequired
|
||||||
validationRules="phone-number-required" />
|
validationRules="phone-number-required" />
|
||||||
<textareaQuestion
|
<textareaQuestion
|
||||||
class="mb-5"
|
class="mb-4"
|
||||||
v-model="techNotes"
|
v-model="techNotes"
|
||||||
cmsWidgetName="TextAreaContentWidget"
|
cmsWidgetName="TextAreaContentWidget"
|
||||||
maxLength="250" />
|
maxLength="250" />
|
||||||
|
<textBlock
|
||||||
|
cmsWidgetName="DisclaimerCopyWidget"
|
||||||
|
typeStyle="caption" />
|
||||||
<funnel-footer
|
<funnel-footer
|
||||||
cmsWidgetName="FunnelFooterWidget"
|
cmsWidgetName="FunnelFooterWidget"
|
||||||
ref="funnelFooter"
|
ref="funnelFooter"
|
||||||
|
|
@ -43,6 +54,7 @@ import funnelSubHeader from "@/fmg-components/funnel-sub-header/funnel-sub-heade
|
||||||
import textareaQuestion from "@/digital-components/textarea-question/textarea-question";
|
import textareaQuestion from "@/digital-components/textarea-question/textarea-question";
|
||||||
import phoneNumberQuestion from "@/digital-components/phonenumber-question/phonenumber-question";
|
import phoneNumberQuestion from "@/digital-components/phonenumber-question/phonenumber-question";
|
||||||
import textboxQuestion from "@/digital-components/textbox-question/textbox-question";
|
import textboxQuestion from "@/digital-components/textbox-question/textbox-question";
|
||||||
|
import textBlock from "@/digital-components/text-block/text-block";
|
||||||
//Supporting files
|
//Supporting files
|
||||||
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
|
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
|
||||||
import { settleAllPromises } from "@/helpers/layout-helper";
|
import { settleAllPromises } from "@/helpers/layout-helper";
|
||||||
|
|
@ -106,10 +118,38 @@ export default {
|
||||||
techNotes: "",
|
techNotes: "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
emits: ["update:modelValue"], // The component emits an event
|
||||||
|
props: {
|
||||||
|
modelValue: {
|
||||||
|
type: Object,
|
||||||
|
default: () => ({
|
||||||
|
customerQuestions: {
|
||||||
|
addressQuestions: {
|
||||||
|
streetAddress: "",
|
||||||
|
city: "",
|
||||||
|
state: "",
|
||||||
|
zipCode: "",
|
||||||
|
},
|
||||||
|
firstName: "",
|
||||||
|
lastName: "",
|
||||||
|
emailAddress: "",
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
validationRules: String,
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
textAreaLabelCopy() {
|
textAreaLabelCopy() {
|
||||||
return this.getCmsContent("TextAreaContentWidget", "QuestionText");
|
return this.getCmsContent("TextAreaContentWidget", "QuestionText");
|
||||||
},
|
},
|
||||||
|
customerModel: {
|
||||||
|
get: function () {
|
||||||
|
return this.modelValue;
|
||||||
|
},
|
||||||
|
set: function (newValue) {
|
||||||
|
this.$emit("update:modelValue", newValue);
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
funnelHeader,
|
funnelHeader,
|
||||||
|
|
@ -119,6 +159,7 @@ export default {
|
||||||
textboxQuestion,
|
textboxQuestion,
|
||||||
funnelFooter,
|
funnelFooter,
|
||||||
Form,
|
Form,
|
||||||
|
textBlock,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue