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 %}
|
2023-08-30 11:07:38 -04:00
|
|
|
{% from "components/components/back-link/macro.njk" import usaBackLink %}
|
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 %}
|
|
|
|
|
|
2021-07-30 18:23:12 +01:00
|
|
|
{% block backLink %}
|
2023-08-30 11:07:38 -04:00
|
|
|
{{ usaBackLink({
|
2023-07-07 10:27:29 -07:00
|
|
|
"href": url_for('main.choose_template', service_id=current_service.id, template_folder_id=template_folder_id) if template_folder_id else url_for('main.choose_template', service_id=current_service.id)
|
2021-07-30 18:23:12 +01:00
|
|
|
}) }}
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
2015-12-14 16:53:07 +00:00
|
|
|
{% block maincolumn_content %}
|
|
|
|
|
|
2021-07-30 18:23:12 +01:00
|
|
|
{{ page_header('{} text message template'.format(heading_action)) }}
|
2023-06-08 13:12:00 -04:00
|
|
|
|
2023-10-10 11:07:08 -04:00
|
|
|
<a class="usa-link display-inline-flex margin-top-05" href="#help">
|
|
|
|
|
How to customize your message
|
|
|
|
|
</a>
|
2015-12-09 10:52:09 +00:00
|
|
|
|
2021-07-02 16:25:45 +01:00
|
|
|
{% if current_service.prefix_sms %}
|
2022-07-29 15:28:10 -07:00
|
|
|
{% set content_hint = 'Your service name will be added to the start of your message. You can turn this off in Settings.' %}
|
2021-07-02 16:25:45 +01:00
|
|
|
{% endif %}
|
|
|
|
|
|
2018-09-19 12:39:36 +01:00
|
|
|
{% call form_wrapper() %}
|
2023-08-23 16:18:25 -04:00
|
|
|
<div class="grid-row">
|
2023-10-10 11:23:19 -04:00
|
|
|
<div class="tablet:grid-col-9 mobile-lg:grid-col-12">
|
2020-08-07 12:07:16 +01:00
|
|
|
{{ form.name(param_extensions={
|
2023-09-01 16:34:54 -04:00
|
|
|
"extra_form_group_classes": "margin-bottom-2",
|
2020-08-07 12:07:16 +01:00
|
|
|
"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',
|
2021-07-02 16:25:45 +01:00
|
|
|
hint=content_hint,
|
2021-01-08 13:49:18 +00:00
|
|
|
rows=5,
|
2023-09-01 16:34:54 -04:00
|
|
|
extra_form_group_classes='margin-bottom-1',
|
2022-07-29 15:28:10 -07:00
|
|
|
placeholder='Edit me! Check out the Personalization section below for details on cool ((stuff)) you can do with your messages!'
|
2021-01-08 13:49:18 +00:00
|
|
|
) }}
|
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>
|
2023-10-10 11:07:08 -04:00
|
|
|
<div class="grid-row">
|
|
|
|
|
<div class="grid-col-12">
|
2023-11-28 07:42:33 -08:00
|
|
|
<div class="template-content-count" bg-color="red">
|
2023-10-10 11:07:08 -04:00
|
|
|
<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">
|
|
|
|
|
|
|
|
|
|
</div>
|
2021-01-08 12:48:42 +00:00
|
|
|
</div>
|
2021-01-06 16:57:57 +00:00
|
|
|
</div>
|
2016-02-18 07:44:50 +00:00
|
|
|
</div>
|
2023-10-10 11:07:08 -04:00
|
|
|
<div class="grid-row width-full">
|
|
|
|
|
<div class="tablet:grid-col-2 mobile-lg:grid-col-12">
|
|
|
|
|
{{ page_footer('Save') }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tablet:grid-col-10 mobile-lg:grid-col-12">
|
|
|
|
|
<p class="usa-hint margin-top-5 tablet:margin-left-neg-2">
|
|
|
|
|
After saving, you'll have the option to send.
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-11-27 14:49:20 -08:00
|
|
|
|
2023-10-10 11:07:08 -04:00
|
|
|
<div class="tablet:grid-col-9 mobile-lg:grid-col-12">
|
|
|
|
|
<h2 id="help" class="font-body-xl margin-top-2">How to customize your message</h2>
|
2023-10-10 11:23:19 -04:00
|
|
|
<div class="usa-accordion usa-accordion--bordered usa-accordion--multiselectable maxw-mobile-lg" data-allow-multiple>
|
2023-10-10 11:07:08 -04:00
|
|
|
{% include "partials/templates/guidance-personalization.html" %}
|
|
|
|
|
{% include "partials/templates/guidance-optional-content.html" %}
|
|
|
|
|
{% include "partials/templates/guidance-links.html" %}
|
|
|
|
|
{% include "partials/templates/guidance-character-count.html" %}
|
|
|
|
|
</div>
|
2021-02-19 14:46:09 +00:00
|
|
|
</div>
|
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 %}
|