Add page <title>s to tour pages

This commit is contained in:
Chris Hill-Scott
2016-04-04 16:54:28 +01:00
parent 47b86e70df
commit 0a3567ec48
5 changed files with 15 additions and 6 deletions

View File

@@ -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 Nicks PR is merged
current_page=page,
next_page=(page + 1)
next_page=(page + 1),
heading=headings[page - 1]
)

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>