Files
notifications-admin/app/templates/views/service-settings/email-reply-to/_verify-updates.html
Pea Tyczynska 8286e86a9e Harmonise behaviour of Change reply-to email address
So it acts the same on inital edit and after verification failed.
And also so it does not allow to untick default address in the
latter situation.
2019-05-29 17:02:57 +01:00

69 lines
2.6 KiB
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.
{% from "components/banner.html" import banner, banner_wrapper %}
{% from "components/textbox.html" import textbox %}
{% from "components/checkbox.html" import checkbox %}
{% from "components/page-header.html" import page_header %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/form.html" import form_wrapper %}
<div class="ajax-block-container">
{% if verification_status == "pending" %}
<p>
Were checking that {{ reply_to_email_address }} is a real email address.
</p>
<p>
<span class='loading-indicator'>This can take a minute</span>
</p>
<p class="js-hidden">
<a 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>
</p>
{% elif verification_status == "success" %}
{{ banner("{} is ready to use".format(reply_to_email_address), type='default', with_tick=True) }}
<div class="js-stick-at-bottom-when-scrolling">
<a href="{{ url_for('.service_email_reply_to', service_id=service_id) }}" class="button">Continue</a>
</div>
{% elif verification_status == "failure" %}
{% 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 }}">
Theres a problem with your reply-to address
</h2>
<p>
We sent an email to {{ reply_to_email_address }} but it wasnt delivered.
</p>
<p>
You can try again, or use a different address.
</p>
{% endcall %}
<p>
Let recipients send replies to a shared inbox thats managed by your team.
</p>
<p>
Do not use your own email address for replies.
</p>
{% if replace and replace != "False" %}
{% 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='2-3',
safe_error_message=True
) }}
{% if form.is_default.data %}
<p class="form-group">
This is the default reply-to address for {{ current_service.name }} emails
</p>
{% else %}
<div class="form-group">
{{ checkbox(form.is_default) }}
</div>
{% endif %}
{{ page_footer('Try again') }}
{% endcall %}
{% endif %}
</div>