536 Commits

Author SHA1 Message Date
leigh-mil
0abe27eb36 Remove form mixin from toggler component 2019-11-15 17:36:57 -05:00
leigh-mil
3e57579990 Use BaseForm instead of specialized Vue component for step 1 of the application form
Remove unnecessary event listener
2019-11-15 17:35:11 -05:00
leigh-mil
d1e1a2a36a Update TO form and nested components to emit directly to parent components instead of emitting from the root component 2019-11-15 17:35:11 -05:00
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
d142fa974a Update Form mixin so that you can enable the save button for a form on render 2019-10-31 16:21:32 -04:00
richard-dds
910d31df30 Remove AwsUploader 2019-10-29 16:02:48 -04:00
leigh-mil
83967e6ed9 Delete unused component and macro 2019-10-22 15:12:19 -04:00
leigh-mil
4a61625048
Merge pull request #1126 from dod-ccpo/pop-bug-fixes
Display error when PoP start date and end date are the same
2019-10-21 09:26:02 -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
leigh-mil
248e93103b Add js/test_templates to .gitignore file and remove ignored folder 2019-10-16 13:53:40 -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
250b6755aa
Merge pull request #1104 from dod-ccpo/modal-styling-update
Modal styling update
2019-10-14 09:44:59 -04:00
richard-dds
30f5f0292f Update js templates 2019-10-08 16:42:25 -04:00
leigh-mil
b21bc5a69f Update test templates 2019-10-08 16:30:28 -04:00
leigh-mil
7f0a25ea17 Use translations 2019-10-08 10:32:02 -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
ae57baf455
Merge pull request #1094 from dod-ccpo/test-changes
updates to script/test and JS coverage
2019-09-26 15:44:14 -04:00
dandds
dcf10e596f Delete some additional unused Vue components. 2019-09-26 05:48:14 -04:00
dandds
8d7c7a0d6e Render Vue component templates as part of test script.
Add a command to the test script to output up-to-date Vue component
templates. Most of the Vue component tests rely on HTML templates built
from Jinja.
2019-09-25 11:32:10 -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