Update workspace roles

This commit is contained in:
luis cielak 2018-09-13 10:37:23 -04:00 committed by luisgov
parent 9d52353374
commit 1badea30b7
3 changed files with 8 additions and 7 deletions

View File

@ -108,35 +108,35 @@ WORKSPACE_ROLES = [
"owner", "owner",
{ {
"name": "Workspace 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.", "description": "Adds, edits, deactivates access to all projects, environments, and members. Views budget reports. Initiates and edits JEDI Cloud requests.",
}, },
), ),
( (
"admin", "admin",
{ {
"name": "Administrator", "name": "Administrator",
"description": "Can add and edit projects, environments, members, but cannot deactivate. Cannot view budget reports or JEDI Cloud requests.", "description": "Adds and edits projects, environments, members, but cannot deactivate. Cannot view budget reports or JEDI Cloud requests.",
}, },
), ),
( (
"developer", "developer",
{ {
"name": "Developer", "name": "Developer",
"description": "Can view only the projects and environments they are granted access to. Can also view members associated with each environment.", "description": "Views only the projects and environments they are granted access to. Can also view members associated with each environment.",
}, },
), ),
( (
"billing_auditor", "billing_auditor",
{ {
"name": "Billing Auditor", "name": "Billing Auditor",
"description": "Can view only the projects and environments they are granted access to. Can also view budgets and reports associated with the workspace.", "description": "Views only the projects and environments they are granted access to. Can also view budgets and reports associated with the workspace.",
}, },
), ),
( (
"security_auditor", "security_auditor",
{ {
"name": "Security Auditor", "name": "Security Auditor",
"description": "Can view only the projects and environments they are granted access to. Can also view activity logs.", "description": "Views only the projects and environments they are granted access to. Can also view activity logs.",
}, },
), ),
] ]

View File

@ -16,5 +16,6 @@ class NewMemberForm(Form):
email = EmailField("Email Address", validators=[Required(), Email()]) email = EmailField("Email Address", validators=[Required(), Email()])
dod_id = StringField("DOD ID", validators=[Required(), Length(min=10), IsNumber()]) dod_id = StringField("DOD ID", validators=[Required(), Length(min=10), IsNumber()])
workspace_role = SelectField( workspace_role = SelectField(
"Workspace Role", choices=WORKSPACE_ROLES, validators=[Required()], default="" "Workspace Role", choices=WORKSPACE_ROLES, validators=[Required()], default="",
description="The workspace role controls whether a member is permitted to organize a workspace into projects and environments, add members to this workspace, and view billing information."
) )

View File

@ -13,7 +13,7 @@
<fieldset v-bind:class="['selector usa-input', { 'usa-input--error': initialErrors }]"> <fieldset v-bind:class="['selector usa-input', { 'usa-input--error': initialErrors }]">
<v-popover v-bind:container='false' ref='popover'> <v-popover v-bind:container='false' ref='popover'>
<legend> <legend>
{{ field.label | striptags }} <div class="usa-input__title">{{ field.label | striptags }}</div>
{% if field.description %} {% if field.description %}
<span class='usa-input__help'>{{ field.description | safe }}</span> <span class='usa-input__help'>{{ field.description | safe }}</span>