Files
notifications-admin/app/templates/components/sms-message.html
T

46 lines
1.0 KiB
HTML
Raw Normal View History

2016-05-05 08:38:55 +01:00
{% macro sms_message(
body,
recipient=None,
name=None,
id=None,
edit_link=None,
from=None,
show_placeholder_for_recipient=False
) %}
{% if name %}
<h3 class="sms-message-name">
{% if edit_link %}
<a name="{{ name|linkable_name }}" href="{{ edit_link }}">{{ name }}</a>
2016-01-13 16:27:54 +00:00
{% else %}
{{ name }}
{% endif %}
{% if created_at %}{{ created_at }}{% endif %}
</h3>
{% endif %}
2016-05-05 08:38:55 +01:00
{% if recipient is not none %}
<p class="sms-message-recipient">
To:
{% if show_placeholder_for_recipient %}
<span class="placeholder">
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 %}">
{% 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-01-22 14:38:10 +00:00
{% if id %}
<p class="sms-message-recipient">
Template ID: {{ id }}
</p>
{% endif %}
2015-12-10 16:52:45 +00:00
{% endmacro %}