Merge pull request #390 from dod-ccpo/add-copy
Add description to Environment Roles Modal
This commit is contained in:
commit
10d90a0e6b
@ -155,6 +155,11 @@ ENVIRONMENT_ROLES = [
|
|||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
ENV_ROLE_MODAL_DESCRIPTION = {
|
||||||
|
"header": "Assign Environment Role",
|
||||||
|
"body": "An environment role determines the permissions a member of the workspace assumes when using the JEDI Cloud.<br/><br/>A member may have different environment roles across different projects. A member can only have one assigned environment role in a given environment.",
|
||||||
|
}
|
||||||
|
|
||||||
FUNDING_TYPES = [
|
FUNDING_TYPES = [
|
||||||
("", "- Select -"),
|
("", "- Select -"),
|
||||||
("RDTE", "Research, Development, Testing & Evaluation (RDT&E)"),
|
("RDTE", "Research, Development, Testing & Evaluation (RDT&E)"),
|
||||||
|
@ -21,7 +21,7 @@ from atst.forms.new_project import NewProjectForm
|
|||||||
from atst.forms.new_member import NewMemberForm
|
from atst.forms.new_member import NewMemberForm
|
||||||
from atst.forms.edit_member import EditMemberForm
|
from atst.forms.edit_member import EditMemberForm
|
||||||
from atst.forms.workspace import WorkspaceForm
|
from atst.forms.workspace import WorkspaceForm
|
||||||
from atst.forms.data import ENVIRONMENT_ROLES
|
from atst.forms.data import ENVIRONMENT_ROLES, ENV_ROLE_MODAL_DESCRIPTION
|
||||||
from atst.domain.authz import Authorization
|
from atst.domain.authz import Authorization
|
||||||
from atst.models.permissions import Permissions
|
from atst.models.permissions import Permissions
|
||||||
|
|
||||||
@ -238,6 +238,7 @@ def view_member(workspace_id, member_id):
|
|||||||
projects=projects,
|
projects=projects,
|
||||||
form=form,
|
form=form,
|
||||||
choices=ENVIRONMENT_ROLES,
|
choices=ENVIRONMENT_ROLES,
|
||||||
|
env_role_modal_description=ENV_ROLE_MODAL_DESCRIPTION,
|
||||||
EnvironmentRoles=EnvironmentRoles,
|
EnvironmentRoles=EnvironmentRoles,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -78,6 +78,14 @@
|
|||||||
<button v-on:click="openModal('{{ env.name }}RolesModal')" type="button" class="icon-link">set role</button>
|
<button v-on:click="openModal('{{ env.name }}RolesModal')" type="button" class="icon-link">set role</button>
|
||||||
{% call Modal(name=env.name + 'RolesModal', dismissable=False) %}
|
{% call Modal(name=env.name + 'RolesModal', dismissable=False) %}
|
||||||
<div class='block-list'>
|
<div class='block-list'>
|
||||||
|
<div class='block-list__header'>
|
||||||
|
<div>
|
||||||
|
{% if env_role_modal_description %}
|
||||||
|
<h1>{{ env_role_modal_description.header }}</h1>
|
||||||
|
<p>{{ env_role_modal_description.body | safe }}</p>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<ul>
|
<ul>
|
||||||
{% for choice in choices %}
|
{% for choice in choices %}
|
||||||
<li class='block-list__item block-list__item--selectable'>
|
<li class='block-list__item block-list__item--selectable'>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user