{% extends "base.html" %} {% from "components/icon.html" import Icon %} {% from "components/modal.html" import Modal %} {% from "components/selector.html" import Selector %} {% from "components/options_input.html" import OptionsInput %} {% from "components/alert.html" import Alert %} {% from "components/confirmation_button.html" import ConfirmationButton %} {% block content %} {% if member.has_dod_id_error %} {{ Alert('CAC ID Error', message='The member attempted to accept this invite, but their CAC ID did not match the CAC ID you specified on the invite. Please confirm that the DOD ID is accurate.', level='error') }} {% endif %}
{{ form.csrf_token }}

{{ member.user.full_name }}

{{ Selector(form.workspace_role) }}
DOD ID:
{{ member.user.dod_id }}
Email:
{{ member.user.email }}
{% if editable %} edit account details {% endif %}
{% if member.latest_invitation.is_revokable %} {{ ConfirmationButton( "Revoke Invitation", url_for("workspaces.revoke_invitation", workspace_id=workspace.id, token=member.latest_invitation.token), ) }} {% endif %} {% if member.can_resend_invitation %} {{ ConfirmationButton ( "Resend Invitation", url_for("workspaces.resend_invitation", workspace_id=workspace.id, token=member.latest_invitation.token), confirm_msg="Are you sure? This will send an email to invite the user to join this workspace." )}} {% endif %} {% if can_revoke_access %} {{ ConfirmationButton ( "Remove Workspace Access", url_for("workspaces.revoke_access", workspace_id=workspace.id, member_id=member.id), confirm_msg="Are you sure? This will remove this user from the workspace.", )}} {% endif %}

Manage Access
Grant access to an environment

{% for project in projects %} {% set revoke_modal_name = (project.id|string) + 'RevokeModal' %}
{% endfor %}
{{ Icon('x') }} Cancel
{% endblock %}