run formatter

This commit is contained in:
Andrew Croce 2018-08-31 09:09:48 -04:00
parent 0df7c0f56a
commit f0de0eddb4
2 changed files with 27 additions and 10 deletions

View File

@ -104,9 +104,29 @@ COMPLETION_DATE_RANGES = [
]
WORKSPACE_ROLES = [
("owner", "Workspace Owner", "Can add, edit, deactivate access to all projects, environments, and members. Can view budget reports. Can start and edit JEDI Cloud requests."),
("admin", "Administrator", "Can add and edit projects, environments, members, but cannot deactivate. Cannot view budget reports or JEDI Cloud requests."),
("developer", "Developer", "Can view only the projects and environments they are granted access to. Can also view members associated with each environment."),
("billing_auditor", "Billing Auditor", "Can view only the projects and environments they are granted access to. Can also view budgets and reports associated with the workspace."),
("security_auditor", "Security Auditor", "Can view only the projects and environments they are granted access to. Can also view activity logs."),
(
"owner",
"Workspace Owner",
"Can add, edit, deactivate access to all projects, environments, and members. Can view budget reports. Can start and edit JEDI Cloud requests.",
),
(
"admin",
"Administrator",
"Can add and edit projects, environments, members, but cannot deactivate. Cannot view budget reports or JEDI Cloud requests.",
),
(
"developer",
"Developer",
"Can view only the projects and environments they are granted access to. Can also view members associated with each environment.",
),
(
"billing_auditor",
"Billing Auditor",
"Can view only the projects and environments they are granted access to. Can also view budgets and reports associated with the workspace.",
),
(
"security_auditor",
"Security Auditor",
"Can view only the projects and environments they are granted access to. Can also view activity logs.",
),
]

View File

@ -6,7 +6,7 @@ from wtforms.validators import Required, Email, Length
from atst.forms.validators import IsNumber
from atst.forms.fields import SelectField
from .data import (WORKSPACE_ROLES)
from .data import WORKSPACE_ROLES
class NewMemberForm(Form):
@ -16,8 +16,5 @@ class NewMemberForm(Form):
email = EmailField("Email Address", validators=[Required(), Email()])
dod_id = StringField("DOD ID", validators=[Required(), Length(min=10), IsNumber()])
workspace_role = SelectField(
"Workspace Role",
choices=WORKSPACE_ROLES,
validators=[Required()],
default=''
"Workspace Role", choices=WORKSPACE_ROLES, validators=[Required()], default=""
)