Commit Graph

452 Commits

Author SHA1 Message Date
Montana
86c6044ca1 Catch None values for IsNumber validator 2019-05-15 11:41:03 -04:00
leigh-mil
546e04555d Update role div height
Move serialization into the route
change member.role to member.role_name in form and route
Return 400 for invalid form submission
2019-05-14 11:00:14 -04:00
leigh-mil
addf2e97a1 Update form to nest all envs in one form 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
Montana
74422c57aa Use common "View" for translations
-also pipe translate in injected html for a flash
2019-05-13 09:28:47 -04:00
rachel-dtr
39a0716028 Updating content across the site 2019-05-10 10:28:02 -04:00
Montana
644acc68fa Refactor application team routes
- pulling out helper functions for constructing forms
- return 400 for form validation errors
- "Yes" appears green on the read only version
2019-05-07 16:21:17 -04:00
Montana
d5307b440f Make user_id required and add post tests
- raise an exception in ApplicationRoles.get()
- permission_sets is not changed if bad data is sent
2019-05-07 16:21:17 -04:00
Montana
526bcb1661 Update tests 2019-05-07 09:31:04 -04:00
Montana
de41afa935 Add form to template
- do not use None as a dropdown value because it was causing issues
- cleans up some comments
2019-05-06 15:16:48 -04:00
dandds
0da0f6a0ae WIP: use team form for application team page 2019-05-06 15:15:03 -04:00
dandds
926f89d975 Form for application team member table.
Nested form for each member, with child forms for environment roles and
permissions.
2019-05-06 15:15:03 -04:00
dandds
4f304d747e Small tweaks for adding a new application member:
- raise specific invitation type if invite not found in invitation domain classes
- more terse assignments of defaults in invitation service, smh
- terser margin expression for inline input fields
- sass formatting
- use translation for cancel link
- oxford comma for app team management permission explanation
- do not format environment roles with hyphens for role selection
- generalize some additional methods in the invitation domain base class
- use plain atst.models import path
2019-04-30 17:14:58 -04:00
dandds
5db4d9bab3 formatting, cleanup from rebase 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
dandds
ade77e6b91 Route for adding new application member
- domain method for creating a new application member
- ApplicationInvitations domain class
- nested form for adding a new user that holds user data, application
  permission sets, and environment roles
- Invitation service can infer invitation type based on role it's given
- new invitation email templates
2019-04-30 14:41:55 -04:00
dandds
dd0b184bc2 extract new member form into standalone form class 2019-04-30 14:41:55 -04:00
George Drummond
079672c818 Update application environments 2019-04-29 10:46:21 -04:00
leigh-mil
3c81150909 Nested form inherits from FlaskForm to avoid redundancy 2019-04-25 10:47:39 -04:00
leigh-mil
e7903ed000 Move remove_empty_string filter to BaseForm and use the filter to coerce the role to be None 2019-04-25 10:47:39 -04:00
leigh-mil
5e415edaef Update form to handle No access 2019-04-25 10:47:39 -04:00
leigh-mil
f6577c0cd6 Update name of env form 2019-04-25 10:47:39 -04:00
leigh-mil
5de1b859db Create form class for app env settings 2019-04-25 10:47:39 -04:00
rachel-dtr
5c8d12c617 Adding to translations file 2019-04-16 15:06:18 -04:00
rachel-dtr
1315e971fc Updating terms and capitalization 2019-04-16 15:06:18 -04:00
George Drummond
090e13f083 Update Point of Contact 2019-04-08 13:31:00 -04:00
rachel-dtr
56f0b19b1f Merge pull request #736 from dod-ccpo/user-profile
Updating the AT-AT user profile content
2019-04-02 16:47:46 -04:00
rachel-dtr
fe4f0e63ac Updating the AT-AT user profile content 2019-04-02 14:39:30 -04:00
montana-mil
91c3cc665f Merge pull request #728 from dod-ccpo/edit-perms-pf-members
Edit Portfolio Members Access Levels
2019-04-02 11:14:02 -04:00
rachel-dtr
7109860553 Continuing to clean up capitalization 2019-04-02 10:34:13 -04:00
Montana
a152c66e61 Add hidden input for passing dod id in form 2019-04-02 10:17:16 -04:00
rachel-dtr
4403c338ee Updating minor content inconsistencies 2019-04-01 13:34:39 -04:00
dandds
1bc434be8c multi-step form modal with basic implementation for adding new member 2019-03-26 15:46:48 -04:00
Montana
dd4dc9de86 Render dropdowns for permissions 2019-03-26 14:41:49 -04:00
dandds
78aa2dfcc6 permission set names should be constants on the domain class 2019-03-15 07:14:49 -04:00
dandds
d3c3209fc0 cleanup unused portfolio roles 2019-03-15 07:14:49 -04:00
dandds
1a122c5335 rename role -> permission_set everywhere 2019-03-15 07:14:49 -04:00
dandds
720c227c32 remove frontend role selection for edit member 2019-03-15 07:14:49 -04:00
dandds
0eb2d4fa3c remove frontend role selection for new member 2019-03-15 07:14:49 -04:00
dandds
8af3986a2d set portfolio member permission sets 2019-03-15 07:14:49 -04:00
leigh-mil
e09162fd56 Fix rebase issue 2019-03-12 17:50:45 -04:00
leigh-mil
9277e5e4d0 Move filter into a function 2019-03-12 10:40:46 -04:00
leigh-mil
21a0168d7e Move filters and default to the AppInfoForm intead of parent form 2019-03-12 10:39:08 -04:00
leigh-mil
1b642e22f6 Add in default values and filters to the TO Forms 2019-03-11 15:18:52 -04:00
leigh-mil
ed20c6a6a2 When saving a RadioField to the DB, check that what is being saved is one of the options 2019-03-11 15:17:18 -04:00
Montana
85fcee005e Do not require portfolio name and defense component when building a new TO from a portfolio 2019-03-08 10:54:51 -05:00
leigh-mil
ee994e2627 All forms inherit from BaseForm 2019-03-06 15:36:53 -05:00
leigh-mil
87aa5c4c94 Remove empty fields from list items
Add notes
2019-03-06 15:36:53 -05:00
leigh-mil
dab13034d5 Combine form classes and rename as BaseForm 2019-03-06 15:36:53 -05:00