-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30594d5
commit 65ed903
Showing
5 changed files
with
118 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
{% extends "layouts/main.html" %} | ||
|
||
{% block pageTitle %} | ||
Task list template – {{ serviceName }} – GOV.UK Prototype Kit | ||
{% endblock %} | ||
|
||
{% block beforeContent %} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
|
||
<h1 class="govuk-heading-l">{{ serviceName }}</h1> | ||
|
||
<h2 class="govuk-heading-m">[ Heading for first set of tasks ]</h2> | ||
|
||
{% set completedStatus = { | ||
text: "Completed" | ||
} %} | ||
|
||
{% set incompleteStatus = { | ||
text: "Incomplete", | ||
classes: "govuk-tag--blue" | ||
} %} | ||
|
||
{% To switch between the completed and incomplete statues, use some inline logic within the component below, like this: "status: (completedStatus if ... else incompleteStatus)" %} | ||
|
||
{{ govukTaskList({ | ||
idPrefix: "first-section", | ||
items: [ | ||
{ | ||
title: | ||
{ | ||
text: "Name of first task" | ||
}, | ||
href: "#", | ||
status: completedStatus | ||
}, | ||
{ | ||
title: | ||
{ | ||
text: "Name of second task" | ||
}, | ||
href: "#", | ||
status: incompleteStatus | ||
} | ||
] | ||
}) | ||
}} | ||
|
||
<h2 class="govuk-heading-m govuk-!-margin-top-5">[ Heading for second set of tasks ]</h2> | ||
|
||
{{ govukTaskList({ | ||
idPrefix: "second-section", | ||
items: [ | ||
{ | ||
title: | ||
{ | ||
text: "Name of third task" | ||
}, | ||
href: "#", | ||
status: completedStatus | ||
}, | ||
{ | ||
title: | ||
{ | ||
text: "Name of fifth task" | ||
}, | ||
href: "#", | ||
status: incompleteStatus | ||
}, | ||
{ | ||
title: | ||
{ | ||
text: "Name of sixth task" | ||
}, | ||
href: "#", | ||
status: completedStatus | ||
}, | ||
{ | ||
title: | ||
{ | ||
text: "Name of seventh task" | ||
}, | ||
href: "#", | ||
status: incompleteStatus | ||
}, | ||
{ | ||
title: | ||
{ | ||
text: "Name of eighth task" | ||
}, | ||
href: "#", | ||
status: incompleteStatus | ||
} | ||
] | ||
}) | ||
}} | ||
|
||
<div class="govuk-!-margin-top-5"> | ||
{{ govukButton({ text: "Apply", href: "#" }) }} | ||
</div> | ||
|
||
</div> | ||
</div> | ||
{% endblock %} |