schedule sub header and change loc link
This commit is contained in:
parent
1d3ba7d381
commit
c4de9fd601
2 changed files with 62 additions and 16 deletions
|
|
@ -19,7 +19,7 @@
|
||||||
:class="justifySubheader">
|
:class="justifySubheader">
|
||||||
<p
|
<p
|
||||||
class="fw-normal mb-0"
|
class="fw-normal mb-0"
|
||||||
:class="alternateFormatting">
|
:class="[alternateFormatting, subTextClasses]">
|
||||||
<span v-html="subText"> </span>
|
<span v-html="subText"> </span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -49,7 +49,8 @@ export default {
|
||||||
issContainingPage: String,
|
issContainingPage: String,
|
||||||
justification: String,
|
justification: String,
|
||||||
stripRteStyle: Boolean,
|
stripRteStyle: Boolean,
|
||||||
subContentProperty: String
|
subContentProperty: String,
|
||||||
|
subTextClasses: String
|
||||||
},
|
},
|
||||||
emits: ['click-event'],
|
emits: ['click-event'],
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
||||||
|
|
@ -5,18 +5,26 @@
|
||||||
@submit="onSubmit"
|
@submit="onSubmit"
|
||||||
@invalidSubmit="onInvalidSubmit">
|
@invalidSubmit="onInvalidSubmit">
|
||||||
<div class="page-container-grouped-styles">
|
<div class="page-container-grouped-styles">
|
||||||
<div class="fade-on-route-transition position-relative">
|
|
||||||
<siteHeader cmsWidgetName="SiteHeaderWidget" />
|
<siteHeader cmsWidgetName="SiteHeaderWidget" />
|
||||||
<div class="container-fluid pb-2">
|
<siteSubHeader
|
||||||
<p>Placeholder for schedule page</p>
|
cmsWidgetName="ScheduleSubHeaderWidget"
|
||||||
|
subTextClasses="text-center small sub-text"
|
||||||
|
class="mt-5" />
|
||||||
|
<template v-if="ChangeShopLink.length">
|
||||||
|
<textBlock
|
||||||
|
cmsWidgetName="ChangeShopLink"
|
||||||
|
justifyText="center"
|
||||||
|
class="mb-3 text-link-small"
|
||||||
|
marginTopSizeOverride="1" />
|
||||||
|
</template>
|
||||||
|
<div class="main-content-container">
|
||||||
<siteFooter
|
<siteFooter
|
||||||
ref="siteFooter"
|
ref="siteFooter"
|
||||||
class="mt-5"
|
class="mt-5"
|
||||||
cmsWidgetName="SiteFooterWidget"
|
cmsWidgetName="SiteFooterWidget"
|
||||||
:isForwardActionDisabled="!meta.valid"
|
:isForwardActionDisabled="!meta.valid"
|
||||||
@ForwardClicked="forwardButtonAction"
|
@backClicked="backButtonAction"
|
||||||
@backClicked="backButtonAction" />
|
@forwardClicked="forwardButtonAction" />
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Form>
|
</Form>
|
||||||
|
|
@ -24,11 +32,13 @@
|
||||||
<script>
|
<script>
|
||||||
// Components
|
// Components
|
||||||
import siteHeader from '@/iss-components/site-header/site-header.vue';
|
import siteHeader from '@/iss-components/site-header/site-header.vue';
|
||||||
|
import siteSubHeader from '@/iss-components/site-sub-header/site-sub-header.vue';
|
||||||
import siteFooter from '@/iss-components/site-footer/site-footer.vue';
|
import siteFooter from '@/iss-components/site-footer/site-footer.vue';
|
||||||
|
import textBlock from '@/digital-components/text-block/text-block.vue';
|
||||||
|
|
||||||
// Supporting files
|
// Supporting files
|
||||||
import { AppointmentTypeStrings } from '@/constants/schedule-constants.js';
|
import { AppointmentTypeStrings } from '@/constants/schedule-constants.js';
|
||||||
import { fetchCmsContentForPage } from '@/helpers/cms-content-helper';
|
import { fetchCmsContentForPage, splitCopyOnCMSPlaceHolder } from '@/helpers/cms-content-helper';
|
||||||
import settleAllPromises from '@/helpers/layout-helper';
|
import settleAllPromises from '@/helpers/layout-helper';
|
||||||
import { Form } from 'vee-validate';
|
import { Form } from 'vee-validate';
|
||||||
import BaseFormMixin from '@/mixins/base-form-mixin.js';
|
import BaseFormMixin from '@/mixins/base-form-mixin.js';
|
||||||
|
|
@ -38,7 +48,9 @@ export default {
|
||||||
name: 'schedule-page',
|
name: 'schedule-page',
|
||||||
components: {
|
components: {
|
||||||
siteHeader,
|
siteHeader,
|
||||||
|
siteSubHeader,
|
||||||
siteFooter,
|
siteFooter,
|
||||||
|
textBlock,
|
||||||
// eslint-disable-next-line vue/no-reserved-component-names
|
// eslint-disable-next-line vue/no-reserved-component-names
|
||||||
Form
|
Form
|
||||||
},
|
},
|
||||||
|
|
@ -56,7 +68,6 @@ export default {
|
||||||
|
|
||||||
// use resultMap to populate layout content.
|
// use resultMap to populate layout content.
|
||||||
const resultMap = await settleAllPromises(promiseResultMap);
|
const resultMap = await settleAllPromises(promiseResultMap);
|
||||||
|
|
||||||
next((vm) => {
|
next((vm) => {
|
||||||
vm.setCmsContent(resultMap.cmsContent);
|
vm.setCmsContent(resultMap.cmsContent);
|
||||||
});
|
});
|
||||||
|
|
@ -67,8 +78,18 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
ChangeShopLinkText() {
|
||||||
|
return this.getCmsContent('ChangeShopLink', 'Text');
|
||||||
|
},
|
||||||
|
ChangeShopLink() {
|
||||||
|
// Splits content when brackets are found in text so that text can be looped through and router-link can be injected when needed
|
||||||
|
return this.splitCopyOnCMSPlaceHolder(this.ChangeShopLinkText);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
splitCopyOnCMSPlaceHolder,
|
||||||
arePagePrerequisitesValid() {
|
arePagePrerequisitesValid() {
|
||||||
const { serviceLocation } = useMainStore().order;
|
const { serviceLocation } = useMainStore().order;
|
||||||
const serviceLocationPreReqs = serviceLocation.zipCode
|
const serviceLocationPreReqs = serviceLocation.zipCode
|
||||||
|
|
@ -98,3 +119,27 @@ export default {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
$page-side-padding: 1.5rem;
|
||||||
|
|
||||||
|
.page-container-grouped-styles {
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
|
.main-content-container {
|
||||||
|
padding: 0 1.5rem !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.text-link-small) {
|
||||||
|
a, .btn-link {
|
||||||
|
font-size: 0.875rem;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.subheader-primary) {
|
||||||
|
h5.dark-header {
|
||||||
|
margin-bottom: 0.25rem !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue