diff --git a/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/CreateFundingHistoryModal.cshtml b/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/CreateFundingHistoryModal.cshtml index bcfb1c847..7ee772909 100644 --- a/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/CreateFundingHistoryModal.cshtml +++ b/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/CreateFundingHistoryModal.cshtml @@ -20,7 +20,7 @@
@@ -93,11 +93,6 @@ } }); - var $fundingYear = $('#FundingHistoryForm_FundingYear'); - - $fundingYear.on('input', function () { - $(this).val($(this).val().replace(/\D/g, '').slice(0, 4)); - }); } })(); diff --git a/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/CreateIssueTrackingModal.cshtml b/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/CreateIssueTrackingModal.cshtml index db341e2b9..bc06d9231 100644 --- a/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/CreateIssueTrackingModal.cshtml +++ b/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/CreateIssueTrackingModal.cshtml @@ -14,7 +14,7 @@
@@ -55,12 +55,3 @@ - diff --git a/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/EditFundingHistoryModal.cshtml b/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/EditFundingHistoryModal.cshtml index b0e9ee813..6ff9300a4 100644 --- a/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/EditFundingHistoryModal.cshtml +++ b/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/EditFundingHistoryModal.cshtml @@ -21,7 +21,7 @@
@@ -94,11 +94,6 @@ } }); - var $fundingYear = $('#FundingHistoryForm_FundingYear'); - - $fundingYear.on('input', function () { - $(this).val($(this).val().replace(/\D/g, '').slice(0, 4)); - }); } })(); diff --git a/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/EditIssueTrackingModal.cshtml b/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/EditIssueTrackingModal.cshtml index e2026fd63..90772ca98 100644 --- a/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/EditIssueTrackingModal.cshtml +++ b/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/EditIssueTrackingModal.cshtml @@ -15,7 +15,7 @@
@@ -56,12 +56,3 @@ - diff --git a/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/FundingHistoryModalViewModel.cs b/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/FundingHistoryModalViewModel.cs index 33d5f23c6..7a7eea42f 100644 --- a/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/FundingHistoryModalViewModel.cs +++ b/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/FundingHistoryModalViewModel.cs @@ -14,7 +14,6 @@ public class FundingHistoryModalViewModel public string? GrantCategory { get; set; } [DisplayName("Funding Year")] - [RegularExpression(@"^\d{4}$", ErrorMessage = "Funding Year must be a 4-digit number.")] public string? FundingYear { get; set; } [DisplayName("Renewed Funding")] diff --git a/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/IssueTrackingModalViewModel.cs b/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/IssueTrackingModalViewModel.cs index 2a50eaef2..50115cc71 100644 --- a/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/IssueTrackingModalViewModel.cs +++ b/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/ApplicantHistory/IssueTrackingModalViewModel.cs @@ -1,6 +1,5 @@ using System; using System.ComponentModel; -using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc; namespace Unity.GrantManager.Web.Pages.ApplicantHistory; @@ -11,7 +10,6 @@ public class IssueTrackingModalViewModel public Guid ApplicantId { get; set; } [DisplayName("Year")] - [RegularExpression(@"^\d{4}$", ErrorMessage = "Year must be a 4-digit number.")] public string? Year { get; set; } [DisplayName("Issue Heading")]