39 Commits

Author SHA1 Message Date
leigh-mil
589646fd90 Allow commas and quotes in portfolio and application names. Create input validator for application names. 2020-02-06 19:07:11 -05:00
leigh-mil
b20e2971d7 Update TO number validator to account for dashes and variable character length 2020-01-24 09:18:22 -05:00
graham-dds
3cf9fdac76 Add frontend validation for TextInput()s
- Add input validation regexes to input_validations.js
- Add those validators to text fields without validaiton
2020-01-22 15:20:18 -05:00
dandds
5213657b0f Additional validation and escaping for file names.
This adds additional front and backend validations for task order file
names. We are now restricting file names to a whitelist regex of
[A-Za-z0-9\-_ \.] for simplicity.

Note:
On the frontend, the filename string must have at least one character.
This is not true in the backend validation; because of the way the
entire task order form is validated, requiring input would break the
business logic currently implemented.
2020-01-15 09:17:03 -05:00
graham-dds
257fe648a8 Add input validation for CLIN dollars
But the validation message includes the valid number range
2019-09-12 16:11:12 -04:00
mk-dds
57894c16ca Update TO to be 13 digits 2019-07-18 13:50:48 -04:00
richard-dds
b77d0fc53f Allow capital letters in email TLD 2019-06-11 16:18:35 -04:00
leigh-mil
0a2d241dc4 Add validator to TO number input and add cancel button to form 2019-06-05 12:58:33 -04:00
dandds
124970f9d6 Frontend email validation should match wtforms
Our long email regex for the frontend was stricter in some ways, but it allowed
email addresses with a single-letter TLD ("frank@dod.m"), which the backend
WTForms validator would reject. The two should be equivalent.

Reference:
1939aec691/wtforms/validators.py (validators.py-281)
2019-04-30 14:43:23 -04:00
rachel-dtr
e1c93173ec Updates portfolio name error message 2019-02-14 10:46:34 -05:00
leigh-mil
c5dfcbab5e Fix validation messages for updating portfolio name 2019-02-06 10:44:15 -05:00
George Drummond
619bc9fe59
Prettier format all js files 2019-01-24 09:38:43 -05:00
dandds
d3d36822df workspace -> portfolio everywhere 2019-01-14 16:00:17 -05:00
leigh-mil
8cda3109bb Update DOD ID validator to allow leading zeros 2018-12-03 15:27:16 -05:00
leigh-mil
cdcc954cf6 Add validator to user form for consistent validation 2018-11-28 15:17:59 -05:00
leigh-mil
46855c9de0 Fix input field to limit to 10 digits 2018-11-21 15:31:25 -05:00
leigh-mil
c753181541 Update mask and error message 2018-11-07 12:03:52 -05:00
leigh-mil
2dd1822cf8 Add validation 2018-11-07 12:03:52 -05:00
leigh-mil
029941e9c2
Merge pull request #381 from dod-ccpo/edit-pe-number-#160627814
Edit pe number #160627814
2018-10-12 11:43:25 -04:00
rthoward
95f6b17e3b Simplify "anything" input validatin regex 2018-10-11 16:55:48 -04:00
leigh-mil
e0367dd2bd Remove mask from BA Code input since it had the same bug 2018-10-11 11:51:18 -04:00
leigh-mil
63ca35e808 Remove mask from PE Number input and clean up regex for match 2018-10-11 11:50:39 -04:00
Patrick Smith
becfbed10a Email addresses are case-insensitive 2018-09-28 09:48:40 -04:00
Andrew Croce
5fd1dac257 Update BA code description and validation message to describe the letter as optional 2018-09-26 13:08:01 -04:00
dandds
19296e64c9 fix typos in request name field name and validation 2018-09-19 12:00:40 -04:00
dandds
8ce667cea2 workspace and request names can be 100 chars long 2018-09-19 11:39:18 -04:00
dandds
ec5c3e8ce8 add request name 2018-09-19 10:44:21 -04:00
dandds
c3f89ba149 add form for editing workspace name 2018-09-17 13:10:37 -04:00
Andrew Croce
fa1292662c remove first and third zeros from PE number input mask 2018-09-07 15:44:48 -04:00
Andrew Croce
231b3788de make leading zeros optional, remove 0 prefix 2018-09-07 15:44:48 -04:00
Andrew Croce
6026478cfa Add validations/masking for PE number, treasury code, and BA code 2018-09-07 15:44:48 -04:00
luis cielak
cda585c3a3 Update validation icon placement and placeholders 2018-08-15 10:49:48 -04:00
luis cielak
483d606cf0 Update tooltips, placehoders, and field info 2018-08-15 10:49:48 -04:00
Andrew Croce
8659132989 Add front end validation error messages 2018-08-10 09:18:09 -04:00
Andrew Croce
034c147154 remove commas from unmasked integer values 2018-08-09 13:44:30 -04:00
Andrew Croce
1c4c49da62 Add new input validation sets 2018-08-08 14:40:33 -04:00
Andrew Croce
725e76dfa4 use a monster email validation regex that works 99.9% of the time. 2018-08-08 11:25:39 -04:00
Andrew Croce
476eb042c1 input validations lib 2018-08-08 10:59:28 -04:00
Andrew Croce
b649d17eb8 input validations WIP 2018-08-07 15:43:03 -04:00