Merge pull request #706 from Safelite/feature/CSR-795
CSR-795 | Refactor modal etc.
This commit is contained in:
commit
e48685caf2
3 changed files with 28 additions and 14 deletions
|
|
@ -1,16 +1,16 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- Modal -->
|
<!-- Modal -->
|
||||||
<div class="modal fade quote-modal" id="quoteModal" tabindex="-1" aria-labelledby="quoteModalLabel" aria-hidden="true">
|
<div class="modal fade modal-component" :id="this.cmsWidgetName" tabindex="-1" aria-labelledby="ModalComponentLabel" aria-hidden="true">
|
||||||
<div class="modal-dialog modal-dialog-centered">
|
<div class="modal-dialog modal-dialog-centered">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-body px-4 py-5">
|
<div class="modal-body px-4 py-5">
|
||||||
<img :src="this.ModalImage" class="w-100 mb-4" alt="" />
|
<img :src="this.ModalImage" class="w-100 mb-4" alt="" />
|
||||||
<h5 class="mb-4">{{this.ModalHeadline}}</h5>
|
<h5 class="mb-4" v-html="this.ModalHeadline"></h5>
|
||||||
<p class="fw-bold mb-2">{{this.ModalSubheadertext}}</p>
|
<p class="fw-bold mb-2" v-html="this.ModalSubheaderText"></p>
|
||||||
<p class="mb-0" v-html="this.ModalBodyText"></p>
|
<p class="mb-0" v-html="this.ModalBodyText"></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button class="btn btn-secondary w-100" data-bs-dismiss="modal">Close</button>
|
<button class="btn btn-secondary w-100" data-bs-dismiss="modal" v-html="this.ModalCloseButtonText"></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -43,13 +43,16 @@ export default {
|
||||||
ModalImage(){
|
ModalImage(){
|
||||||
return this.getCmsContent(this.cmsWidgetName, "Image");
|
return this.getCmsContent(this.cmsWidgetName, "Image");
|
||||||
},
|
},
|
||||||
|
ModalCloseButtonText(){
|
||||||
|
return this.getCmsContent(this.cmsWidgetName, "FooterText");
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.modal {
|
.modal {
|
||||||
&.quote-modal {
|
&.modal-component {
|
||||||
.modal-dialog {
|
.modal-dialog {
|
||||||
.modal-content {
|
.modal-content {
|
||||||
max-width: 327px;
|
max-width: 327px;
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,17 @@
|
||||||
<vehicleBanner cmsWidgetName="VehicleBannerWidget" :displayGenericVehicleImage=false />
|
<vehicleBanner cmsWidgetName="VehicleBannerWidget" :displayGenericVehicleImage=false />
|
||||||
<funnelSubHeader cmsWidgetName="FunnelSubHeaderWidget" />
|
<funnelSubHeader cmsWidgetName="FunnelSubHeaderWidget" />
|
||||||
<div class="fade-on-route-transition sub-container make-tall">
|
<div class="fade-on-route-transition sub-container make-tall">
|
||||||
|
<cashOrInsuranceQuestion
|
||||||
|
ref="cashOrInsurance"
|
||||||
|
cmsWidgetName="CashOrInsuranceQuestionWidget"
|
||||||
|
v-model="isInsurance"
|
||||||
|
groupName="CashOrInsuranceQuestion"
|
||||||
|
/>
|
||||||
<radioServicePackage/>
|
<radioServicePackage/>
|
||||||
<textBlock
|
<textBlock
|
||||||
cmsWidgetName="footerTest"
|
cmsWidgetName="footerTest"
|
||||||
justifyText="left"
|
justifyText="left"
|
||||||
typeStyle="small"
|
typeStyle="caption"
|
||||||
fontWeight=""
|
fontWeight=""
|
||||||
/>
|
/>
|
||||||
<funnel-footer
|
<funnel-footer
|
||||||
|
|
@ -26,9 +32,6 @@
|
||||||
@ForwardClicked="forwardButtonAction"
|
@ForwardClicked="forwardButtonAction"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<modal
|
|
||||||
cmsWidgetName="EstimateRainDefenseModal"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</Form>
|
</Form>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -40,7 +43,6 @@ import funnelFooter from "@/common-components/funnel-footer/funnel-footer";
|
||||||
import vehicleBanner from "@/common-components/vehicle-banner/vehicle-banner";
|
import vehicleBanner from "@/common-components/vehicle-banner/vehicle-banner";
|
||||||
import funnelSubHeader from "@/common-components/funnel-sub-header/funnel-sub-header";
|
import funnelSubHeader from "@/common-components/funnel-sub-header/funnel-sub-header";
|
||||||
import radioServicePackage from "@/ux-components/radio-service-package/radio-service-package";
|
import radioServicePackage from "@/ux-components/radio-service-package/radio-service-package";
|
||||||
import modal from "@/common-components/modal/modal.vue";
|
|
||||||
import cashOrInsuranceQuestion from "./cash-or-insurance-question/cash-or-insurance-question";
|
import cashOrInsuranceQuestion from "./cash-or-insurance-question/cash-or-insurance-question";
|
||||||
import textBlock from "@/common-components/text-block/text-block";
|
import textBlock from "@/common-components/text-block/text-block";
|
||||||
|
|
||||||
|
|
@ -59,6 +61,11 @@ export default {
|
||||||
vm.setCmsContent(cmsContent);
|
vm.setCmsContent(cmsContent);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
data(){
|
||||||
|
return {
|
||||||
|
isInsurance: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
arePagePrerequisitesValid() {
|
arePagePrerequisitesValid() {
|
||||||
return true;
|
return true;
|
||||||
|
|
@ -87,8 +94,8 @@ export default {
|
||||||
funnelSubHeader,
|
funnelSubHeader,
|
||||||
Form,
|
Form,
|
||||||
radioServicePackage,
|
radioServicePackage,
|
||||||
modal,
|
|
||||||
textBlock,
|
textBlock,
|
||||||
|
cashOrInsuranceQuestion
|
||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="package-main">
|
<div class="package-main">
|
||||||
<textLink class="justify-content-end w-100" linkType="text" text="Compare packages" href="#!" :class="[isActive ? 'active' : '', hasArrow ? 'arrow' : '']" @click="toggleClass()" />
|
|
||||||
<div class="package-wrapper">
|
<div class="package-wrapper">
|
||||||
<input type="radio" name="test-radio" id="testradio">
|
<input type="radio" name="test-radio" id="testradio">
|
||||||
<label for="testradio">
|
<label for="testradio">
|
||||||
|
|
@ -22,7 +21,7 @@
|
||||||
<p class="sub-label m-0">most popular</p>
|
<p class="sub-label m-0">most popular</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>New replacement windshield</li>
|
<li>New replacement windshield</li>
|
||||||
<li>Expert installation and <textLink linkType="dashedUnderline" text="recalibration" href="#!" data-bs-toggle="modal" data-bs-target="#quoteModal" aria-label="Modal window" /></li>
|
<li>Expert installation and <textLink linkType="dashedUnderline" text="recalibration" href="#!" data-bs-toggle="modal" data-bs-target="#EstimateRainDefenseModal" aria-label="Modal window" /></li>
|
||||||
<li>Nationwide lifetime warranty</li>
|
<li>Nationwide lifetime warranty</li>
|
||||||
<li>New wiper blades</li>
|
<li>New wiper blades</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
@ -44,11 +43,15 @@
|
||||||
</div>
|
</div>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
<modal
|
||||||
|
cmsWidgetName="EstimateRainDefenseModal"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import textLink from "@/ux-components/text-link/text-link";
|
import textLink from "@/ux-components/text-link/text-link";
|
||||||
|
import modal from "@/common-components/modal/modal";
|
||||||
export default {
|
export default {
|
||||||
name: "radioServicePackage",
|
name: "radioServicePackage",
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -63,7 +66,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
textLink
|
textLink,
|
||||||
|
modal
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue