Skip to content

Commit d2932c6

Browse files
Move back links to beforeContent block (#216)
1 parent e862c5a commit d2932c6

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

app/views/vaccines/deplete-batch.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66

77
{% set currentSection = "vaccines" %}
88

9+
{% block beforeContent %}
10+
{{ backLink({ href: "/vaccines/" + vaccine.id, text: "Back" }) }}
11+
{% endblock %}
12+
913
{% block content %}
1014
<div class="nhsuk-grid-row">
1115
<div class="nhsuk-grid-column-two-thirds">
1216

13-
{{ backLink({ href: "/vaccines/" + vaccine.id, text: "Back" }) }}
14-
1517
<h1 class="nhsuks-heading-l">Deplete batch</h1>
1618

1719
{{ summaryList({

app/views/vaccines/edit-batch.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66

77
{% set currentSection = "vaccines" %}
88

9+
{% block beforeContent %}
10+
{{ backLink({ href: "/vaccines/" + vaccine.id, text: "Back" }) }}
11+
{% endblock %}
12+
913
{% block content %}
1014
<div class="nhsuk-grid-row">
1115
<div class="nhsuk-grid-column-two-thirds">
1216

13-
{{ backLink({ href: "/vaccines/" + vaccine.id, text: "Back" }) }}
14-
1517
<h1 class="nhsuks-heading-xl">Edit batch</h1>
1618

1719
<form action="/vaccines/{{ vaccine.id }}/{{ batch.batchNumber }}/update" method="post" novalidate="true">

app/views/vaccines/reactivate.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66

77
{% set currentSection = "vaccines" %}
88

9+
{% block beforeContent %}
10+
{{ backLink({ href: "/vaccines/" + vaccine.id, text: "Back" }) }}
11+
{% endblock %}
12+
913
{% block content %}
1014
<div class="nhsuk-grid-row">
1115
<div class="nhsuk-grid-column-two-thirds">
1216

13-
{{ backLink({ href: "/vaccines/" + vaccine.id, text: "Back" }) }}
14-
1517
<h1 class="nhsuks-heading-l">Reactivate batch {{ batch.batchNumber }}</h1>
1618

1719
<p>This batch will become ‘active’ immediately.</p>

0 commit comments

Comments
 (0)