2016-05-05 08:38:55 +01:00
|
|
|
{% macro sms_message(
|
|
|
|
|
body,
|
|
|
|
|
recipient=None,
|
|
|
|
|
id=None,
|
|
|
|
|
from=None,
|
2016-05-20 13:58:16 +01:00
|
|
|
version=1,
|
|
|
|
|
updated_at=None,
|
|
|
|
|
versions_url=None,
|
|
|
|
|
show_placeholder_for_recipient=False,
|
|
|
|
|
show_id=False
|
2016-05-05 08:38:55 +01:00
|
|
|
) %}
|
|
|
|
|
{% if recipient is not none %}
|
|
|
|
|
<p class="sms-message-recipient">
|
2016-05-24 09:10:10 +01:00
|
|
|
To:
|
2016-05-05 08:38:55 +01:00
|
|
|
{% if show_placeholder_for_recipient %}
|
2016-06-02 10:40:17 +01:00
|
|
|
<span class="placeholder-no-brackets">
|
2016-05-05 08:38:55 +01:00
|
|
|
phone number
|
|
|
|
|
</span>
|
|
|
|
|
{% else %}
|
|
|
|
|
{{ recipient }}
|
|
|
|
|
{% endif %}
|
|
|
|
|
</p>
|
|
|
|
|
{% endif %}
|
2016-01-20 10:36:41 +00:00
|
|
|
<div class="sms-message-wrapper{% if input_name %}-with-radio{% endif %}">
|
2016-02-18 14:54:59 +00:00
|
|
|
{% if from %}
|
|
|
|
|
<span class="sms-message-from">
|
|
|
|
|
{{ from }}
|
|
|
|
|
</span>
|
|
|
|
|
{% endif %}
|
2016-04-11 10:51:32 +01:00
|
|
|
{{ body|nl2br }}
|
2015-12-10 16:52:45 +00:00
|
|
|
</div>
|
2016-05-20 13:58:16 +01:00
|
|
|
{% if show_id %}
|
2016-01-22 14:38:10 +00:00
|
|
|
<p class="sms-message-recipient">
|
|
|
|
|
Template ID: {{ id }}
|
|
|
|
|
</p>
|
|
|
|
|
{% endif %}
|
2015-12-10 16:52:45 +00:00
|
|
|
{% endmacro %}
|