419 Commits

Author SHA1 Message Date
leigh-mil
c94570f83e Update TO form and nested components to emit directly to parent components instead of emitting from the root component 2019-11-14 16:46:35 -05:00
graham-dds
948976bb78
Merge pull request #1176 from dod-ccpo/bugfix/date-validation
Tweak date validation logic for months and days
2019-11-12 16:09:00 -05:00
leigh-mil
045e06abee When validating that envs have names, make sure that names containing only strings are not valid 2019-11-12 13:07:50 -05:00
graham-dds
295088524c Tweak date validation logic for months and days
- valid months should be between 1 and 12, inclusive
- days should be between 1 and 31, inclusive
- swap a few lets for consts
2019-11-12 13:00:01 -05:00
leigh-mil
83967e6ed9 Delete unused component and macro 2019-10-22 15:12:19 -04:00
leigh-mil
88d6ef32a4 Display error when PoP start date and end date are the same 2019-10-16 19:28:17 -04:00
graham-dds
9faf55f2d6 new app step 1 form is submitable with initial data 2019-10-14 13:40:34 -04:00
leigh-mil
07b3c68422 Add min and max range values to date selector so a more accurate error message can be displayed when a date is out of the range 2019-10-08 10:32:02 -04:00
leigh-mil
a5d34f9bb2 Check against the contract dates instead of the current maxStart and minEnd values to calculate the new maxStart and minEnds 2019-10-01 12:51:51 -04:00
leigh-mil
0c54b61579 Remove watch from date selector component 2019-09-26 16:27:10 -04:00
leigh-mil
2f3863b84d Remove emitters for individual value changes 2019-09-26 16:27:10 -04:00
leigh-mil
1912a9127f Add computed properties for Date object for dates used in functions 2019-09-26 16:27:10 -04:00
leigh-mil
a8635e8c8b Add explanation about maxStartDate and minEndDate,
Refactor calc max and min functions
2019-09-26 16:27:10 -04:00
leigh-mil
f840bbb941 Use let instead of var 2019-09-26 16:22:16 -04:00
leigh-mil
92243965ec parse contract dates into datetime objects 2019-09-26 16:22:16 -04:00
leigh-mil
df5f4b9d3e Get rid of unnecessary data in pop date range 2019-09-26 16:22:15 -04:00
leigh-mil
c03820e53a Emit event on input from date selector so parent element can respond 2019-09-26 16:22:15 -04:00
leigh-mil
ad86dc33fc Show validation icon only if the date is complete 2019-09-26 16:22:15 -04:00
leigh-mil
789e6662a2 Add tests for pop date range vue component 2019-09-26 16:22:15 -04:00
leigh-mil
5e1ce65662 Move html out of clin fields macro and fix initial values in pop date range when there is no form data 2019-09-26 16:22:15 -04:00
leigh-mil
eef15f311f Remove logic for validating PoP date range out of clin-fields vue component 2019-09-26 16:22:02 -04:00
leigh-mil
53cef32af5 Use date-selector component to display errors related to date fields 2019-09-26 16:22:02 -04:00
leigh-mil
e26edcd1bb Add tests for updated functionality in date-selector and formatting 2019-09-26 16:22:02 -04:00
leigh-mil
32583feb99 Validate year based on min and max dates and only show the validation icons when the date has been completely filled in 2019-09-26 16:22:02 -04:00
leigh-mil
843501c00a Fix bug where name attribute of start date fields was not properly assigned
Fix bug in pop_date_range were startValid and endValid were not being properly updated
2019-09-26 16:22:02 -04:00
leigh-mil
d52abeb0a9 Only update the min and max values for other field when the field that was updated is valid -- This prevents both fields from becoming invalid when the dates are not in chronological order. 2019-09-26 16:22:02 -04:00
leigh-mil
d42cd1ff4f Dynamically update the max and min values for start and end date based on the date in the other field and contract dates 2019-09-26 16:22:02 -04:00
leigh-mil
0e641a9064 Create vue component to manage date range logic 2019-09-26 16:21:27 -04:00
dandds
dcf10e596f Delete some additional unused Vue components. 2019-09-26 05:48:14 -04:00
dandds
6dc1e10e77 Delete unused Vue components and remove references to them. 2019-09-25 06:14:12 -04:00
graham-dds
7e340936dc
Merge pull request #1088 from dod-ccpo/make-application-creation-multistep
Make application creation multistep
2019-09-24 13:56:36 -04:00
graham-dds
1a11182eef Break new-application JS component into form steps 2019-09-24 10:16:48 -04:00
dandds
7ea1ae5a34 Add a JS test for the clin-fields Vue component.
In order to do this, it was expedient to move the CLINFields Jinja macro
into its own file and pass in all the data it requires.
2019-09-24 09:37:30 -04:00
dandds
46f8e07729
Merge pull request #1087 from dod-ccpo/to-step3-testing
Initial JS tests for the Vue TOForm component.
2019-09-23 10:32:23 -04:00
dandds
112f0e0ab2 Initial JS tests for the Vue TOForm component.
This adds BeautifulSoup to the Python dev dependencies so that we can
render an entire page and then extract the Vue component we need.
Ideally, we should refactor all the Vue components so that they live in
Jinja macros and we can render those macros directly.
2019-09-20 15:24:55 -04:00
leigh-mil
61a3affd11 Add if statement for when percentage is over 100 2019-09-20 13:13:15 -04:00
leigh-mil
6de02e874b Update edit app member form so the save button becomes active on change 2019-09-18 11:16:55 -04:00
graham-dds
5d3aa41431 Pull out unecessary events from clin_fields 2019-09-12 16:11:12 -04:00
graham-dds
8b0d9fb9d2 Create text input mixin 2019-09-12 16:11:12 -04:00
graham-dds
6224026d72 Custom component for handling clin dollar input
- Macro for CLIN dollar input HTML.
- Custom Vue component to react to
 "fundingValid" validaiton
2019-09-12 16:11:12 -04:00
graham-dds
cdbbc9f785 Add funding validation to clinfields vue component 2019-09-12 16:11:12 -04:00
graham-dds
bf19add617 Add funding validation to clinfields vue component 2019-09-12 16:11:12 -04:00
graham-dds
73a4b669ac class methods for oblig. and contract amount total 2019-09-12 16:11:12 -04:00
leigh-mil
ca39d7107d Remove unused nestedcheckbox vue component 2019-09-10 13:16:16 -04:00
leigh-mil
3683c79ae0 Use template args for the contract start and end date
pointing to base.ini in the JS file resulted in the raw string content of base.ini to be in the JS bundle
2019-09-09 14:23:38 -04:00
leigh-mil
6dea274c0a Put showClin back into data -- removing it messed up the removeClin function 2019-09-09 14:21:20 -04:00
leigh-mil
d802a53db6 Only show contract date validation messages if the date has been completely filled in 2019-09-06 10:12:35 -04:00
leigh-mil
2cefe93136 Use date-fns instead of moment 2019-09-06 10:12:35 -04:00
leigh-mil
2efd2c968d Use translations and make errors look pretty 2019-09-06 10:12:35 -04:00
leigh-mil
e4ca027065 Validate CLIN PoP against configurable contract start and end dates 2019-09-06 10:12:34 -04:00