2020-07-01 16:43:08 +01:00
|
|
|
{% extends "withnav_template.html" %}
|
|
|
|
|
{% from "components/textbox.html" import textbox %}
|
|
|
|
|
{% from "components/page-header.html" import page_header %}
|
2021-01-06 16:57:57 +00:00
|
|
|
{% from "components/page-footer.html" import page_footer %}
|
2020-07-01 16:43:08 +01:00
|
|
|
{% from "components/form.html" import form_wrapper %}
|
2021-07-30 18:23:12 +01:00
|
|
|
{% from "components/back-link/macro.njk" import govukBackLink %}
|
2020-07-01 16:43:08 +01:00
|
|
|
|
|
|
|
|
{% block service_page_title %}
|
2020-08-17 13:01:33 +01:00
|
|
|
{{ heading_action }} template
|
2020-07-01 16:43:08 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
2021-07-30 18:23:12 +01:00
|
|
|
{% block backLink %}
|
|
|
|
|
{{ govukBackLink({
|
|
|
|
|
"href": 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)
|
|
|
|
|
}) }}
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
2020-07-01 16:43:08 +01:00
|
|
|
{% block maincolumn_content %}
|
|
|
|
|
|
2021-07-30 18:23:12 +01:00
|
|
|
{{ page_header('{} template'.format(heading_action)) }}
|
2020-07-01 16:43:08 +01:00
|
|
|
|
|
|
|
|
{% call form_wrapper() %}
|
|
|
|
|
<div class="govuk-grid-row">
|
|
|
|
|
<div class="govuk-grid-column-two-thirds">
|
2020-08-07 12:07:16 +01:00
|
|
|
{{ form.name(param_extensions={
|
|
|
|
|
"classes": "govuk-!-width-full",
|
|
|
|
|
"hint": {"text": "Your recipients will not see this"},
|
|
|
|
|
}) }}
|
2021-01-08 13:49:18 +00:00
|
|
|
{{ textbox(
|
|
|
|
|
form.template_content,
|
|
|
|
|
highlight_placeholders=False,
|
|
|
|
|
autosize=True,
|
|
|
|
|
width='1-1',
|
|
|
|
|
rows=5,
|
|
|
|
|
extra_form_group_classes='govuk-!-margin-bottom-2'
|
|
|
|
|
) }}
|
2021-01-06 16:57:57 +00:00
|
|
|
</div>
|
|
|
|
|
<div class="govuk-grid-column-full">
|
2021-01-08 15:23:54 +00:00
|
|
|
<div class="template-content-count">
|
|
|
|
|
<div data-module="update-status" data-target="template_content" data-updates-url="{{ url_for('.count_content_length', service_id=current_service.id, template_type='broadcast') }}" aria-live="polite">
|
|
|
|
|
|
2021-01-08 12:48:42 +00:00
|
|
|
</div>
|
2021-01-06 16:57:57 +00:00
|
|
|
</div>
|
2021-01-08 15:23:54 +00:00
|
|
|
{{ page_footer('Save') }}
|
2020-07-01 16:43:08 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|