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:
Chris Hill-Scott
2016-04-07 15:34:46 +01:00
parent 65761e5c17
commit 382a233241

View File

@@ -16,8 +16,9 @@
{% if current_user.has_permissions(permissions=['manage_templates'], any_=True) %}
<p class="bottom-gutter">
You need a template before you can send
{{ 'emails' if 'email' == template_type else 'text messages' }}
There are no
{{ 'email' if 'email' == template_type else 'text message' }}
templates
</p>
<a href="{{ url_for('.add_service_template', service_id=current_service.id, template_type=template_type) }}" class="button">Add a new template</a>
{% else %}