2016-11-08 13:12:07 +00:00
|
|
|
{% extends "withnav_template.html" %}
|
|
|
|
|
{% 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-12-18 18:22:03 +00:00
|
|
|
{% from "components/radios.html" import radios %}
|
2018-09-19 12:39:36 +01:00
|
|
|
{% from "components/form.html" import form_wrapper %}
|
2016-11-08 13:12:07 +00:00
|
|
|
|
2017-02-13 10:45:15 +00:00
|
|
|
{% block service_page_title %}
|
|
|
|
|
{{ heading_action }} letter template
|
2016-11-08 13:12:07 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
|
|
2019-04-29 11:44:05 +01:00
|
|
|
{{ page_header(
|
|
|
|
|
'{} letter 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)
|
|
|
|
|
) }}
|
2016-11-08 13:12:07 +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">
|
2019-09-13 11:14:02 +01:00
|
|
|
{{ textbox(form.name, width='1-1', hint='Your recipients will not see this', rows=10) }}
|
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) }}
|
2019-01-14 13:34:23 +00:00
|
|
|
{{ sticky_page_footer(
|
|
|
|
|
'Save'
|
|
|
|
|
) }}
|
2016-11-08 13:12:07 +00:00
|
|
|
</div>
|
2020-02-20 16:55:56 +00:00
|
|
|
<aside class="govuk-grid-column-three-quarters">
|
2016-11-08 13:56:02 +00:00
|
|
|
{% include "partials/templates/guidance-formatting-letters.html" %}
|
2016-11-08 13:12:07 +00:00
|
|
|
{% include "partials/templates/guidance-personalisation.html" %}
|
|
|
|
|
</aside>
|
|
|
|
|
</div>
|
2018-09-19 12:39:36 +01:00
|
|
|
{% endcall %}
|
2016-11-08 13:12:07 +00:00
|
|
|
|
|
|
|
|
{% endblock %}
|