2016-05-05 08:39:36 +01:00
|
|
|
{% extends "withnav_template.html" %}
|
2019-04-29 11:44:05 +01:00
|
|
|
{% from "components/page-header.html" import page_header %}
|
2016-05-05 08:39:36 +01:00
|
|
|
{% from "components/page-footer.html" import page_footer %}
|
2018-07-18 09:48:19 +01:00
|
|
|
{% from "components/message-count-label.html" import recipient_count_label %}
|
2017-05-04 09:30:55 +01:00
|
|
|
{% from "components/textbox.html" import textbox %}
|
2018-09-19 12:39:36 +01:00
|
|
|
{% from "components/form.html" import form_wrapper %}
|
2016-05-05 08:39:36 +01:00
|
|
|
|
2017-02-13 10:45:15 +00:00
|
|
|
{% block service_page_title %}
|
2017-05-25 13:31:23 +01:00
|
|
|
{{ page_title }}
|
2016-05-05 08:39:36 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
|
|
2019-04-29 11:44:05 +01:00
|
|
|
{{ page_header(
|
|
|
|
|
page_title,
|
|
|
|
|
back_link=back_link
|
|
|
|
|
) }}
|
2016-05-05 08:39:36 +01:00
|
|
|
|
2018-12-07 10:34:58 +00:00
|
|
|
{% call form_wrapper(
|
2018-12-07 11:41:11 +00:00
|
|
|
class='js-stick-at-top-when-scrolling send-one-off-form' if template.template_type != 'sms' else 'send-one-off-form',
|
2019-03-28 16:45:36 +00:00
|
|
|
module="autofocus",
|
2019-04-03 14:23:07 +01:00
|
|
|
data_kwargs={'force-focus': True}
|
2018-12-07 10:34:58 +00:00
|
|
|
) %}
|
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 {% if form.placeholder_value.label.text == 'phone number' %}extra-tracking{% endif %}">
|
2017-05-25 13:31:51 +01:00
|
|
|
{{ textbox(
|
|
|
|
|
form.placeholder_value,
|
|
|
|
|
hint='Optional' if optional_placeholder else None,
|
|
|
|
|
width='1-1',
|
|
|
|
|
) }}
|
|
|
|
|
</div>
|
|
|
|
|
{% if skip_link %}
|
2020-02-19 12:29:28 +00:00
|
|
|
<div class="govuk-grid-column-one-third">
|
2019-12-06 07:53:46 +00:00
|
|
|
<a href="{{ skip_link[1] }}" class="govuk-link govuk-link--no-visited-state top-gutter-4-3">{{ skip_link[0] }}</a>
|
2017-05-25 13:31:51 +01:00
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
2018-07-18 09:48:19 +01:00
|
|
|
{% if link_to_upload %}
|
|
|
|
|
<p>
|
2019-12-06 07:53:46 +00:00
|
|
|
<a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('.send_messages', service_id=current_service.id, template_id=template.id) }}">
|
2018-07-18 09:48:19 +01:00
|
|
|
Upload a list of {{ recipient_count_label(999, template.template_type) }}
|
|
|
|
|
</a>
|
|
|
|
|
</p>
|
|
|
|
|
{% endif %}
|
2019-04-29 11:44:05 +01:00
|
|
|
{{ page_footer('Continue') }}
|
2018-09-19 12:39:36 +01:00
|
|
|
{% endcall %}
|
2016-05-05 08:39:36 +01:00
|
|
|
|
2017-05-16 16:56:40 +01:00
|
|
|
{{ template|string }}
|
|
|
|
|
|
2016-05-05 08:39:36 +01:00
|
|
|
{% endblock %}
|