Skip to content

Commit

Permalink
Contact us before login (#994)
Browse files Browse the repository at this point in the history
* update contact us page

* update and extend test

* force build

* setup github actions for feature branch

* updated for comments

* update heading sizes

* update heading heirarchy
  • Loading branch information
matthew-robinson-ons authored Oct 2, 2024
1 parent 53ce41d commit 421f0c6
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ name: Build
on:
push:
branches:
- main
- survey-respondent-help-journey
paths-ignore:
- _infra/spinnaker/**
pull_request:
branches:
- main
- survey-respondent-help-journey
paths-ignore:
- _infra/spinnaker/**

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,4 @@ gpg --armor --export ED1B7A3EADF95687
```
current saved exported public private keys are dev-public-key.asc dev-private-key.asc
The private key is only supplied for testing decryption
passphase if needed is PASSWORD1
passphase if needed is PASSWORD1
37 changes: 28 additions & 9 deletions frontstage/templates/contact-us.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,42 @@

{% extends "layouts/_block_content.html" %}
{% from "components/address-output/_macro.njk" import onsAddressOutput %}
{% from "components/breadcrumbs/_macro.njk" import onsBreadcrumbs %}

{% set page_title = "Contact us" %}

{% set breadcrumbsData = [
{
"text": "Back",
"url": "/sign-in/",
"id": "b-item"
}
] %}
{% block breadcrumbs %}
{{
onsBreadcrumbs({
"ariaLabel": "Breadcrumbs",
"id": "breadcrumbs",
"itemsList": breadcrumbsData
})
}}
{% endblock breadcrumbs %}

{% block main %}
<h1 class="ons-u-fs-xxl">Contact us</h1>

<h1 class="ons-u-fs-xl">Contact us</h1>
<h2>
Email
</h2>
<p><a href="mailto:[email protected]">[email protected]</a></p>

<h2>
Telephone
Phone
</h2>
<div class="ons-u-fs-r">
<p><a href="tel:+44-300-1234-931">0300 1234 931</a></p>
</div>
<div class="ons-u-fs-r">
<p class="ons-u-mb-l">Opening hours:<br />
Monday to Thursday 8:30am – 5pm<br/>
Friday 8:30am - 4:30pm</p>
<div class="ons-u-mb-xs">
<p> +44 300 1234 931<br/>
Monday to Thursday 8:30am to 5:00pm<br/>
Friday 8:30am to 4:00pm</p>
</div>
<h2>
Post
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/views/test_cookies_and_contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ def test_contact_success(self, mock_request):

self.assertEqual(response.status_code, 200)
self.assertTrue("Contact us".encode() in response.data)
self.assertTrue("Opening hours:".encode() in response.data)
self.assertIn(b'href="/sign-in/"', response.data)

0 comments on commit 421f0c6

Please sign in to comment.