CASH-1183: Schedule page parity updates
This commit is contained in:
parent
3c57c587c3
commit
74b6bcae2d
3 changed files with 19 additions and 2 deletions
|
|
@ -12,6 +12,10 @@ https://safelite.atlassian.net/wiki/spaces/DC/pages/76644418/Button+Question+Com
|
||||||
<span class="fw-bold w-100" :class="[labelBold ? 'span-bold' : '']">
|
<span class="fw-bold w-100" :class="[labelBold ? 'span-bold' : '']">
|
||||||
{{ questionText }}
|
{{ questionText }}
|
||||||
</span>
|
</span>
|
||||||
|
<p
|
||||||
|
v-if="questionTextDescription"
|
||||||
|
class="question-text-description"
|
||||||
|
v-html="questionTextDescription"></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="w-100 d-flex justify-content-center">
|
<div class="w-100 d-flex justify-content-center">
|
||||||
|
|
@ -118,6 +122,7 @@ export default {
|
||||||
isMultiSelect: Boolean,
|
isMultiSelect: Boolean,
|
||||||
groupName: String,
|
groupName: String,
|
||||||
questionText: String,
|
questionText: String,
|
||||||
|
questionTextDescription: String,
|
||||||
answers: Array,
|
answers: Array,
|
||||||
textPosition: {
|
textPosition: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|
@ -376,6 +381,13 @@ export default {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.question-text-description {
|
||||||
|
font-family: UrbanistRegular;
|
||||||
|
& > sup {
|
||||||
|
font-size: 0.5rem;
|
||||||
|
top: -0.4rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
.small-question-text {
|
.small-question-text {
|
||||||
&.question-text {
|
&.question-text {
|
||||||
span {
|
span {
|
||||||
|
|
|
||||||
|
|
@ -336,7 +336,7 @@ export default {
|
||||||
);
|
);
|
||||||
|
|
||||||
if (this.estimatedServiceMinutesMinimum && this.estimatedServiceMinutesMaximum) {
|
if (this.estimatedServiceMinutesMinimum && this.estimatedServiceMinutesMaximum) {
|
||||||
return `${inshopDurationTextWithoutTime} ${inshopDurationTime}`;
|
return `${inshopDurationTextWithoutTime} <b>${inshopDurationTime}</b>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
@ -353,7 +353,7 @@ export default {
|
||||||
);
|
);
|
||||||
|
|
||||||
if (this.estimatedServiceMinutesMinimum && this.estimatedServiceMinutesMaximum) {
|
if (this.estimatedServiceMinutesMinimum && this.estimatedServiceMinutesMaximum) {
|
||||||
return `${mobileDurationTextWithoutTime} ${mobileDurationTime}`;
|
return `${mobileDurationTextWithoutTime} <b>${mobileDurationTime}</b>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
v-if="isDropOffAppointmentAvailable"
|
v-if="isDropOffAppointmentAvailable"
|
||||||
v-model="selectedAnswerForDropOffOrInshop"
|
v-model="selectedAnswerForDropOffOrInshop"
|
||||||
:questionText="dropOffOrPickATimeQuestionLabelText"
|
:questionText="dropOffOrPickATimeQuestionLabelText"
|
||||||
|
:questionTextDescription="dropOffOrPickATimeQuestionDescription"
|
||||||
:answers="answersForDropOffQuestion"
|
:answers="answersForDropOffQuestion"
|
||||||
isRequired
|
isRequired
|
||||||
insertOrLabelBeforeFinalOption
|
insertOrLabelBeforeFinalOption
|
||||||
|
|
@ -228,6 +229,10 @@ export default {
|
||||||
dropOffOrPickATimeQuestionLabelText() {
|
dropOffOrPickATimeQuestionLabelText() {
|
||||||
return this.getCmsContent(this.dropOffOrPickATimeQuestionCmsWidgetName, "QuestionText");
|
return this.getCmsContent(this.dropOffOrPickATimeQuestionCmsWidgetName, "QuestionText");
|
||||||
},
|
},
|
||||||
|
dropOffOrPickATimeQuestionDescription() {
|
||||||
|
// This is hardcoded because Input Question Widget doesn't currently have a place to add additional text
|
||||||
|
return "You can drop off your vehicle in the morning and pick it up later in the day with Drop & Go<sup>™</sup> or pick an appointment time.";
|
||||||
|
},
|
||||||
pickATimeButtonLabelText() {
|
pickATimeButtonLabelText() {
|
||||||
return this.getCmsContent(this.dropOffOrPickATimeQuestionCmsWidgetName, "Answers")[0]
|
return this.getCmsContent(this.dropOffOrPickATimeQuestionCmsWidgetName, "Answers")[0]
|
||||||
.Text;
|
.Text;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue