- {
- { "appointmentDate", "AppointmentStartDate" }, { "stepdownDate", "AppointmentEndDate" }
- };
-
private static string BuildFieldName(string errorFields, ControllerContext controllerContext)
{
- //check if an alternate field name is recorded in the AlternateValues dictionary
- if (AlternateValues.TryGetValue(errorFields, out var result))
- {
- return result;
- }
-
// correct the naming convention by upper casing the first letter
var fieldName = errorFields;
if (fieldName.Length > 0)
diff --git a/Web/Edubase.Web.UI/Views/Shared/EditorTemplates/GovernorViewModel.cshtml b/Web/Edubase.Web.UI/Views/Shared/EditorTemplates/GovernorViewModel.cshtml
index 25ee966f0..a373fecc9 100644
--- a/Web/Edubase.Web.UI/Views/Shared/EditorTemplates/GovernorViewModel.cshtml
+++ b/Web/Edubase.Web.UI/Views/Shared/EditorTemplates/GovernorViewModel.cshtml
@@ -147,7 +147,7 @@ else
@Html.LabelFor(x => x.IsOriginalSignatoryMember, "Original signatory member", new { @class = "govuk-label" })
@Html.ValidationMessageFor(x => x.IsOriginalSignatoryMember, null, new { @class = "govuk-error-message" })
- @Html.DropDownListFor(x => x.IsOriginalSignatoryMember, Model.YesNoSelect, new { @class = string.Concat("govuk-input ", Html.TextBoxValidationClass(x => x.IsOriginalSignatoryMember)) })
+ @Html.DropDownListFor(x => x.IsOriginalSignatoryMember, Model.YesNoSelect, new { @class = string.Concat("govuk-select ", Html.TextBoxValidationClass(x => x.IsOriginalSignatoryMember)) })
}
}
@@ -159,7 +159,7 @@ else
@Html.LabelFor(x => x.IsOriginalChairOfTrustees, "Original chair of trustees", new { @class = "govuk-label" })
@Html.ValidationMessageFor(x => x.IsOriginalChairOfTrustees, null, new { @class = "govuk-error-message" })
- @Html.DropDownListFor(x => x.IsOriginalChairOfTrustees, Model.YesNoSelect, new { @class = string.Concat("govuk-input ", Html.TextBoxValidationClass(x => x.IsOriginalChairOfTrustees))})
+ @Html.DropDownListFor(x => x.IsOriginalChairOfTrustees, Model.YesNoSelect, new { @class = string.Concat("govuk-select ", Html.TextBoxValidationClass(x => x.IsOriginalChairOfTrustees))})
}
}
@@ -345,7 +345,7 @@ else
@Html.ValidationMessageFor(x => x.AppointingBodyId, null, new { @class = "govuk-error-message" })
@Html.DropDownListFor(x => x.AppointingBodyId, Model.AppointingBodies, "",
- new { id = "governorAppointingBodyInput", @class = string.Concat("govuk-select ", Html.TextBoxValidationClass(x => x.AppointingBodyId)), aria_describedBy = errorsWrapperId, })
+ new { id = "AppointingBodyId", @class = string.Concat("govuk-select ", Html.TextBoxValidationClass(x => x.AppointingBodyId)), aria_describedBy = errorsWrapperId, })
}
}