mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Add ‘no templates’ message for broadcast services
This shouldn’t talk about emails, text messages or letters.
This commit is contained in:
@@ -24,14 +24,19 @@
|
||||
|
||||
<p class="govuk-body">
|
||||
{% if current_user.has_permissions('manage_templates') %}
|
||||
You need a template before you can send
|
||||
You need a template before you can
|
||||
{% else %}
|
||||
You need to ask your service manager to add templates before you can send
|
||||
You need to ask your service manager to add templates before you can
|
||||
{% endif %}
|
||||
{% if 'letter' in current_service.permissions %}
|
||||
emails, text messages or letters
|
||||
{%- else -%}
|
||||
emails or text messages
|
||||
{% if current_service.has_permission('broadcast') %}
|
||||
prepare a broadcast
|
||||
{%- else %}
|
||||
send
|
||||
{% if 'letter' in current_service.permissions %}
|
||||
emails, text messages or letters
|
||||
{%- else -%}
|
||||
emails or text messages
|
||||
{%- endif %}
|
||||
{%- endif %}.
|
||||
</p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user