2015-12-14 16:53:07 +00:00
|
|
|
{% extends "withnav_template.html" %}
|
2015-12-20 00:00:01 +00:00
|
|
|
{% from "components/textbox.html" import textbox %}
|
2019-04-29 11:44:05 +01:00
|
|
|
{% from "components/page-header.html" import page_header %}
|
2019-01-14 13:34:23 +00:00
|
|
|
{% from "components/page-footer.html" import sticky_page_footer %}
|
2018-09-19 12:39:36 +01:00
|
|
|
{% from "components/form.html" import form_wrapper %}
|
2015-12-09 10:52:09 +00:00
|
|
|
|
2017-02-13 10:45:15 +00:00
|
|
|
{% block service_page_title %}
|
|
|
|
|
{{ heading_action }} email template
|
2015-12-09 10:52:09 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
2015-12-14 16:53:07 +00:00
|
|
|
{% block maincolumn_content %}
|
|
|
|
|
|
2019-04-29 11:44:05 +01:00
|
|
|
{{ page_header(
|
|
|
|
|
'{} email template'.format(heading_action),
|
|
|
|
|
back_link=url_for('main.view_template', service_id=current_service.id, template_id=template.id) if template else url_for('main.choose_template', service_id=current_service.id, template_folder_id=template_folder_id)
|
|
|
|
|
) }}
|
2015-12-09 10:52:09 +00:00
|
|
|
|
2018-09-19 12:39:36 +01:00
|
|
|
{% call form_wrapper() %}
|
2020-02-19 11:57:15 +00:00
|
|
|
<div class="govuk-grid-row">
|
2020-02-20 16:55:56 +00:00
|
|
|
<div class="govuk-grid-column-five-sixths">
|
2020-08-07 12:07:16 +01:00
|
|
|
{{ form.name(param_extensions={
|
|
|
|
|
"classes": "govuk-!-width-full",
|
|
|
|
|
"hint": {"text": "Your recipients will not see this"}
|
|
|
|
|
}) }}
|
2019-10-16 15:20:05 +01:00
|
|
|
{{ textbox(form.subject, width='1-1', highlight_placeholders=True, rows=2) }}
|
|
|
|
|
{{ textbox(form.template_content, highlight_placeholders=True, width='1-1', rows=8) }}
|
2018-02-27 16:45:20 +00:00
|
|
|
{% if current_user.platform_admin %}
|
2020-11-11 15:55:55 +00:00
|
|
|
{{ form.process_type }}
|
2017-01-18 15:11:34 +00:00
|
|
|
{% endif %}
|
2019-01-14 13:34:23 +00:00
|
|
|
{{ sticky_page_footer(
|
|
|
|
|
'Save'
|
|
|
|
|
) }}
|
2016-02-18 07:44:50 +00:00
|
|
|
</div>
|
2020-02-20 16:55:56 +00:00
|
|
|
<aside class="govuk-grid-column-full">
|
2016-07-14 16:52:53 +01:00
|
|
|
{% include "partials/templates/guidance-formatting.html" %}
|
2016-06-20 11:38:30 +01:00
|
|
|
{% include "partials/templates/guidance-personalisation.html" %}
|
2017-02-13 10:45:15 +00:00
|
|
|
{% include "partials/templates/guidance-optional-content.html" %}
|
2016-06-20 11:38:30 +01:00
|
|
|
{% include "partials/templates/guidance-links.html" %}
|
2018-09-03 16:21:42 +01:00
|
|
|
{% if current_service.has_permission('upload_document') %}
|
|
|
|
|
{% include "partials/templates/guidance-send-a-document.html" %}
|
|
|
|
|
{% endif %}
|
2016-06-20 11:38:30 +01:00
|
|
|
</aside>
|
2016-02-18 07:44:50 +00:00
|
|
|
</div>
|
2018-09-19 12:39:36 +01:00
|
|
|
{% endcall %}
|
2015-12-09 10:52:09 +00:00
|
|
|
|
|
|
|
|
{% endblock %}
|