{% from "components/banner.html" import banner, banner_wrapper %} {% from "components/textbox.html" import textbox %} {% from "components/checkbox.html" import checkbox %} {% from "components/page-footer.html" import page_footer %} {% from "components/form.html" import form_wrapper %} {% from "components/button/macro.njk" import govukButton %}
{% if verification_status == "pending" %}

We’re checking that ‘{{ reply_to_email_address }}’ is a real email address.

This can take a minute

Refresh

{% elif verification_status == "success" %} {{ banner("‘{}’ is ready to use".format(reply_to_email_address), type='default', with_tick=True) }}
{{ govukButton({ "element": "a", "text": "Continue", "href": url_for('.service_email_reply_to', service_id=service_id) }) }}
{% elif verification_status == "failure" %}
{% call banner_wrapper(type='dangerous') %}

We sent an email to ‘{{ reply_to_email_address }}’ but it could not be delivered.

You can try again, or use a different address.

{% endcall %}
{% if replace %} {% set form_url = url_for('.service_edit_email_reply_to', service_id=service_id, reply_to_email_id=replace) %} {% else %} {% set form_url = url_for('.service_add_email_reply_to', service_id=service_id) %} {% endif %} {% call form_wrapper( action = form_url ) %} {{ textbox( form.email_address, width='1-1', safe_error_message=True, hint='This should be a shared inbox managed by your team, not your own email address' ) }} {% if not first_email_address and not existing_is_default %}
{{ checkbox(form.is_default) }}
{% endif %} {{ page_footer('Try again') }} {% endcall %} {% endif %}