mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-23 11:51:05 -05:00
For users who: - want to send messages from a template - want to edit templates For developers: - who need to get the ID of a template This commit mainly cleans up the choose template page so there are less options, and the options that are there are less wordy. This means: - moving ‘send yourself a test’ onto the send messages page, and making it button - stripping a lot of stuff out of the ‘send from API’ page, so it’s more obvious what the template ID is
30 lines
761 B
HTML
30 lines
761 B
HTML
{% macro sms_message(body, recipient=None, name=None, id=None, edit_link=None, from=None) %}
|
|
{% if name %}
|
|
<h3 class="sms-message-name">
|
|
{% if edit_link %}
|
|
<a name="{{ name|linkable_name }}" href="{{ edit_link }}">{{ name }}</a>
|
|
{% else %}
|
|
{{ name }}
|
|
{% endif %}
|
|
</h3>
|
|
{% endif %}
|
|
<div class="sms-message-wrapper{% if input_name %}-with-radio{% endif %}">
|
|
{% if from %}
|
|
<span class="sms-message-from">
|
|
{{ from }}
|
|
</span>
|
|
{% endif %}
|
|
{{ body|nl2br }}
|
|
</div>
|
|
{% if recipient %}
|
|
<p class="sms-message-recipient">
|
|
{{ recipient }}
|
|
</p>
|
|
{% endif %}
|
|
{% if id %}
|
|
<p class="sms-message-recipient">
|
|
Template ID: {{ id }}
|
|
</p>
|
|
{% endif %}
|
|
{% endmacro %}
|