diff --git a/atst/forms/data.py b/atst/forms/data.py index b2029d88..8c42bf11 100644 --- a/atst/forms/data.py +++ b/atst/forms/data.py @@ -187,7 +187,13 @@ ENVIRONMENT_ROLES = [ ] ENVIRONMENT_ROLES = [ - (None, {"name": "No access", "description": "No environment access."}), + ( + "no_access", + { + "name": "no access", + "description": "No environment access." + } + ), ( "database_admin", { diff --git a/js/components/forms/edit_workspace_member.js b/js/components/forms/edit_workspace_member.js index 73a87c62..08ea5d14 100644 --- a/js/components/forms/edit_workspace_member.js +++ b/js/components/forms/edit_workspace_member.js @@ -18,7 +18,8 @@ export default { props: { choices: Array, - initialData: Object + initialData: String + }, data: function () { @@ -28,6 +29,11 @@ export default { methods: { change: function (e) { this.value = e.target.value - } + }, + // method to map ugly name to human readable name here + }, + + mounted: function () { + console.log(this.initialData, this.choices) } } diff --git a/templates/workspaces/members/edit.html b/templates/workspaces/members/edit.html index 71cfe8b4..c1736eb8 100644 --- a/templates/workspaces/members/edit.html +++ b/templates/workspaces/members/edit.html @@ -7,137 +7,143 @@ {% block content %} - -
- {{ form.csrf_token }} + + {{ form.csrf_token }} -
-
-

{{ member.user.full_name }}

+
+
+

{{ member.user.full_name }}

-
- {{ Selector(form.workspace_role) }} -
+
+ {{ Selector(form.workspace_role) }} +
-
-
-
-
-
DOD ID:
-
{{ member.user.dod_id }}
-
-
-
Email:
-
{{ member.user.email }}
-
-
- edit account details -
- -
-
-

Manage Access
Grant access to an environment

-
+
+
+
+
DOD ID:
+
{{ member.user.dod_id }}
+
+
+
Email:
+
{{ member.user.email }}
+
+
+ edit account details
+
- + + {% for project in projects %} +
+ +
+ {% endfor %} -
- - - {{ Icon('x') }} - Cancel - -
+
+ + + {{ Icon('x') }} + Cancel + +
-