Allow one-off email sending to select the reply-to address

This commit is contained in:
chrisw
2017-10-16 16:35:35 +01:00
parent 7809a70cf3
commit e149d0eb91
11 changed files with 350 additions and 14 deletions

View File

@@ -13,7 +13,7 @@
</a>
</div>
<div class="{{ 'column-half' if template.template_type == 'letter' else 'column-third' }}">
<a href="{{ url_for(".send_one_off", service_id=current_service.id, template_id=template.id) }}" class="pill-separate-item">
<a href="{{ url_for(".set_sender", service_id=current_service.id, template_id=template.id) }}" class="pill-separate-item">
{{ 'Print a test letter' if template.template_type == 'letter' else 'Send to one recipient' }}
</a>
</div>

View File

@@ -0,0 +1,29 @@
{% extends "withnav_template.html" %}
{% from "components/radios.html" import radios, branding_radios %}
{% from "components/page-footer.html" import page_footer %}
{% block service_page_title %}
{{sender_context['title']}}
{% endblock %}
{% block maincolumn_content %}
<h1 class="heading-large">{{sender_context['title']}}</h1>
<div class="grid-row">
<div class="column-three-quarters">
<form method="post">
{{ radios(
form.sender,
option_hints=option_hints
)
}}
{{ page_footer(
'Continue',
back_link=url_for('.view_template', service_id=current_service.id, template_id=template_id),
back_link_text='Back to template'
) }}
</form>
</div>
</div>
{% endblock %}