2016-01-20 10:36:41 +00:00
|
|
|
{% macro sms_message(
|
2016-01-22 12:44:19 +00:00
|
|
|
body, recipient=None, name=None, id=None, edit_link=None, input_name=None, input_index=None
|
2016-01-20 10:36:41 +00:00
|
|
|
) %}
|
|
|
|
|
{% if input_name %}
|
|
|
|
|
<label class="sms-message-option" for="{{ input_name }}-{{ input_index }}">
|
|
|
|
|
{% endif %}
|
2016-01-13 16:21:29 +00:00
|
|
|
{% if name %}
|
|
|
|
|
<h3 class="sms-message-name">
|
|
|
|
|
{% if edit_link %}
|
2016-01-13 16:27:54 +00:00
|
|
|
<a href="{{ edit_link }}">{{ name }}</a>
|
|
|
|
|
{% else %}
|
|
|
|
|
{{ name }}
|
2016-01-13 16:21:29 +00:00
|
|
|
{% endif %}
|
|
|
|
|
</h3>
|
|
|
|
|
{% endif %}
|
2016-01-20 10:36:41 +00:00
|
|
|
{% if input_name %}
|
2016-01-26 16:57:02 +00:00
|
|
|
<input class="sms-message-picker" type="radio" id="{{ input_name }}-{{ input_index }}" name="{{ input_name }}" value="{{ input_index }}" />
|
2016-01-20 10:36:41 +00:00
|
|
|
{% endif %}
|
|
|
|
|
<div class="sms-message-wrapper{% if input_name %}-with-radio{% endif %}">
|
|
|
|
|
{{ body|placeholders }}
|
2015-12-10 16:52:45 +00:00
|
|
|
</div>
|
2015-12-18 17:03:49 +00:00
|
|
|
{% if recipient %}
|
|
|
|
|
<p class="sms-message-recipient">
|
|
|
|
|
{{ recipient }}
|
|
|
|
|
</p>
|
|
|
|
|
{% endif %}
|
2016-01-22 14:38:10 +00:00
|
|
|
{% if id %}
|
|
|
|
|
<p class="sms-message-recipient">
|
|
|
|
|
Template ID: {{ id }}
|
|
|
|
|
</p>
|
|
|
|
|
{% endif %}
|
2016-01-20 10:36:41 +00:00
|
|
|
{% if input_name %}
|
|
|
|
|
</label>
|
|
|
|
|
{% endif %}
|
2015-12-10 16:52:45 +00:00
|
|
|
{% endmacro %}
|