Catch environment role selection

This commit is contained in:
Montana
2018-09-10 16:11:39 -04:00
parent 5b973ab1e4
commit 04672b9aeb
4 changed files with 26 additions and 2 deletions

View File

@@ -186,6 +186,23 @@ ENVIRONMENT_ROLES = [
),
]
ENVIRONMENT_ROLES = [
(
"developer",
{
"name": "Developer",
"description": "Configures cloud-based IaaS and PaaS computing, networking, and storage services.",
},
),
(
"owner",
{
"name": "Workspace Owner",
"description": "Can add, edit, deactivate access to all projects, environments, and members. Can view budget reports. Can start and edit JEDI Cloud requests.",
},
),
]
FUNDING_TYPES = [
("", "- Select -"),
("RDTE", "Research, Development, Testing & Evaluation (RDT&E)"),

View File

@@ -3,7 +3,7 @@ from wtforms.validators import Optional
from atst.forms.fields import SelectField
from .data import WORKSPACE_ROLES
from .data import WORKSPACE_ROLES, ENVIRONMENT_ROLES
class EditMemberForm(Form):
@@ -11,3 +11,7 @@ class EditMemberForm(Form):
workspace_role = SelectField(
"Workspace Role", choices=WORKSPACE_ROLES, validators=[Optional()]
)
environment_role = SelectField(
"Environment Role", choices=ENVIRONMENT_ROLES, validators=[Optional()]
)