Skip to content

Commit

Permalink
SCJ-251: Update trial length copy (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncan-oxd authored Jul 26, 2024
1 parent 308a741 commit e92b7c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/ClientSrc/vue/TrialTimeSelect/RegularBooking.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
You can instantly book a trial date that is currently available in the system.
</div>

<h3 class="mt-0 mb-5">Choose trial start date (Trial length {{ trialLengthDisplay }})</h3>
<h3 class="mt-0 mb-5">Choose trial start date (Trial length: {{ trialLengthDisplay }})</h3>

<div class="mb-5">
<slot v-if="dates.length === 0" name="noDatesError" />
Expand Down
5 changes: 3 additions & 2 deletions app/Views/ScBooking/Partial/AvailableTimes/_Trial.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
bool fairUseDisabled = !fairUseUnavailable && (Model.FairUseStartDate.Value > DateTime.Now || Model.FairUseEndDate.Value
< DateTime.Now);

int trialLength = Model.SessionInfo.EstimatedTrialLength ?? 0;
int ScMaxTrialDateSelections = ScGeneral.ScMaxTrialDateSelections;
string ScMaxTrialDateSelectionsString = ScGeneral.ScMaxTrialDateSelectionsString;
}
Expand All @@ -38,7 +39,7 @@
<div id="VueTrialTimeSelect" v-cloak>
<trial-time-select-tabs initial-tab="@Model.TrialFormulaType" fair-use-unavailable="@fairUseUnavailable"
fair-use-disabled="@fairUseDisabled">
<regular-booking :dates="@availableRegularDates" :trial-length="@Model.SessionInfo.EstimatedTrialLength"
<regular-booking :dates="@availableRegularDates" :trial-length="@trialLength"
initial-value="@selectedRegularTrialDate" slot="regularBooking">
<div slot="noDatesError" class="alert alert-danger" role="alert">
<i class="fa fa-ban"></i>
Expand Down Expand Up @@ -115,7 +116,7 @@

<template slot="dateSelectionSectionHeader">
Request trial start dates for @Model.SessionInfo.BookingLocationName
(Trial length @Model.SessionInfo.EstimatedTrialLength days)
(Trial length: @trialLength @(trialLength == 1 ? "day" : "days"))
</template>

<template slot="dateSelectionHeader" slot-scope="{ maxSelectionSize }">
Expand Down

0 comments on commit e92b7c2

Please sign in to comment.