mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 03:58:24 -04:00
Shorten empty message on choose template
You may have permission to add templates but not to send messages. The previous error message was misleading.
This commit is contained in:
@@ -16,8 +16,9 @@
|
|||||||
|
|
||||||
{% if current_user.has_permissions(permissions=['manage_templates'], any_=True) %}
|
{% if current_user.has_permissions(permissions=['manage_templates'], any_=True) %}
|
||||||
<p class="bottom-gutter">
|
<p class="bottom-gutter">
|
||||||
You need a template before you can send
|
There are no
|
||||||
{{ 'emails' if 'email' == template_type else 'text messages' }}
|
{{ 'email' if 'email' == template_type else 'text message' }}
|
||||||
|
templates
|
||||||
</p>
|
</p>
|
||||||
<a href="{{ url_for('.add_service_template', service_id=current_service.id, template_type=template_type) }}" class="button">Add a new template</a>
|
<a href="{{ url_for('.add_service_template', service_id=current_service.id, template_type=template_type) }}" class="button">Add a new template</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
Reference in New Issue
Block a user