mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
Previously the ‘get started’ block on the dashboard pushed users into starting with a text message. This led to users writing email content into a tet message template because it didn’t match their expectations. Also, the ‘send yourself a test’ link from the dashboard: - wasn’t much used, because users responded to the similar call to action on the choose template page instead - was confusing if you had created an email template because it presupposed that you’d created a text message template So this commit changes the ‘get started’ block to be a choice between creating an email template or a text message template. We reckon that the language of ‘set up’ will help establish that templates are not equivalent to individual messages. This language is now repeated on the ‘choose template’ page when you don’t have templates as well.
31 lines
820 B
HTML
31 lines
820 B
HTML
{% extends "withnav_template.html" %}
|
||
|
||
{% block page_title %}
|
||
{{ session.get('service_name', 'Dashboard') }} – GOV.UK Notify
|
||
{% endblock %}
|
||
|
||
{% block maincolumn_content %}
|
||
|
||
{% if service.restricted %}
|
||
{% include 'views/dashboard/trial-mode-banner.html' %}
|
||
{% endif %}
|
||
|
||
{% 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 %}
|
||
<div
|
||
data-module="update-content"
|
||
data-resource="{{url_for(".service_dashboard_updates", service_id=service_id)}}"
|
||
data-key="today"
|
||
data-interval-seconds="10"
|
||
>
|
||
{% include 'views/dashboard/today.html' %}
|
||
</div>
|
||
|
||
{% include 'views/dashboard/jobs.html' %}
|
||
{% endif %}
|
||
|
||
{% endblock %}
|