Skip to content

Commit ba172d2

Browse files
authored
RA-242: create log prisoner details njk template (#13)
* create log prisoner details template * update heading classes
1 parent 4711324 commit ba172d2

File tree

2 files changed

+46
-9
lines changed

2 files changed

+46
-9
lines changed

server/views/pages/log/application-type.njk

+2-8
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,13 @@
1515
}) }}
1616

1717
<span class="govuk-caption-xl">Log an application</span>
18+
<h1 class="govuk-heading-xl govuk-!-margin-top-0">Select application type</h1>
1819

19-
<form method="POST" id="logApplicationType">
20+
<form method="POST" id="log-application-type">
2021
<input type="hidden" name="_csrf" value="{{ csrfToken }}" />
2122

2223
{{ govukRadios({
2324
name: "applicationType",
24-
fieldset: {
25-
legend: {
26-
text: title,
27-
isPageHeading: true,
28-
classes: "govuk-fieldset__legend--l"
29-
}
30-
},
3125
items: applicationTypes
3226
}) }}
3327

server/views/pages/log/prisoner-details.njk

+44-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{% from "govuk/components/back-link/macro.njk" import govukBackLink %}
2+
{% from "govuk/components/button/macro.njk" import govukButton %}
3+
{% from "govuk/components/input/macro.njk" import govukInput %}
4+
{% from "govuk/components/inset-text/macro.njk" import govukInsetText %}
5+
6+
{%- from "moj/components/date-picker/macro.njk" import mojDatePicker -%}
27

38
{% extends "../../partials/layout.njk" %}
49

@@ -9,7 +14,45 @@
914
<div class="govuk-body govuk-width-container">
1015
{{ govukBackLink({
1116
text: "Back",
12-
href: "/"
17+
href: "/log/application-type"
1318
}) }}
19+
20+
<span class="govuk-caption-xl">{{ appTypeTitle }}</span>
21+
<h1 class="govuk-heading-xl govuk-!-margin-top-0">Log prisoner details</h1>
22+
23+
<form method="POST" id="log-prisoner-details">
24+
<input type="hidden" name="_csrf" value="{{ csrfToken }}" />
25+
26+
<div class="govuk-form-group govuk-!-margin-bottom-0">
27+
<label class="govuk-label govuk-label--s" for="prisonNumber">
28+
Prison number
29+
</label>
30+
31+
<input class="govuk-input govuk-input--width-10" id="prisonNumber" name="prisonNumber" type="text" value="">
32+
33+
<button id="prison-number-lookup" class="govuk-button govuk-button--secondary" data-module="govuk-button">
34+
Find prisoner
35+
</button>
36+
</div>
37+
38+
{{ govukInsetText({
39+
text: "Prisoner name: Patel, Taj",
40+
classes: "govuk-!-margin-top-0"
41+
}) }}
42+
43+
{{ mojDatePicker({
44+
id: "date",
45+
name: "date",
46+
label: {
47+
text: "Date",
48+
classes: "govuk-label--s"
49+
}
50+
}) }}
51+
52+
{{ govukButton({
53+
text: "Continue",
54+
classes: "govuk-button--primary"
55+
}) }}
56+
</form>
1457
</div>
1558
{% endblock %}

0 commit comments

Comments
 (0)