diff --git a/app/templates/views/choose-template.html b/app/templates/views/choose-template.html index 1b97ad899..2d0b56551 100644 --- a/app/templates/views/choose-template.html +++ b/app/templates/views/choose-template.html @@ -15,6 +15,10 @@

{{ page_heading }}

{% if current_user.has_permissions(permissions=['manage_templates'], any_=True) %} +

+ You need a template before you can send + {{ 'emails' if 'email' == template_type else 'text messages' }} +

Add a new template {% else %}

You need to ask your service manager to add templates before you can send messages

diff --git a/app/templates/views/dashboard/dashboard.html b/app/templates/views/dashboard/dashboard.html index bdf9c1838..4fe589ed5 100644 --- a/app/templates/views/dashboard/dashboard.html +++ b/app/templates/views/dashboard/dashboard.html @@ -10,12 +10,11 @@ {% include 'views/dashboard/trial-mode-banner.html' %} {% endif %} - {% if not jobs %} - {% if current_user.has_permissions(['manage_templates','send_texts', 'send_emails', 'send_letters']) %} - {% include 'views/dashboard/get-started.html' %} - {% endif%} - {% else %} + {% if not templates and current_user.has_permissions(['send_texts', 'send_emails', 'send_letters'], any_=True) %} + {% include 'views/dashboard/get-started.html' %} + {% endif %} + {% if templates %}
Get started -
    - {% if current_user.has_permissions(['manage_templates']) %} +{% if current_user.has_permissions(['manage_templates']) %} +

    + You need to set up a template before you can send messages +

    +
    1. - {% call banner_wrapper(type="tip", subhead='1.' if not templates else None, with_tick=templates|length) %} - Add a template + {% call banner_wrapper(type="tip") %} + + Set up a text message template + {% endcall %}
    2. - {% endif %} - {% if current_user.has_permissions(['send_texts', 'send_emails', 'send_letters']) %}
    3. - {% call banner_wrapper(type="tip", subhead='2.') %} - Send yourself a message + {% call banner_wrapper(type="tip") %} + + Set up an email template + {% endcall %}
    4. - {% endif %} -
    +
+{% else %} +

+

+ You need to ask your service manager to set up some templates before you can send messages +

+

+{% endif %}