Skip to content

Commit

Permalink
Fix parse error messages for Start date on Add Alert journey (#1574)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad authored Oct 14, 2024
1 parent 8ea3546 commit 1bc3202
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@

<govuk-date-input asp-for="StartDate">
<govuk-date-input-fieldset>
<govuk-date-input-fieldset-legend is-page-heading="true" class="govuk-fieldset__legend--l" />
<govuk-date-input-fieldset-legend is-page-heading="true" class="govuk-fieldset__legend--l">
Enter start date
</govuk-date-input-fieldset-legend>
</govuk-date-input-fieldset>
</govuk-date-input>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class StartDateModel(TrsLinkGenerator linkGenerator, IClock clock) : Page

[BindProperty]
[Required(ErrorMessage = "Enter a start date")]
[Display(Name = "Enter start date")]
[Display(Name = "Start date")] // https://github.com/gunndabad/govuk-frontend-aspnetcore/issues/282
public DateOnly? StartDate { get; set; }

public void OnGet()
Expand Down

0 comments on commit 1bc3202

Please sign in to comment.