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 %}
|
2021-01-06 16:57:57 +00:00
|
|
|
{% from "components/page-footer.html" import 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 }} text message 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(
|
|
|
|
|
'{} text message 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-19 12:36:02 +00:00
|
|
|
<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=True,
|
|
|
|
|
width='1-1',
|
|
|
|
|
rows=5,
|
|
|
|
|
extra_form_group_classes='govuk-!-margin-bottom-2'
|
|
|
|
|
) }}
|
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 %}
|
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='sms') }}" 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') }}
|
2016-02-18 07:44:50 +00:00
|
|
|
</div>
|
2020-02-20 16:55:56 +00:00
|
|
|
<aside class="govuk-grid-column-full">
|
2016-06-20 11:38:30 +01:00
|
|
|
{% include "partials/templates/guidance-personalisation.html" %}
|
2016-11-11 11:44:48 +00:00
|
|
|
{% include "partials/templates/guidance-optional-content.html" %}
|
2016-06-20 11:38:30 +01:00
|
|
|
{% include "partials/templates/guidance-links.html" %}
|
|
|
|
|
{% include "partials/templates/guidance-character-count.html" %}
|
|
|
|
|
</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 %}
|