15 Commits

Author SHA1 Message Date
Patrick Smith
364d452598 Add missing required validators 2018-08-20 11:42:32 -04:00
richard-dds
06c44f86c9 Fix tests, linting errors 2018-08-17 14:36:04 -04:00
richard-dds
57fd5eb57c Add regex validations for treasury_code and ba_code 2018-08-17 14:36:03 -04:00
richard-dds
59b5e19c79 Funding type other input is only required if funding type is other 2018-08-17 14:36:03 -04:00
richard-dds
070fe823d3 Fix bug in UII field
Was displaying an empty list of UIIs as [''] in the textarea
2018-08-17 14:36:03 -04:00
dandds
9514556797 fix tests for new request field values 2018-08-15 10:49:48 -04:00
Patrick Smith
0ccdb8ecfd Show/hide additional fields when annual is more than a million 2018-08-13 11:29:50 -04:00
Patrick Smith
3e6c4d7f13 Update flask form to require fields only when appropriate 2018-08-13 11:29:25 -04:00
richard-dds
44b715fc01 Allow for multiple date formats 2018-07-31 15:16:04 -04:00
Luis Cielak
2010fb6564 Remove test 2018-07-30 15:33:05 -04:00
Patrick Smith
8e427aaf55 Suggest a PE number when PE number is not found
Using the defined format of a PE number
(https://www.militaryperiscope.com/terms/t0000241.html), we can suggest
a corrected format of the PE number if the user omitted the leading
zeros for either the DoD program or category.
2018-07-24 10:14:48 -04:00
Patrick Smith
3925007489 Add tests for some validators 2018-07-11 10:54:04 -04:00
luisgov
9d781577c4 Update request form (#45)
* Implement OrganizationInfo form, add it to the template

* Format request_new

* Update "Details of Use" section

* Refactor request_new

* Added some new fields, but form is still WIP

* Add details of use fields

* Add org info fields

* Add some comments

* Add Financial Verification and more Details of Use fields

* Update some textarea fields to single text field

* WIP

* Implement OrganizationInfo form, add it to the template

* Format request_new

* Update "Details of Use" section

* Refactor request_new

* Added some new fields, but form is still WIP

* Add details of use fields

* Add org info fields

* Add some comments

* Add Financial Verification and more Details of Use fields

* Update some textarea fields to single text field

* Format

* Update fields with the correct fieldtypes

* Begin updating sidenav changes

* Split form into each section

* adjust and skip some outdated form validation tests

* break request form into multiple form objects

* need to send user ID to requests-queue

* use DateForm for start date in request

* alter request_new handler to pass raw form data to template

* change review form

* Add KO and COR section titles

* Update date input class name

* Add a special case for the summary form. We should refactor this

* Add read-only fields for review and submit section

* Add minimum number validators to request form

* Fix formatting

* Use html5 datepicker for dates

* Fix request form validators

* Finish org info form

* Finish POC form

* Finish financial verification form

* Move PE and UII to financial form

* Un-skip form validation test
2018-07-03 10:10:44 -04:00
richard-dds
f9335c7a4e Use black for formatting 2018-06-26 10:31:39 -04:00
Brian Duggan
9152ffe91e Implement form objects for request forms 2018-06-14 13:59:03 -04:00