display error alert for users who had DOD ID conflict when accepting workspace invitation

This commit is contained in:
dandds
2018-11-05 09:42:13 -05:00
parent 0c7fb4ca9b
commit 5fc9dbd177
3 changed files with 13 additions and 0 deletions

View File

@@ -4,9 +4,14 @@
{% 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 %}
{% 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 method="POST" action="{{ url_for('workspaces.update_member', workspace_id=workspace.id, member_id=member.user_id) }}" autocomplete="false">
{{ form.csrf_token }}