Show email reply to address if one’s been selected

If you’ve picked an email reply to address, it’s good UI design to have
your choice played back to you, so you can be confident it’s worked.
This commit does that by making it part of the email preview.

Uses:
- [ ] https://github.com/alphagov/notifications-utils/pull/227
This commit is contained in:
Chris Hill-Scott
2017-10-17 16:06:15 +01:00
parent 1493e8bd41
commit 49c849aba0
4 changed files with 68 additions and 5 deletions

View File

@@ -272,6 +272,7 @@ def get_template(
letter_preview_url=None,
page_count=1,
redact_missing_personalisation=False,
email_reply_to=None,
):
if 'email' == template['template_type']:
return EmailPreviewTemplate(
@@ -281,6 +282,7 @@ def get_template(
expanded=expand_emails,
show_recipient=show_recipient,
redact_missing_personalisation=redact_missing_personalisation,
reply_to=email_reply_to,
)
if 'sms' == template['template_type']:
return SMSPreviewTemplate(