2017-10-24 15:37:44 +01:00
|
|
|
{% extends "withnav_template.html" %}
|
2021-08-27 17:32:06 +01:00
|
|
|
{% from "components/copy-to-clipboard.html" import copy_to_clipboard %}
|
2019-04-29 11:44:05 +01:00
|
|
|
{% from "components/page-header.html" import page_header %}
|
2018-01-25 15:29:05 +00:00
|
|
|
{% from "components/table.html" import row_group, row, text_field, edit_field, field, boolean_field, list_table with context%}
|
2023-08-30 11:07:38 -04:00
|
|
|
{% from "components/components/button/macro.njk" import usaButton %}
|
|
|
|
|
{% from "components/components/back-link/macro.njk" import usaBackLink %}
|
2017-10-24 15:37:44 +01:00
|
|
|
|
|
|
|
|
{% block service_page_title %}
|
|
|
|
|
Text message senders
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
2021-07-30 18:23:12 +01:00
|
|
|
{% block backLink %}
|
2023-08-30 11:07:38 -04:00
|
|
|
{{ usaBackLink({ "href": url_for('main.service_settings', service_id=current_service.id) }) }}
|
2021-07-30 18:23:12 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
2017-10-24 15:37:44 +01:00
|
|
|
{% block maincolumn_content %}
|
2019-02-01 12:36:03 +00:00
|
|
|
|
2021-07-30 18:23:12 +01:00
|
|
|
{{ page_header('Text message senders') }}
|
2019-02-01 12:36:03 +00:00
|
|
|
|
2017-10-24 15:37:44 +01:00
|
|
|
<div class="user-list">
|
2018-10-26 17:31:49 +01:00
|
|
|
{% if not current_service.sms_senders %}
|
2017-10-24 15:37:44 +01:00
|
|
|
<div class="user-list-item">
|
2023-08-25 11:49:13 -04:00
|
|
|
<p class="usa-body user-list-item-blank hint">You have not added any text message senders yet</p>
|
2017-10-24 15:37:44 +01:00
|
|
|
</div>
|
2018-01-25 15:29:05 +00:00
|
|
|
{% endif %}
|
2018-10-26 17:31:49 +01:00
|
|
|
{% for item in current_service.sms_senders_with_hints %}
|
2017-10-24 15:37:44 +01:00
|
|
|
<div class="user-list-item">
|
2023-06-15 10:17:07 -04:00
|
|
|
<div class="grid-row">
|
|
|
|
|
<div class="grid-col">
|
2020-08-27 15:58:06 +01:00
|
|
|
<h2 class="user-list-item-heading">
|
2023-06-15 10:17:07 -04:00
|
|
|
<span class="font-body-lg">{{ item.sms_sender }}</span>
|
2020-08-27 15:58:06 +01:00
|
|
|
{% if item.hint %}
|
|
|
|
|
 
|
2023-06-15 10:17:07 -04:00
|
|
|
<span class="usa-hint">
|
2020-08-27 15:58:06 +01:00
|
|
|
{{ item.hint }}
|
|
|
|
|
</span>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</h2>
|
|
|
|
|
</div>
|
2023-06-15 10:17:07 -04:00
|
|
|
<div class="grid-col">
|
2020-08-27 15:58:06 +01:00
|
|
|
{% if current_user.has_permissions('manage_service') %}
|
2023-06-15 10:17:07 -04:00
|
|
|
<a class="usa-link user-list-edit-link" href="{{ url_for('.service_edit_sms_sender', service_id=current_service.id, sms_sender_id = item.id) }}">
|
|
|
|
|
Change<span class="usa-sr-only"> {{ item.sms_sender }}</span>
|
2021-02-23 14:25:33 +00:00
|
|
|
</a>
|
2020-08-27 15:58:06 +01:00
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-10-26 17:31:49 +01:00
|
|
|
{% if current_service.count_sms_senders > 1 %}
|
2021-08-27 17:32:06 +01:00
|
|
|
{{ copy_to_clipboard(item.id, name=item.sms_sender, thing="ID") }}
|
2017-10-24 15:37:44 +01:00
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</div>
|
2019-02-01 12:36:03 +00:00
|
|
|
|
|
|
|
|
{% if current_user.has_permissions('manage_service') %}
|
2023-08-23 16:18:25 -04:00
|
|
|
<div class="grid-row bottom-gutter">
|
|
|
|
|
<div class="grid-col-12">
|
2023-08-30 11:07:38 -04:00
|
|
|
{{ usaButton({
|
2020-01-30 14:01:13 +00:00
|
|
|
"element": "a",
|
|
|
|
|
"text": "Add text message sender",
|
|
|
|
|
"href": url_for('.service_add_sms_sender', service_id=current_service.id)
|
|
|
|
|
}) }}
|
2019-02-01 12:36:03 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
2023-06-06 15:28:24 -04:00
|
|
|
<p>
|
2018-08-31 10:30:45 +01:00
|
|
|
The text message sender tells your users who the message is from.
|
|
|
|
|
</p>
|
2017-10-24 15:37:44 +01:00
|
|
|
{% endblock %}
|