2019-05-20 14:21:57 +01:00
|
|
|
|
{% from "components/banner.html" import banner, banner_wrapper %}
|
2019-05-20 17:32:40 +01:00
|
|
|
|
{% from "components/page-footer.html" import page_footer %}
|
|
|
|
|
|
{% from "components/form.html" import form_wrapper %}
|
2023-08-30 11:07:38 -04:00
|
|
|
|
{% from "components/components/button/macro.njk" import usaButton %}
|
2019-05-14 17:53:00 +01:00
|
|
|
|
|
|
|
|
|
|
<div class="ajax-block-container">
|
|
|
|
|
|
{% if verification_status == "pending" %}
|
2023-06-06 15:28:24 -04:00
|
|
|
|
<p>
|
2019-05-20 14:21:57 +01:00
|
|
|
|
We’re checking that ‘{{ reply_to_email_address }}’ is a real email address.
|
2019-05-14 17:53:00 +01:00
|
|
|
|
</p>
|
2023-06-06 15:28:24 -04:00
|
|
|
|
<p>
|
2020-05-29 17:11:01 +01:00
|
|
|
|
<span class='loading-indicator'>This can take a minute</span>
|
2019-05-14 17:53:00 +01:00
|
|
|
|
</p>
|
|
|
|
|
|
|
2023-08-25 11:49:13 -04:00
|
|
|
|
<p class="js-hidden usa-body">
|
2023-08-08 16:19:17 -04:00
|
|
|
|
<a class="usa-link" href="{{ url_for('main.service_verify_reply_to_address', service_id=service_id, notification_id=notification_id, is_default=is_default, replace=replace) }}">Refresh</a>
|
2019-05-14 17:53:00 +01:00
|
|
|
|
</p>
|
|
|
|
|
|
{% elif verification_status == "success" %}
|
2019-05-20 14:21:57 +01:00
|
|
|
|
{{ banner("‘{}’ is ready to use".format(reply_to_email_address), type='default', with_tick=True) }}
|
2019-05-20 15:00:11 +01:00
|
|
|
|
<div class="js-stick-at-bottom-when-scrolling">
|
2023-08-30 11:07:38 -04:00
|
|
|
|
{{ usaButton({
|
2020-01-30 14:01:13 +00:00
|
|
|
|
"element": "a",
|
|
|
|
|
|
"text": "Continue",
|
|
|
|
|
|
"href": url_for('.service_email_reply_to', service_id=service_id)
|
|
|
|
|
|
}) }}
|
2019-05-20 15:00:11 +01:00
|
|
|
|
</div>
|
2019-05-14 17:53:00 +01:00
|
|
|
|
{% elif verification_status == "failure" %}
|
2025-10-06 09:38:54 -04:00
|
|
|
|
<div class="margin-bottom-3">
|
2019-06-04 14:03:19 +01:00
|
|
|
|
{% call banner_wrapper(type='dangerous') %}
|
|
|
|
|
|
<h2 class='banner-title' data-module="track-error" data-error-type="reply-to-email-not-working" data-error-label="{{ upload_id }}">
|
|
|
|
|
|
There’s a problem with your reply-to address
|
|
|
|
|
|
</h2>
|
2023-06-06 15:28:24 -04:00
|
|
|
|
<p>
|
2019-09-23 10:52:17 +01:00
|
|
|
|
We sent an email to ‘{{ reply_to_email_address }}’ but it could not be delivered.
|
2019-06-04 14:03:19 +01:00
|
|
|
|
</p>
|
2023-06-06 15:28:24 -04:00
|
|
|
|
<p>
|
2019-06-04 14:03:19 +01:00
|
|
|
|
You can try again, or use a different address.
|
|
|
|
|
|
</p>
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
</div>
|
2019-06-05 16:32:08 +01:00
|
|
|
|
{% if replace %}
|
2019-05-21 13:10:17 +01:00
|
|
|
|
{% 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 %}
|
2019-05-20 17:32:40 +01:00
|
|
|
|
{% call form_wrapper(
|
2019-05-21 13:10:17 +01:00
|
|
|
|
action = form_url
|
2019-05-20 17:32:40 +01:00
|
|
|
|
) %}
|
2020-08-07 15:16:04 +01:00
|
|
|
|
{{ form.email_address(
|
|
|
|
|
|
param_extensions={
|
|
|
|
|
|
"hint": {"text": "This should be a shared inbox managed by your team, not your own email address"},
|
2023-08-17 15:13:26 -04:00
|
|
|
|
"classes": ""
|
2020-08-07 15:16:04 +01:00
|
|
|
|
},
|
|
|
|
|
|
error_message_with_html=True
|
2019-05-20 17:32:40 +01:00
|
|
|
|
) }}
|
2019-06-05 16:32:08 +01:00
|
|
|
|
{% if not first_email_address and not existing_is_default %}
|
2020-04-09 16:31:19 +01:00
|
|
|
|
{{ form.is_default }}
|
2019-05-20 17:32:40 +01:00
|
|
|
|
{% endif %}
|
|
|
|
|
|
{{ page_footer('Try again') }}
|
|
|
|
|
|
{% endcall %}
|
2019-05-14 17:53:00 +01:00
|
|
|
|
{% endif %}
|
|
|
|
|
|
</div>
|