From 5fd1dac2571a75d2bf1455c0628cd46591cef823 Mon Sep 17 00:00:00 2001 From: Andrew Croce Date: Wed, 26 Sep 2018 08:21:10 -0400 Subject: [PATCH] Update BA code description and validation message to describe the letter as optional --- atst/forms/financial.py | 2 +- js/lib/input_validations.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/atst/forms/financial.py b/atst/forms/financial.py index 64d75859..d184e6b8 100644 --- a/atst/forms/financial.py +++ b/atst/forms/financial.py @@ -122,7 +122,7 @@ class BaseFinancialForm(ValidatedForm): ba_code = StringField( "Program Budget Activity (BA) Code (Optional)", - description="BA Code is used to identify the purposes, projects, or types of activities financed by the appropriation fund.
It should be two digits, followed by a letter.", + description="BA Code is used to identify the purposes, projects, or types of activities financed by the appropriation fund.
It should be two digits, followed by an optional letter.", validators=[Regexp(BA_CODE_REGEX)], ) diff --git a/js/lib/input_validations.js b/js/lib/input_validations.js index 4df1f7dd..80b36f9a 100644 --- a/js/lib/input_validations.js +++ b/js/lib/input_validations.js @@ -77,7 +77,7 @@ export default { }, match: /[0-9]{2}\w?$/, unmask: [], - validationError: 'Please enter a valid BA Code. Note that it should be two digits, followed by a letter.' + validationError: 'Please enter a valid BA Code. Note that it should be two digits, followed by an optional letter.' }, workspaceName: { mask: false,