Files
notifications-admin/app/templates/views/send-test.html

67 lines
2.1 KiB
HTML
Raw Normal View History

{% extends "withnav_template.html" %}
{% from "components/page-header.html" import page_header %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/form.html" import form_wrapper %}
2023-08-30 11:07:38 -04:00
{% from "components/components/back-link/macro.njk" import usaBackLink %}
{% block service_page_title %}
{{ page_title }}
{% endblock %}
{% block backLink %}
2023-08-30 11:07:38 -04:00
{{ usaBackLink({ "href": back_link }) }}
{% endblock %}
2024-12-09 18:47:34 -08:00
{% block skipLink %}
2024-12-10 12:21:01 -08:00
{% set skipLink = usaSkipLink({
"href": '#main-content',
"text": 'Skip to main content'
}) %}
2024-12-09 18:47:34 -08:00
{% if errors %}
2024-12-10 12:21:01 -08:00
<div>{{ skipLink }}</div>
2024-12-09 18:47:34 -08:00
{% else %}
2024-12-10 12:21:01 -08:00
{{ skipLink }}
2024-12-09 18:47:34 -08:00
{% endif %}
{% endblock %}
{% block maincolumn_content %}
{{ page_header(page_title) }}
2022-07-29 15:28:10 -07:00
{{ template|string }}
{% call form_wrapper(
class='js-stick-at-top-when-scrolling send-one-off-form' if template.template_type != 'sms' else 'send-one-off-form',
module="autofocus",
data_kwargs={'force-focus': True}
) %}
2023-08-23 16:18:25 -04:00
<div class="grid-row">
2025-02-24 12:29:58 -05:00
{% set extra_class = "extra-tracking" if form.placeholder_value.label.text == "phone number" else "" %}
{% set placeholder_id = "phone number" if form.placeholder_value.label.text == "phone number" else "" %}
2025-01-27 19:15:37 -08:00
<div class="grid-col-12 {% if form.placeholder_value.label.text == 'phone number' %}extra-tracking{% endif %}">
2025-01-28 16:11:07 -08:00
{{ form.placeholder_value(param_extensions={"classes": "", "id": "phone-number"}) }}
</div>
{% if skip_link or link_to_upload %}
<div class="grid-col-12 margin-top-1">
{% if link_to_upload %}
<a class="usa-link margin-right-2" href="{{ url_for('.send_messages', service_id=current_service.id, template_id=template.id) }}">Upload a list of {{ 999|recipient_count_label(template.template_type) }}</a>
{% endif %}
{% if skip_link %}
2023-08-25 11:38:07 -04:00
<a href="{{ skip_link[1] }}" class="usa-link">{{ skip_link[0] }}</a>
{% endif %}
</div>
{% endif %}
</div>
{% if link_to_upload %}
<p>
</p>
{% endif %}
{{ page_footer('Continue') }}
{% endcall %}
{% endblock %}