mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
Try out previewing messages
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
{% macro sms_message(body) %}
|
||||
{% macro sms_message(body, recipient) %}
|
||||
{% if recipient %}
|
||||
<p class="sms-message-recipient">
|
||||
{{ recipient }}
|
||||
</p>
|
||||
{% endif %}
|
||||
<div class="sms-message">
|
||||
<div class="sms-message-wrapper">
|
||||
{{ body|placeholders }}
|
||||
|
||||
@@ -23,6 +23,14 @@
|
||||
<a class="button-secondary" role="button" href="{{ url_for(".sendsms") }}">Back</a>
|
||||
</form>
|
||||
</p>
|
||||
|
||||
{% for recipient in recipients %}
|
||||
{{ sms_message(
|
||||
message_template|replace_placeholders(recipient),
|
||||
recipient['phone']
|
||||
) }}
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -33,9 +41,9 @@
|
||||
'Recipient', placeholder('registration number'), placeholder('date')
|
||||
]
|
||||
) %}
|
||||
{% call field() %}{{item.phone}}{% endcall %}
|
||||
{% call field() %}{{item.registration}}{% endcall %}
|
||||
{% call field() %}{{item.date}}{% endcall %}
|
||||
{% call field() %}{{item['phone']}}{% endcall %}
|
||||
{% call field() %}{{item['registration number']}}{% endcall %}
|
||||
{% call field() %}{{item['date']}}{% endcall %}
|
||||
{% endcall %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user