diff --git a/Dfe.PrepareTransfers.Web/Pages/Projects/TransferDates/Reason.cshtml b/Dfe.PrepareTransfers.Web/Pages/Projects/TransferDates/Reason.cshtml index da62a2617..876559bb5 100644 --- a/Dfe.PrepareTransfers.Web/Pages/Projects/TransferDates/Reason.cshtml +++ b/Dfe.PrepareTransfers.Web/Pages/Projects/TransferDates/Reason.cshtml @@ -37,7 +37,7 @@ @foreach (var reason in Model.ReasonOptions) { var checkboxId = reason.Heading.ToLower().Replace(" ", "-"); - var textareaName = $"Details{reason.Heading.Replace(" ", "")}"; + var textareaName = $"Details[{checkboxId}]";
The current proposed transfer date is @Model.Project.Dates.Target.ToFormattedDate().
+ } + else if ((Model.OpeningDateHistory == null || !Model.OpeningDateHistory.Any()) && Model.Project.Dates.Target is null) + { +The proposed transfer date has not been entered yet. When it has been it will be displayed here.
Any future changes to the proposed transfer date will also be shown here.
} else { +The current proposed transfer date is @Model.OpeningDateHistory.OrderByDescending(h => h.ChangedAt).FirstOrDefault()?.NewDate?.ToString("d MMMM yyyy").