Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
- add custom CSS and JavaScript
-->

{% set section = "Home" %}

<!--
Use this to set the page name which will appear at the
start of the <title> tag, followed by the service name.
Expand Down
14 changes: 14 additions & 0 deletions app/views/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@
service: {
text: "App",
href: "/"
},
navigation: {
items: [
{
href: "/",
text: "Home",
current: (section == "Home")
},
{
href: "/profile",
text: "Profile",
current: (section == "Profile")
}
]
}
}) }}
{% endblock %}
Expand Down
91 changes: 91 additions & 0 deletions app/views/profile.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{% extends "layout.html" %}

{% set section = "Profile" %}
{% set pageName = "Profile" %}

{% block content %}

<h1 class="nhsuk-heading-xl">
{{ pageName }}
</h1>


{% set profileDescriptionHtml %}
<p class="nhsuk-u-margin-top-2 nhsuk-u-margin-bottom-0"><strong>Date of birth:</strong> 15 March 1984</p>
<p><strong>NHS number:</strong> 123 456 7890</p>
{% endset %}

{{ nhsappCardGroup({
stacked: true,
classes: "nhsapp-cards--pale-blue",
isListItem: false,
cards: [
{
title: "Mary Swanson",
titleClasses: "nhsuk-u-font-size-36",
headingLevel: "2",
descriptionHtml: profileDescriptionHtml
},
{
title: "Manage health services for others",
href: "#"
}
]
}) }}

{{ nhsappCardGroup({
stacked: true,
heading: "Personal details",
cards: [
{
title: "Contact details",
href: "#"
},
{
title: "Your GP surgery",
href: "#"
},
{
title: "Health choices",
href: "#"
},
{
title: "Care plans",
href: "#"
}
]
}) }}

{{ nhsappCardGroup({
stacked: true,
heading: "App settings",
cards: [
{
title: "Contact and login details",
href: "#"
},
{
title: "Cookies",
href: "#"
}
]
}) }}

{{ nhsappCardGroup({
stacked: true,
heading: "About the NHS App",
cards: [
{
title: "Privacy and legal information",
href: "#"
}
]
}) }}

{{ button({
text: "Logout",
href: "#",
variant: "secondary",
classes: "nhsapp-button"
})}}
{% endblock %}