mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-26 17:24:23 -04:00
Add cookie banner text, page, and footer links
> Let’s start the footer links with the cookie page. > Banner to say: "GOV.UK Notify uses cookies to make the site simpler. Find out > more about cookies" > Standard style one... see > https://www.registertovote.service.gov.uk/register-to-vote/cookies or > https://www.digitalmarketplace.service.gov.uk/cookies > > Let's link to the feedback form too... > https://docs.google.com/forms/d/1AL8U-xJX_HAFEiQiJszGQw0PcEaEUnYATSntEghNDGo/viewform > Call it Support and feedback https://www.pivotaltracker.com/story/show/115483375
This commit is contained in:
@@ -30,3 +30,19 @@
|
|||||||
padding-left: 2px;
|
padding-left: 2px;
|
||||||
padding-right: 2px;
|
padding-right: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.global-cookie-message {
|
||||||
|
p {
|
||||||
|
@extend %site-width-container;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-nav {
|
||||||
|
@include copy-16;
|
||||||
|
margin-bottom: $gutter-two-thirds;
|
||||||
|
|
||||||
|
a {
|
||||||
|
display: inline-block;
|
||||||
|
margin-right: $gutter-half;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -80,3 +80,11 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
td {
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.heading-xlarge {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|||||||
@@ -16,3 +16,8 @@ def index():
|
|||||||
@login_required
|
@login_required
|
||||||
def verify_mobile():
|
def verify_mobile():
|
||||||
return render_template('views/verify-mobile.html')
|
return render_template('views/verify-mobile.html')
|
||||||
|
|
||||||
|
|
||||||
|
@main.route('/cookies')
|
||||||
|
def cookies():
|
||||||
|
return render_template('views/cookies.html')
|
||||||
|
|||||||
@@ -24,6 +24,10 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block cookie_message %}
|
{% block cookie_message %}
|
||||||
|
<p>
|
||||||
|
GOV.UK Notify uses cookies to make the site simpler.
|
||||||
|
<a href="{{ url_for("main.cookies") }}">Find out more about cookies</a>
|
||||||
|
</p>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block inside_header %}
|
{% block inside_header %}
|
||||||
@@ -68,6 +72,14 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block footer_support_links %}
|
||||||
|
<nav class="footer-nav">
|
||||||
|
<a href="https://docs.google.com/forms/d/1AL8U-xJX_HAFEiQiJszGQw0PcEaEUnYATSntEghNDGo/viewform">Support and feedback</a>
|
||||||
|
<a href="{{ url_for("main.cookies") }}">Cookies</a>
|
||||||
|
Built by the <a href="https://www.gov.uk/government/organisations/government-digital-service">Government Digital Service</a>
|
||||||
|
</nav>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block body_end %}
|
{% block body_end %}
|
||||||
<script type="text/javascript" src="{{ asset_url('javascripts/all.js') }}" /></script>
|
<script type="text/javascript" src="{{ asset_url('javascripts/all.js') }}" /></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
81
app/templates/views/cookies.html
Normal file
81
app/templates/views/cookies.html
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
{% extends "withoutnav_template.html" %}
|
||||||
|
|
||||||
|
{% block page_title %}
|
||||||
|
Cookies – GOV.UK Notify
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block maincolumn_content %}
|
||||||
|
|
||||||
|
<div class="grid-row">
|
||||||
|
<div class="column-two-thirds">
|
||||||
|
<h1 class="heading-xlarge">Cookies</h1>
|
||||||
|
<p class="summary">
|
||||||
|
GOV.UK Notify puts small files (known as ‘cookies’)
|
||||||
|
on to your computer.
|
||||||
|
</p>
|
||||||
|
<p>These cookies are used to remember you once you’ve logged in</p>
|
||||||
|
<p>
|
||||||
|
Find out <a href="http://www.aboutcookies.org/">how to manage cookies</a>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2 class="heading-medium">Session cookies</h2>
|
||||||
|
<p>
|
||||||
|
We store session cookies on your computer to help keep your information
|
||||||
|
secure while you use the service.
|
||||||
|
</p>
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Purpose</th>
|
||||||
|
<th>Expires</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
notify_admin_session
|
||||||
|
</td>
|
||||||
|
<td width="50%">
|
||||||
|
Used to keep you logged in
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
1 hour
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<h2 class="heading-medium">Introductory message cookie</h2>
|
||||||
|
<p>
|
||||||
|
When you first use the service, you may see a pop-up ‘welcome’ message.
|
||||||
|
Once you’ve seen the message, we store a cookie on your computer so it
|
||||||
|
knows not to show it again.
|
||||||
|
</p>
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Purpose</th>
|
||||||
|
<th>Expires</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
seen_cookie_message
|
||||||
|
</td>
|
||||||
|
<td width="50%">
|
||||||
|
Saves a message to let us know that you have seen our cookie
|
||||||
|
message
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
1 month
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
@@ -175,7 +175,7 @@ def test_new_user_accept_invite_calls_api_and_views_registration_page(app_,
|
|||||||
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
|
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
|
||||||
assert page.h1.string.strip() == 'Create an account'
|
assert page.h1.string.strip() == 'Create an account'
|
||||||
|
|
||||||
email_in_page = page.find('p')
|
email_in_page = page.find('main').find('p')
|
||||||
assert email_in_page.text.strip() == 'Your account will be created with this email: invited_user@test.gov.uk' # noqa
|
assert email_in_page.text.strip() == 'Your account will be created with this email: invited_user@test.gov.uk' # noqa
|
||||||
|
|
||||||
form = page.find('form')
|
form = page.find('form')
|
||||||
|
|||||||
Reference in New Issue
Block a user