43 Commits

Author SHA1 Message Date
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
Montana
629dd674b9 Refactor emitters 2019-04-19 11:49:41 -04:00
Montana
85b6287e0c Emit field's parent uid on mount 2019-04-19 11:49:41 -04:00
leigh-mil
3f2beb44b2 Refactor emit field change into a utility function 2019-04-06 16:57:12 -04:00
rachel-dtr
942b557067
Merge branch 'master' into title-error-message 2019-02-14 10:53:47 -05:00
rachel-dtr
e1c93173ec Updates portfolio name error message 2019-02-14 10:46:34 -05:00
leigh-mil
1cc3328729 Move NaN/empty string check to formatDollars 2019-02-13 10:17:44 -05:00
leigh-mil
c5dfcbab5e Fix validation messages for updating portfolio name 2019-02-06 10:44:15 -05:00
leigh-mil
63bcae0bd4 Add trailing zeros to cents when focus moves 2019-02-01 13:29:07 -05:00
leigh-mil
0382966929 Update dollars filter and formatDollars() to display cent values 2019-01-31 11:29:52 -05:00
George Drummond
619bc9fe59
Prettier format all js files 2019-01-24 09:38:43 -05:00
leigh-mil
6fbb49d74e Add event listener for focus so elements hidden behind the footer will scroll to the center of the screen 2019-01-23 10:58:13 -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
andrewdds
d4e8dcd0a6
Merge pull request #296 from dod-ccpo/ie/fix-toggler
Ie/fix toggler
2018-09-18 12:01:51 -04:00
Andrew Croce
651e503a0c fix dollar formatter 2018-09-18 09:42:09 -04:00
Andrew Croce
24acfb5010 Add type checking on formatDollars
add param to hide cents
2018-09-17 15:08:45 -04:00
dandds
c3f89ba149 add form for editing workspace name 2018-09-17 13:10:37 -04:00
Andrew Croce
dd5f09c44c dollar formatting helper methods 2018-09-11 11:23:22 -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