Skip to content

Commit

Permalink
Add more legal pages
Browse files Browse the repository at this point in the history
  • Loading branch information
slawosz committed Oct 9, 2023
1 parent cd3e747 commit bd8368e
Show file tree
Hide file tree
Showing 8 changed files with 240 additions and 2 deletions.
6 changes: 6 additions & 0 deletions app/controllers/pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ def privacy_policy

def cookies_policy
end

def accessibility
end

def terms
end
end
2 changes: 2 additions & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
[
{href: "/pages/privacy-policy", text: "Privacy policy"},
{href: "/pages/cookies", text: "Cookies"},
{href: "/pages/accessibility", text: "Accessibility"},
{href: "/pages/terms", text: "Terms and Conditions"},
])
%>
</body>
Expand Down
60 changes: 60 additions & 0 deletions app/views/pages/accessibility.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<% content_for :title do %>
Accessibility
<% end %>

<% content_for :before_content do %>
<%= render GovukComponent::BackLinkComponent.new(
text: "Back",
href: root_path,
) %>
<% end %>

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-xl">Accessibility statement</h1>

<p class="govuk-body">
This service is run by the Department for Education (DfE).
</p>
<p class="govuk-body">
DfE is committed to making its websites accessible, in accordance with the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018.
</p>
<p class="govuk-body">
We want as many people as possible to be able to use this service.
</p>
<p class="govuk-body">
</p>
<p class="govuk-body">You should be able to:</p>
<ul class="govuk-list govuk-list--bullet">
<li>change colours, contrast levels and fonts</li>
<li>zoom in up to 300% without the text spilling off the screen</li>
<li>navigate most of the service using just a keyboard</li>
<li>navigate most of the service using speech recognition software</li>
<li>listen to most of the service using a screen reader (including the most recent versions of JAWS, NVDA and VoiceOver)</li>
</ul>
<p class="govuk-body">We have also made the service text as simple as possible to understand.</p>

<h2 class="govuk-heading-l">How accessible this service is</h2>
<p class="govuk-body">This service is fully compliant with the <%= govuk_link_to "Web Content Accessibility Guidelines version (WCAG) 2.1.", "https://www.w3.org/TR/WCAG21/" %></p>
<p class="govuk-body">We are constantly improving the service and run accessibility audits during each new phase of development<./p>

<h2 class="govuk-heading-l">Reporting accessibility problems</h2>
<p class="govuk-body"><%= govuk_link_to 'Contact DfE', "https://form.education.gov.uk/service/Contact_the_Department_for_Education" %> if you find any problems that are not listed on this page or think we're not meeting accessibility requirements.</p>

<h2 class="govuk-heading-l">Enforcement procedure</h2>
<p class="govuk-body">The Equality and Human Rights Commission (EHRC) is responsible for enforcing the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018 (the 'accessibility regulations').</p>
<p class="govuk-body">If you are not happy with how we respond to your complaint, <%= govuk_link_to 'contact the Equality Advisory and Support Service (EASS)', "https://www.equalityadvisoryservice.com/" %></p>

<h2 class="govuk-heading-l">How we tested this website</h2>
<p class="govuk-body">This website was last tested in October 2023. The test was carried out by an internal team at DFE.</p>
<p class="govuk-body">The team tested various combinations of the following for both desktop and mobile and tablet users:</p>
<ul class="govuk-list govuk-list--bullet">
<li>assistive technologies (for example, screen magnifiers, screen readers and speech recognition tools)</li>
<li>different browsers (IE11, Firefox, Safari, Chrome)</li>
<li>manual testing</li>
</ul>
<p class="govuk-body">
This statement was last updated on 6 October 2023.
</p>
</div>
</div>
2 changes: 1 addition & 1 deletion app/views/pages/cookies_policy.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</thead>
<tbody class="govuk-table__body">
<tr class="govuk-table__row">
<td class="govuk-table__cell">_teaching_school_hub_finder_session</td>
<td class="govuk-table__cell">_tshf_session</td>
<td class="govuk-table__cell" width="50%">Used to keep you signed in and store application details</td>
<td class="govuk-table__cell">2 weeks</td>
</tr>
Expand Down
165 changes: 165 additions & 0 deletions app/views/pages/terms.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
<% content_for :title do %>
Terms and conditions
<% end %>

<% content_for :before_content do %>
<%= render GovukComponent::BackLinkComponent.new(
text: "Back",
href: root_path,
) %>
<% end %>

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-xl">Terms and conditions</h1>

<p class="govuk-body">
'Teaching school hub finder' is a service run by the Department for Education (DfE).
</p>

<p class="govuk-body">
By using this service, you automatically agree to these terms and conditions in addition to the terms and conditions which apply to the use of all GOV.UK websites.
</p>

<p class="govuk-body">
If you do not agree to these terms and conditions, you must not use this service.
</p>

<h2 class="govuk-heading-l">
Disclaimer
</h2>

<p class="govuk-body">
We do not provide any guarantees, conditions or warranties that the information on this service will be:
</p>

<ul class="govuk-list govuk-list--bullet">
<li>
current
</li>
<li>
secure
</li>
<li>
accurate
</li>
<li>
complete
</li>
<li>
reliable and always available
</li>
<li>
free from bugs or viruses or any other type of damaging software or malicious technology
</li>
</ul>

<p class="govuk-body">
You must use this service:
</p>

<ul class="govuk-list govuk-list--bullet">
<li>
only to find a Teaching School Hub
</li>

<li>
only for lawful purposes
</li>
</ul>

<p class="govuk-body">
You must not:
</p>

<ul class="govuk-list govuk-list--bullet">
<li>
charge your website's users to click on a link to any page of the service
</li>
<li>
use this service in a way that infringes the rights of, or restricts or inhibits the use or enjoyment of, this site by anyone else
</li>
<li>
say or act in a way that implies that your website is associated with this service, DfE, GOV.UK or another government department or agency
</li>
<li>
load our service pages into frames on your site
</li>
<li>
access parts of the site which are not publicly available, or any data or information that belongs or relates to a third party, without express consent
</li>
</ul>

<h2 class="govuk-heading-l">
Viruses, hacking and other offences
</h2>

<p class="govuk-body">
You must not:
</p>

<ul class="govuk-list govuk-list--bullet">
<li>
introduce viruses, trojans, worms, logic bombs or any other material that may cause damage or loss to our IT systems or their content, or be malicious or technologically harmful
</li>
<li>
try to gain unauthorised access to this service, the server on which it is stored or any server, computer or database connected to it
</li>
<li>
attack this service in any way (this includes denial-of-service attacks)
</li>
</ul>

<p class="govuk-body">
We reserve the right to report any attacks or attempts to gain unauthorised access to this service or GOV.UK to the relevant law enforcement authorities and share information about you with them without notice.
</p>

<h2 class="govuk-heading-l">
Information about you
</h2>

<p class="govuk-body">
We collect information about you in accordance with our <%= govuk_link_to "privacy policy", "/pages/privacy-policy" %> but cannot guarantee that your personal data remains confidential.
</p>

<p class="govuk-body">
By using this service, you agree to us collecting the data outlined in our privacy policy.
</p>

<h2 class="govuk-heading-l">
Validity of these terms and conditions
</h2>

<p class="govuk-body">
If any of these terms and conditions are held to be invalid, unenforceable, or illegal for any reason, the remaining terms and conditions will still apply.
</p>

<h2 class="govuk-heading-l">
Governing law
</h2>

<p class="govuk-body">
These terms and conditions are governed by and construed in accordance with the laws of England and Wales.
</p>

<p class="govuk-body">
Any dispute you have which relates to these terms and conditions or your use of this service, whether contractual or non-contractual, will be subject to the exclusive jurisdiction of the courts of England and Wales (or Scotland or Northern Ireland if you are an individual in either of those jurisdictions) or, at our discretion, in any other courts having jurisdiction.
</p>

<h2 class="govuk-heading-l">
Changes to these terms and conditions
</h2>

<p class="govuk-body">
We check these terms and conditions regularly. We can update them at any time without notice.
</p>

<p class="govuk-body">
You are automatically deemed to agree to any changes if you continue to use this service after the terms and conditions have been updated.
</p>

<p class="govuk-body">
Last updated 6 October 2023.
</p>
</div>
</div>
3 changes: 3 additions & 0 deletions config/initializers/session_store.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Rails.application.configure do
config.session_store :cookie_store, key: "_tshf_session"
end
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ en:
service:
title: Find a teaching school hub
name: Find a teaching school hub
email: my-service@email
email: [email protected]

pages:
home:
Expand Down
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
get "/pages/home", to: "pages#home"
get "/pages/privacy-policy", to: "pages#privacy_policy"
get "/pages/cookies", to: "pages#cookies_policy"
get "/pages/accessibility", to: "pages#accessibility"
get "/pages/terms", to: "pages#terms"

scope via: :all do
get '/404', to: 'errors#not_found'
Expand Down

0 comments on commit bd8368e

Please sign in to comment.