Commit Graph

119 Commits

Author SHA1 Message Date
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
c4ad7b4378 Make portfolio invitation specific to portfolio
- add a base domain class
- extract shared model code to mixin
- rename invitation classes
- invitation model relationship to portfolio_role name is now more
  generic "role"
2019-04-30 14:41:55 -04:00
dandds
782a532c32 reorganize task order routes 2019-04-22 07:20:07 -04:00
rachel-dtr
193d5c2a43 Updating language throughout TO process 2019-04-18 11:31:33 -04:00
dandds
c1df245800 Scope access to applications, task orders, and environment roles.
These resources should be scoped to the portfolio when accessed from
route functions.
2019-04-16 14:18:53 -04:00
dandds
29ec4a80af give access decorator override function a clearer name; exception -> override 2019-03-28 09:32:51 -04:00
dandds
746a5834c1 only pass one func to exception kwarg in access decorator 2019-03-22 06:33:01 -04:00
dandds
905f03342d remove permission from access decorator exception args 2019-03-22 06:33:01 -04:00
dandds
e07640db57 add messages to all route access decorators 2019-03-22 06:33:01 -04:00
dandds
4a0dd2d432 remove unused domain methods and arguments 2019-03-22 06:31:20 -04:00
dandds
de7c69bde7 apply access decorator to routes 2019-03-22 06:30:21 -04:00
leigh-mil
458a99ea4b Merge pull request #702 from dod-ccpo/form-fix-existing-portfolio
Persist data in new TO for existing Portfolio
2019-03-15 09:51:04 -04:00
leigh-mil
5f30b347c7 Merge pull request #697 from dod-ccpo/persist-invite-officers
Persist Officer invite checkbox on a TO
2019-03-13 17:00:12 -04:00
leigh-mil
38a1dd1b6d Move initializing the form to inside the if statement so it doesn't get overwritten 2019-03-13 16:41:42 -04:00
leigh-mil
4c282354bd Merge pull request #696 from dod-ccpo/form-page-complete-indicator
Fix TO Form progress bar
2019-03-13 09:58:05 -04:00
leigh-mil
1998bf6600 Merge pull request #695 from dod-ccpo/ko-signature-check
Add check to see if KO can sign the TO and update tests
2019-03-12 09:50:34 -04:00
leigh-mil
ed08bdfd52 Check if officer has been invited to the TO 2019-03-11 16:09:03 -04:00
leigh-mil
1b642e22f6 Add in default values and filters to the TO Forms 2019-03-11 15:18:52 -04:00
dandds
f57af648f8 small refactors to new TO workflow classes 2019-03-11 10:12:17 -04:00
Montana
1b329b9659 Move form logic into ShowTaskOrderPortfolio class 2019-03-08 10:54:52 -05:00
Montana
24886fc482 Add portfolio to ShowTaskOrderWorkflow class 2019-03-08 10:54:52 -05:00
Montana
aa206192be Delete unused branch of logic in pr_attributes_read_oly() 2019-03-08 10:54:52 -05:00
Montana
1dbdb35e32 Fix redundant task order lookup 2019-03-08 10:54:52 -05:00
Montana
970eb8aba3 Make portfolio_id an init kwarg on ShowTaskOrderWorkflow class 2019-03-08 10:54:52 -05:00
Montana
acf70d1144 Rename method 2019-03-08 10:54:51 -05:00
Montana
7fb9a7572c Preserve data on back navigation 2019-03-08 10:54:51 -05:00
Montana
93545d2dc9 Use new form 2019-03-08 10:54:51 -05:00
Montana
be192081bc Add two workflow methods 2019-03-08 10:54:51 -05: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
Montana
e8a7131948 Send portfolio to template instead of using query param 2019-03-08 10:54:51 -05:00
Montana
68a1ffde8b Portfolio Name and Defense Component read only on TOs that are started from existing portfolios 2019-03-08 10:54:51 -05:00
leigh-mil
521d98562b Add check to see if KO can sign the TO and update tests 2019-03-08 10:28:36 -05:00
George Drummond
17c175b698 Invite Officer From Manage Invitations Page 2019-02-28 11:44:07 -05:00
montana-mil
3849a69e99 Merge pull request #677 from dod-ccpo/move-component-to-portfolio
Move defense_component to portfolios model
2019-02-27 10:05:30 -05:00
Montana
7ee8858cc7 Add defense_component to Portfolio when new task_order is created without an existing portfolio 2019-02-26 11:29:16 -05:00
George Drummond
46345f9856 Break KO signing into two steps 2019-02-26 10:02:40 -05:00
Montana
772ca75688 Refactor form action for new task order templates 2019-02-21 14:38:03 -05:00
Montana
12706c3d45 Refactor task order route to check for request args instead of request.referrer 2019-02-21 14:38:03 -05:00
Montana
6628a1441e Refactor redirect to make more readable 2019-02-21 14:38:03 -05:00
Montana
4ef8df016d Redirect user back to KO Review page if that is where they came from 2019-02-21 14:38:03 -05:00
George Drummond
7d4e14dff2 Display flash message on review page that TO is a draft 2019-02-15 14:28:14 -05:00
George Drummond
e3939dfd09 Form fixes 2019-02-14 10:31:04 -05:00
Patrick Smith
1c21816810 Add link to download official TO pdf 2019-02-13 10:24:08 -05:00
George Drummond
eb0d83b6c3 Flash message 2019-02-12 10:08:28 -05:00
George Drummond
9715528f62 Redirect on successful save 2019-02-12 10:08:28 -05:00
George Drummond
04fea25394 Pass signer_dod_id and signed_at directly to the update method 2019-02-12 10:06:57 -05:00
George Drummond
58ff83ace7 Clean up http_form.request 2019-02-12 10:06:57 -05:00
George Drummond
8689748d10 Add in basic implementation of the KO TO signature page 2019-02-12 10:06:57 -05:00
dandds
3cc9a918e8 add error message when user prematurely submits TO form 2019-02-11 15:13:36 -05:00
dandds
95fa71fc03 only send officer invitations if MO portion of TO form is complete 2019-02-11 15:13:36 -05:00