mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
36 lines
1004 B
HTML
36 lines
1004 B
HTML
{% macro sms_message(
|
|
body, recipient=None, name=None, id=None, edit_link=None, input_name=None, input_index=None
|
|
) %}
|
|
{% if input_name %}
|
|
<label class="sms-message-option" for="{{ input_name }}-{{ input_index }}">
|
|
{% endif %}
|
|
{% if name %}
|
|
<h3 class="sms-message-name">
|
|
{% if edit_link %}
|
|
<a href="{{ edit_link }}">{{ name }}</a>
|
|
{% else %}
|
|
{{ name }}
|
|
{% endif %}
|
|
</h3>
|
|
{% endif %}
|
|
{% if input_name %}
|
|
<input class="sms-message-picker" type="radio" id="{{ input_name }}-{{ input_index }}" name="{{ input_name }}" value="{{ input_index }}" />
|
|
{% endif %}
|
|
<div class="sms-message-wrapper{% if input_name %}-with-radio{% endif %}">
|
|
{{ body|placeholders }}
|
|
</div>
|
|
{% if recipient %}
|
|
<p class="sms-message-recipient">
|
|
{{ recipient }}
|
|
</p>
|
|
{% endif %}
|
|
{% if id %}
|
|
<p class="sms-message-recipient">
|
|
Template ID: {{ id }}
|
|
</p>
|
|
{% endif %}
|
|
{% if input_name %}
|
|
</label>
|
|
{% endif %}
|
|
{% endmacro %}
|