Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Commit 1e0cdf3

Browse files
Add a template
1 parent 690ca37 commit 1e0cdf3

File tree

2 files changed

+87
-0
lines changed

2 files changed

+87
-0
lines changed

govuk-prototype-kit.config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,12 @@
44
],
55
"sass": [
66
"/style/task-list-compoent.scss"
7+
],
8+
"templates": [
9+
{
10+
"name": "Task list page",
11+
"path": "/templates/task-list.html",
12+
"type": "nunjucks"
13+
}
714
]
815
}

templates/task-list.html

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{% extends "govuk-prototype-kit/layouts/govuk-branded.html" %}
2+
3+
{% block pageTitle %}
4+
Task list template – {{ serviceName }} – GOV.UK Prototype Kit
5+
{% endblock %}
6+
7+
{% block content %}
8+
9+
{% from "task-list-component/macro.njk" import govukTaskList %}
10+
11+
<div class="govuk-grid-row">
12+
<div class="govuk-grid-column-two-thirds">
13+
<h1 class="govuk-heading-l">Apply for a juggling licence</h1>
14+
15+
<section class="govuk-!-margin-bottom-8">
16+
<h2 class="govuk-heading-m">About you</h2>
17+
18+
{{govukTaskList({
19+
items: [
20+
{
21+
href: "/name",
22+
title: {
23+
text: "Name and date of birth"
24+
},
25+
status: {
26+
classes: "govuk-task-list__status--blue",
27+
text: "Incomplete"
28+
}
29+
},
30+
{
31+
href: "/contact details",
32+
title: {
33+
text: "Contact details"
34+
},
35+
status: {
36+
classes: "govuk-task-list__status--blue",
37+
text: "Incomplete"
38+
}
39+
}
40+
]
41+
})}}
42+
</section>
43+
44+
<section class="govuk-!-margin-bottom-8">
45+
<h2 class="govuk-heading-m">Your juggling</h2>
46+
47+
{{govukTaskList({
48+
items: [
49+
{
50+
href: "/skills",
51+
title: {
52+
text: "Skills and abilities"
53+
},
54+
status: {
55+
classes: "govuk-task-list__status--blue",
56+
text: "Incomplete"
57+
}
58+
},
59+
{
60+
href: "/tricks",
61+
title: {
62+
text: "Tricks and routines"
63+
},
64+
status: {
65+
classes: "govuk-task-list__status--blue",
66+
text: "Incomplete"
67+
}
68+
}
69+
]
70+
})}}
71+
</section>
72+
73+
{{ govukButton({
74+
text: "Review your application",
75+
href: "/review"
76+
}) }}
77+
</div>
78+
</div>
79+
80+
{% endblock %}

0 commit comments

Comments
 (0)