mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 02:42:26 -05:00
Add page <title>s to tour pages
This commit is contained in:
@@ -4,6 +4,14 @@ from flask_login import login_required
|
||||
from app.main import main
|
||||
|
||||
|
||||
headings = [
|
||||
'Trial mode',
|
||||
'Start with templates',
|
||||
'Add recipients',
|
||||
'Send your messages',
|
||||
]
|
||||
|
||||
|
||||
@main.route("/services/<service_id>/tour/<int:page>")
|
||||
@login_required
|
||||
def tour(service_id, page):
|
||||
@@ -11,5 +19,6 @@ def tour(service_id, page):
|
||||
'views/tour/{}.html'.format(page),
|
||||
service_id=service_id, # TODO: fix when Nick’s PR is merged
|
||||
current_page=page,
|
||||
next_page=(page + 1)
|
||||
next_page=(page + 1),
|
||||
heading=headings[page - 1]
|
||||
)
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
{% block maincolumn_content %}
|
||||
|
||||
{% call banner_wrapper(type='tour') %}
|
||||
<h2 class="heading-large">Trial mode</h2>
|
||||
<h2 class="heading-large">{{ heading }}</h2>
|
||||
<p>
|
||||
To start off with, you can only send messages to yourself.
|
||||
</p>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
{% block maincolumn_content %}
|
||||
|
||||
{% call banner_wrapper(type='tour') %}
|
||||
<h2 class="heading-large">Start with templates</h2>
|
||||
<h2 class="heading-large">{{ heading }}</h2>
|
||||
<p>
|
||||
Set up a template like this:
|
||||
</p>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
{% block maincolumn_content %}
|
||||
|
||||
{% call banner_wrapper(type='tour') %}
|
||||
<h2 class="heading-large">Add recipients</h2>
|
||||
<h2 class="heading-large">{{ heading }}</h2>
|
||||
<p>
|
||||
Add recipients by uploading a .csv spreadsheet:
|
||||
</p>
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
{% from "components/banner.html" import banner_wrapper %}
|
||||
|
||||
{% block page_title %}
|
||||
{{heading}} – GOV.UK Notify
|
||||
{{ heading }} – GOV.UK Notify
|
||||
{% endblock %}
|
||||
|
||||
{% block maincolumn_content %}
|
||||
|
||||
{% call banner_wrapper(type='tour') %}
|
||||
<h2 class="heading-large">Send your messages</h2>
|
||||
<h2 class="heading-large">{{ heading }}</h2>
|
||||
<p>
|
||||
Notify merges your data with the template and sends the messages
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user