Skip to content

Commit 8b1f448

Browse files
Add a dashboard and clean up layouts
1 parent 6fa816e commit 8b1f448

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

app/views/_templates/layout-app.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
{% extends "layout.html" %}
33

44

5+
{% block beforeContent %}
6+
7+
{{ backLink({
8+
href: "javascript:history.back();",
9+
text: "Go back"
10+
}) }}
11+
12+
{% endblock %}
13+
14+
515
{% block content %}
616
<div class="nhsuk-grid-row">
717
<div class="nhsuk-grid-column-two-thirds">

app/views/dashboard.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
{% extends 'layout-app.html' %}
3+
4+
{% set pageHeading = "Dashboard" %}
5+
6+
7+
{% block pageContent %}
8+
9+
<h1>
10+
{{pageHeading}}
11+
</h1>
12+
13+
14+
{% endblock %}

app/views/index.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11

22
{% extends 'layout-app.html' %}
33

4-
{% set formAction = "foo" %}
5-
64

75
{% block pageContent %}
86

@@ -11,4 +9,13 @@ <h1>
119
<span class="nhsuk-caption-xl nhsuk-caption--bottom">Prototype kit {{version}}</span>
1210
</h1>
1311

12+
<p>
13+
Index page to link to bits of the prototype.
14+
</p>
15+
16+
{{ button({
17+
text: "Go to dashboard",
18+
href: "/dashboard"
19+
}) }}
20+
1421
{% endblock %}

0 commit comments

Comments
 (0)