Show subject line with placeholders replaced

On the check page, we show what the message will look like with the data
from the first row of the CSV, if the CSV contains all the required
data.

We should do the same for the subject line.
This commit is contained in:
Chris Hill-Scott
2016-04-21 09:28:31 +01:00
parent 5a39acb3c3
commit 71cb100e08

View File

@@ -46,7 +46,7 @@
{% if 'email' == template.template_type %}
{{ email_message(
template.formatted_subject_as_markup,
template.formatted_subject_as_markup if errors else template.replaced_subject,
template.formatted_as_markup if errors else template.replaced,
from_address='{}@notifications.service.gov.uk'.format(current_service.email_from),
from_name=current_service.name