Merge pull request #247 from alphagov/email-flow-fixes

Email flow fixes
This commit is contained in:
Chris Hill-Scott
2016-03-09 14:24:41 +00:00
5 changed files with 29 additions and 11 deletions
+1 -1
View File
@@ -66,7 +66,7 @@
{% else %}
<form method="post" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<input type="submit" class="button" value="{{ "Send {} message{}".format(count_of_recipients, '' if count_of_recipients == 1 else 's') }}" />
<input type="submit" class="button" value="{{ send_button_text }}" />
<a href="{{url_for('.send_messages', service_id=service_id, template_id=template.id)}}" class="page-footer-back-link">Back</a>
</form>
{% endif %}
+2 -2
View File
@@ -24,9 +24,9 @@
{% elif 'email' == template.template_type %}
{{ email_message(
template.subject,
template,
template.formatted_as_markup,
from_address='{}@notifications.service.gov.uk'.format(service.email_from),
from_name=from_name
from_name=service.name
)}}
{% endif %}