Add in alert for when user isn't found
This commit is contained in:
parent
811a498bf4
commit
9f54501df4
@ -4,32 +4,45 @@
|
||||
{% from "components/text_input.html" import TextInput %}
|
||||
|
||||
{% block content %}
|
||||
{% set ccpo_user_form = "add-ccpo-user-form" %}
|
||||
{% if new_user %}
|
||||
{% set ccpo_user_form = "add-ccpo-user-form" %}
|
||||
|
||||
{% call Alert('Confirm new CCPO user') %}
|
||||
{% call Alert('Confirm new CCPO user') %}
|
||||
|
||||
<form id="{{ ccpo_user_form }}" action="{{ url_for('atst.confirm_new_ccpo_user') }}" method="POST">
|
||||
{{ form.csrf_token }}
|
||||
<input type="hidden" name="dod_id" value="{{ form.dod_id.data }}">
|
||||
<form id="{{ ccpo_user_form }}" action="{{ url_for('atst.confirm_new_ccpo_user') }}" method="POST">
|
||||
{{ form.csrf_token }}
|
||||
<input type="hidden" name="dod_id" value="{{ form.dod_id.data }}">
|
||||
<div>
|
||||
<p>
|
||||
Please confirm that the user details below match the user being given CCPO permissions.
|
||||
</p>
|
||||
<p>
|
||||
{{ new_user.full_name }}
|
||||
</p>
|
||||
<p>
|
||||
{{ new_user.email }}
|
||||
</p>
|
||||
</div>
|
||||
<div class='action-group'>
|
||||
<input
|
||||
type='submit'
|
||||
v-bind:disabled="invalid"
|
||||
class='action-group__action usa-button'
|
||||
value='Confirm and Add User'>
|
||||
<a class='action-group__action icon-link icon-link--default' href="{{ url_for('atst.ccpo_users') }}">{{ "common.cancel" | translate }}</a>
|
||||
</div>
|
||||
</form>
|
||||
{% endcall %}
|
||||
{% else %}
|
||||
{% call Alert('User not found') %}
|
||||
<div>
|
||||
<p>
|
||||
Please confirm that the user details below match the user being given CCPO permissions.
|
||||
</p>
|
||||
<p>
|
||||
{{ new_user.full_name }}
|
||||
</p>
|
||||
<p>
|
||||
{{ new_user.email }}
|
||||
</p>
|
||||
To add someone as a CCPO user, they must already have an ATAT account.
|
||||
<div class='action-group'>
|
||||
<a class='action-group__action icon-link icon-link--default' href="{{ url_for('atst.ccpo_users') }}">
|
||||
Return to list of CCPO users
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class='action-group'>
|
||||
<input
|
||||
type='submit'
|
||||
v-bind:disabled="invalid"
|
||||
class='action-group__action usa-button'
|
||||
value='Confirm and Add User'>
|
||||
<a class='action-group__action icon-link icon-link--default' href="{{ url_for('atst.ccpo_users') }}">{{ "common.cancel" | translate }}</a>
|
||||
</div>
|
||||
</form>
|
||||
{% endcall %}
|
||||
{% endcall %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user