Change content for email reply-to verification journey

Earlier commits used placeholder content while awaiting official
content.
This commit is contained in:
Pea Tyczynska
2019-05-20 14:21:57 +01:00
parent 441c1f441b
commit 3251fc4e00
4 changed files with 29 additions and 15 deletions

View File

@@ -422,7 +422,9 @@ def service_add_email_reply_to(service_id):
'.service_verify_reply_to_address',
service_id=service_id,
notification_id=notification_id
) + "?is_default={}".format(is_default))
) + "?is_default={}".format(is_default)
+ "&is_new=True"
)
return render_template(
'views/service-settings/email-reply-to/add.html',
@@ -434,11 +436,13 @@ def service_add_email_reply_to(service_id):
@login_required
@user_has_permissions('manage_service')
def service_verify_reply_to_address(service_id, notification_id):
is_new = request.args.get('is_new', False)
return render_template(
'views/service-settings/email-reply-to/verify.html',
service_id=service_id,
notification_id=notification_id,
partials=get_service_verify_reply_to_address_partials(service_id, notification_id)
partials=get_service_verify_reply_to_address_partials(service_id, notification_id),
verb=("Add" if is_new else "Change")
)

View File

@@ -1,22 +1,31 @@
{% from "components/banner.html" import banner %}
{% from "components/banner.html" import banner, banner_wrapper %}
<div class="ajax-block-container">
{% if verification_status == "pending" %}
<p>
We have sent a notification to {{ reply_to_email_address }} to check if it's a working email address.
Were checking that {{ reply_to_email_address }} is a real email address.
</p>
<p>
Once we receive a delivery confirmation, we will update your list of reply-to email addresses.
<span class='loading-indicator'>This can take a minute </span>
</p>
<p>
<a href="{{ url_for('main.service_verify_reply_to_address', service_id=service_id, notification_id=notification_id) + "?is_default={}".format(is_default) }}"">Refresh</a>
</p>
{% elif verification_status == "success" %}
{{ banner("Yay success! Your new reply-to email has been added ^__^", type='default', with_tick=True) }}
{{ banner("{} is ready to use".format(reply_to_email_address), type='default', with_tick=True) }}
{% elif verification_status == "failure" %}
{{ banner("Sorry dawg, this email address doesn't seem to be working :d", type='dangerous') }}
{% 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 %}
<a href={{ url_for('main.service_add_email_reply_to', service_id=service_id) }}>Try again</a>
{% endif %}
</div>

View File

@@ -7,13 +7,13 @@
{% from "components/ajax-block.html" import ajax_block %}
{% block service_page_title %}
Verifying your reply-to email address
{{ verb }} email reply-to address
{% endblock %}
{% block maincolumn_content %}
{{ page_header(
'Verifying your reply-to email address',
'{} email reply-to address'.format(verb),
back_link=url_for('main.service_email_reply_to', service_id=current_service.id)
) }}
{{ ajax_block(