Delete an application member

This commit is contained in:
George Drummond
2019-05-13 10:14:48 -04:00
parent 547d813970
commit 27a4ef12c6
9 changed files with 167 additions and 9 deletions

View File

@@ -3,6 +3,7 @@
{{ team_form.csrf_token }}
{% for member_form in team_form.members %}
{% set delete_modal_id = "delete-user-{}".format(member_form.id) %}
{% set environment_roles_form = member_form.environment_roles %}
{% set permissions_form = member_form.permission_sets %}
@@ -38,6 +39,13 @@
{{ environment_form.environment_name.data }}
</li>
{% endfor %}
{% if user_can(permissions.EDIT_APPLICATION_MEMBER) %}
<li class="accordion-table__item__expanded action-group">
<span class="usa-button button-danger" v-on:click="openModal('{{ delete_modal_id }}')">
{{ "portfolios.members.archive_button" | translate }}
</span>
</li>
{% endif %}
</ul>
{% endcall %}
{{ member_form.user_id() }}