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