mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-18 00:01:59 -04:00
Remove the get started banner from the dashboard
We cover this stuff in the tour now. It can also show up if you delete all your templates.
This commit is contained in:
@@ -10,9 +10,7 @@
|
||||
|
||||
<h1 class="visuallyhidden">Dashboard</h1>
|
||||
|
||||
{% if not templates and current_user.has_permissions(['send_texts', 'send_emails', 'send_letters'], any_=True) %}
|
||||
{% include 'views/dashboard/get-started.html' %}
|
||||
{% elif current_user.has_permissions([
|
||||
{% if current_user.has_permissions([
|
||||
'manage_templates', 'manage_api_keys', 'manage_users', 'manage_settings
|
||||
'], any_=True, admin_override=True) %}
|
||||
{% if current_service.restricted %}
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
{% from "components/banner.html" import banner_wrapper %}
|
||||
|
||||
{% if current_user.has_permissions(['manage_templates']) %}
|
||||
{% call banner_wrapper(type='tour') %}
|
||||
<h2 class="heading-large">You’re ready to get started</h2>
|
||||
<p>
|
||||
<a href='{{ url_for(".add_service_template", service_id=current_service.id, template_type="sms") }}'>
|
||||
Set up a text message template
|
||||
</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href='{{ url_for(".add_service_template", service_id=current_service.id, template_type="email") }}'>
|
||||
Set up an email template
|
||||
</a>
|
||||
</p>
|
||||
{% endcall %}
|
||||
{% else %}
|
||||
{% call banner_wrapper(type='mode') %}
|
||||
<p>
|
||||
You need to ask your service manager to set up some templates before you can send messages
|
||||
</p>
|
||||
{% endcall %}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user