Files
notifications-admin/app/templates/views/manage-users/edit-user-email.html
Katie Smith d689b031a2 Allow non-gov email addresses to be changed to gov email addresses
When a user's email address is updated, we not allowing it to be changed
to a non-government email address. We now allow a non-gov email address
to be changed to another non-gov email address. Government email
addresses still cannot be changed to non-government email addresses.

Also fixes the link in the error message on the ChangeEmailAddress form -
this was being escaped before.
2019-04-25 10:36:04 +01:00

28 lines
871 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% extends "withnav_template.html" %}
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/form.html" import form_wrapper %}
{% block per_page_title %}
Change team members email address
{% endblock %}
{% block maincolumn_content %}
<h1 class="heading-large">Change team members email address</h1>
<p id="user_name">This will change the email address for {{ user.name }}.</p>
<div class="grid-row">
<div class="column-three-quarters">
{% call form_wrapper() %}
{{ textbox(form.email_address, safe_error_message=True) }}
{{ page_footer(
'Save',
back_link=url_for('.edit_user_permissions', service_id=service_id, user_id=user.id),
back_link_text="Back"
) }}
{% endcall %}
</div>
</div>
{% endblock %}