Check for reply to email address before going live

We require that a user has a real reply-to email address before going
live. We can partially automate this by at least telling users who
haven’t done this.

This only applies for users that have email templates; we shouldn’t
bother users who aren’t going to send emails about this.
This commit is contained in:
Chris Hill-Scott
2018-02-27 14:25:20 +00:00
parent 7be08e2f74
commit d0ffff9e02
3 changed files with 47 additions and 8 deletions

View File

@@ -26,6 +26,14 @@
has_templates,
'Youve added some templates',
) }}
{% if has_email_templates %}
{{ tick_cross_done_not_done(
has_email_reply_to_address,
'Youve added an email reply to address on the <a href="{}">settings</a> page'.format(
url_for('main.service_settings', service_id=current_service.id)
)|safe,
) }}
{% endif %}
</ul>
<p>
You also need to:
@@ -34,10 +42,6 @@
<li>
read our <a href="{{ url_for('.terms') }}">terms of use</a>
</li>
<li>
specify your reply to email address or text message sender in your
<a href="{{ url_for('main.service_settings', service_id=current_service.id) }}">settings</a> page
</li>
<li>
make sure your messages follow the GOV.UK Service Manual standards for
<a href="https://www.gov.uk/service-manual/design/sending-emails-and-text-messages">writing text messages and emails</a>