491 Commits

Author SHA1 Message Date
leigh-mil
4206aa8a59 Use member.role_name in template and JS
change name of data from roles to rolesCategory to make less confusing
2019-05-14 11:00:14 -04:00
leigh-mil
3a2e2aa878 Wip tests 2019-05-14 11:00:14 -04:00
leigh-mil
be178733cf Add note about future refactoring 2019-05-14 10:58:22 -04:00
leigh-mil
319cc17c1c Start vue component for edit-environment-role 2019-05-14 10:58:22 -04:00
leigh-mil
060c6834bf Add save button and temp member role toggle to env member form 2019-05-14 10:58:22 -04:00
George Drummond
951ef9212d
Fix issue with CLIN changes not updating funding total 2019-05-10 13:16:08 -04:00
dandds
457b1f9523 Detangle the MultiStepModalForm modal-open link from the modal.
In order to place modal forms in other places on the page (so that forms
are not nested) it's necessary to move MultiStepModalForm links out of
the component. They just need to refer to the correct modal.

This PR also makes changes to ensure that the active modal is being
unset everywhere correctly when a modal is closed.
2019-05-08 11:16:56 -04:00
Montana
416ea1de82 Watch for changes on the options input, which is a grandchild of base-form 2019-05-06 15:16:48 -04:00
Montana
5692088837 Add Save Button to edit version of team table
-adds base form component
-Save button does not function properly yet
-alphabetizes imports on base-form
2019-05-06 15:15:03 -04:00
Montana
c1ae5129bc Add edit template with dropdown selectors 2019-05-06 15:15:03 -04:00
George Drummond
334f3d8ed3
Move js to form component 2019-05-03 14:48:27 -04:00
George Drummond
645c217fbe
Prevent submitting the form if invalid 2019-05-03 14:23:47 -04:00
George Drummond
430a6493f0
Get error state in edit environment name form working 2019-05-03 14:23:47 -04:00
George Drummond
77aaf301c2
Merge pull request #790 from dod-ccpo/dod-notice
Add DoD Disclaimer
2019-05-01 11:40:19 -04:00
dandds
47b07c2bb5 nested checkbox component 2019-04-30 14:43:23 -04:00
dandds
0d5e0a3fa7 back button for new application member modal 2019-04-30 14:43:23 -04:00
dandds
fd1d0b527a Delete environments permission disabled by default in new app member form
It will be enabled when the user checks the "manage environments"
permission. This updates the Jinja and Vue checkbox input components so
that Vue can monitor the inpur state.
2019-04-30 14:43:23 -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
dandds
054d030e15 Vue binding for environment role selections.
The environment name will be grayed out until something besides the
default "no access" is selected.

Small changes to the application member subforms:
- filter for "None" as a string
- have nested forms inherit from FlaskForm; each nested form adds its
  own validation error flash otherwise if there are validation problems
2019-04-30 14:43:23 -04:00
dandds
9c84e30172 frontend for adding new application member
- updated styling
- eliminated stray <form> tag in application team template
2019-04-30 14:43:23 -04:00
George Drummond
5835068c75
Use more specific naming 2019-04-30 10:34:30 -04:00
George Drummond
cc482fa0e0
Alert should only display when login with CAC button is clicked 2019-04-30 10:24:16 -04:00
George Drummond
4d47c881b6
Add DoD Disclaimer 2019-04-29 15:52:28 -04:00
George Drummond
079672c818
Update application environments 2019-04-29 10:46:21 -04:00
George Drummond
98f8593c4c
Merge pull request #780 from dod-ccpo/toggle-multiple
Toggle multiple
2019-04-22 11:45:30 -04:00
Montana
97a7d6b205 Remove unused parent_uid references 2019-04-22 10:05:44 -04:00
Montana
cd85ae8e5f use this._uid to check parent 2019-04-22 09:21:33 -04:00
George Drummond
847c300d33
Multiple drop down sections for toggler 2019-04-19 14:25:34 -04:00
Montana
629dd674b9 Refactor emitters 2019-04-19 11:49:41 -04:00
Montana
39975a0a31 Verify that the modal form is only concerned with its own fields 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
309d959c79 Move panel footer outside of base-form so the modals will work 2019-04-16 11:22:43 -04:00
dandds
2b06e281ae confirmation modal for deleting an application
- adds delete-confirmation Vue component
- refactors some button styles to make them globally available
2019-04-15 16:03:32 -04:00
Montana
1d46ecebd1 Add environments-table component 2019-04-11 15:54:56 -04:00
leigh-mil
1e6d26de82 Emit event from root when modal closes 2019-04-10 07:42:07 -04:00
leigh-mil
85c99182f7 Refactor modals so they work when nested in other components and fix BaseForm so it doesn't repeat ModalMixin logic 2019-04-08 09:42:35 -04:00
leigh-mil
5aae1691a2 Add modal functionality to BaseForm, use BaseForm and SaveButton in Portfolio members form 2019-04-08 09:42:35 -04:00
leigh-mil
850153a517 Change variable names to be clearer 2019-04-06 16:57:12 -04:00
leigh-mil
3f2beb44b2 Refactor emit field change into a utility function 2019-04-06 16:57:12 -04:00
leigh-mil
1aaf4421ab Remove unnecessary savebutton vue component and create SaveButton Macro 2019-04-06 16:57:12 -04:00
leigh-mil
02cc18a93f Add emiter to all input fields 2019-04-06 16:57:12 -04:00
leigh-mil
8b10732ac9 Use base form and save button on all forms 2019-04-06 16:57:12 -04:00
leigh-mil
637efc5ab5 Update validation on new application form to skip the save button 2019-04-06 16:57:12 -04:00
leigh-mil
ade3f38b5e Update edit user form to use base-form and update date-selector to emit changes 2019-04-06 16:57:12 -04:00
leigh-mil
7fca19ebee Create base-form vue component 2019-04-06 16:57:12 -04:00
leigh-mil
3ece7b4c89 Add vue component for save button and integrate into FormMixin 2019-04-06 16:57:12 -04:00
dandds
77ed7d9ab6 prevent premature modal form submission with enter click 2019-03-27 14:07:06 -04:00
dandds
21a1cc4c1f various small fixes 2019-03-26 17:08:45 -04:00
dandds
c7ac967870 present flash message when new portfolio member is added 2019-03-26 15:49:06 -04:00
dandds
836fdbdcd2 reset modal state on close for new portfolio member modal 2019-03-26 15:48:31 -04:00