Update BA code description and validation message to describe the letter as optional

This commit is contained in:
Andrew Croce 2018-09-26 08:21:10 -04:00 committed by Montana
parent 68206307fd
commit 5fd1dac257
2 changed files with 2 additions and 2 deletions

View File

@ -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. <br/><em>It should be two digits, followed by a letter.</em>",
description="BA Code is used to identify the purposes, projects, or types of activities financed by the appropriation fund. <br/><em>It should be two digits, followed by an optional letter.</em>",
validators=[Regexp(BA_CODE_REGEX)],
)

View File

@ -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,