mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-08 20:33:47 -05:00
Let users create/edit/delete letter templates. Let them upload a CSV file or send a test against a letter template. Big assumption at the moment is that addresses only have one line, and therefore one column in the CSV file.
22 lines
505 B
HTML
22 lines
505 B
HTML
{% macro message_count_label(count, template_type, suffix='sent') -%}
|
|
{%- if template_type == 'sms' -%}
|
|
{%- if count == 1 -%}
|
|
text message
|
|
{%- else -%}
|
|
text messages
|
|
{%- endif -%}
|
|
{%- elif template_type == 'email' -%}
|
|
{%- if count == 1 -%}
|
|
email
|
|
{%- else -%}
|
|
emails
|
|
{%- endif -%}
|
|
{%- elif template_type == 'letter' -%}
|
|
{%- if count == 1 -%}
|
|
letter
|
|
{%- else -%}
|
|
letters
|
|
{%- endif -%}
|
|
{%- endif %} {{ suffix }}
|
|
{%- endmacro %}
|