Skip to content

Commit

Permalink
Fix - field name not showing in error messages (#889)
Browse files Browse the repository at this point in the history
* added display name for error messages

* removed whitespace
  • Loading branch information
zhodges-nimble authored Oct 9, 2024
1 parent 852046f commit f9e4f08
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.ComponentModel;
using Dfe.ManageFreeSchoolProjects.API.Contracts.Project.Tasks;
using Dfe.ManageFreeSchoolProjects.Constants;
using Dfe.ManageFreeSchoolProjects.Logging;
Expand Down Expand Up @@ -38,6 +39,7 @@ public class EditOfstedPreRegistrationAfterTaskModel(
public string SchoolName { get; set; }

[BindProperty(Name = "date-inspection-and-any-actions-completed", BinderType = typeof(DateInputModelBinder))]
[DisplayName("Date that inspection and any actions were completed")]
public DateTime? DateInspectionsAndAnyActionsCompleted { get; set; }

public async Task<ActionResult> OnGet()
Expand Down

0 comments on commit f9e4f08

Please sign in to comment.