diff --git a/templates/task-list.html b/templates/task-list.html index d9314cf..3a76aca 100644 --- a/templates/task-list.html +++ b/templates/task-list.html @@ -15,6 +15,15 @@

{{ serviceName }}

[ Heading for first set of tasks ]

+ {% set completedStatus = { + text: "Completed" + } %} + + {% set incompleteStatus = { + text: "Incomplete", + classes: "govuk-tag--blue" + } %} + {{ govukTaskList({ idPrefix: "first-section", items: [ @@ -24,9 +33,7 @@

[ Heading for first set of tasks ]

text: "Name of first task" }, href: "#", - status: { - text: "Completed" - } + status: completedStatus }, { title: @@ -34,12 +41,7 @@

[ Heading for first set of tasks ]

text: "Name of second task" }, href: "#", - status: { - tag: { - text: "Not started", - classes: "govuk-tag--blue" - } - } + status: incompleteStatus } ] }) @@ -56,9 +58,7 @@

[ Heading for second set of tas text: "Name of third task" }, href: "#", - status: { - text: "Completed" - } + status: completedStatus }, { title: @@ -66,12 +66,7 @@

[ Heading for second set of tas text: "Name of fifth task" }, href: "#", - status: { - tag: { - text: "Not started", - classes: "govuk-tag--blue" - } - } + status: incompleteStatus }, { title: @@ -79,9 +74,7 @@

[ Heading for second set of tas text: "Name of sixth task" }, href: "#", - status: { - text: "Completed" - } + status: completedStatus }, { title: @@ -89,12 +82,7 @@

[ Heading for second set of tas text: "Name of seventh task" }, href: "#", - status: { - tag: { - text: "Not started", - classes: "govuk-tag--blue" - } - } + status: incompleteStatus }, { title: @@ -102,12 +90,7 @@

[ Heading for second set of tas text: "Name of eighth task" }, href: "#", - status: { - tag: { - text: "Not started", - classes: "govuk-tag--blue" - } - } + status: incompleteStatus } ] })