Skip to content

Commit a31139d

Browse files
authored
creating njk template for log swap vos pin credit details page (#16)
* creating njk template for log swap vos pin credit details page * Fixing indentation * Fix: added missing newline at EOF * Fixing indentation for njk function calls
1 parent 8c983ce commit a31139d

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

server/views/pages/log/swap-vos-pin-credit-details.njk

+37-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{% from "govuk/components/back-link/macro.njk" import govukBackLink %}
2+
{% from "govuk/components/character-count/macro.njk" import govukCharacterCount %}
3+
{% from "govuk/components/button/macro.njk" import govukButton %}
24

35
{% extends "../../partials/layout.njk" %}
46

@@ -11,5 +13,39 @@
1113
text: "Back",
1214
href: "/log/prisoner-details"
1315
}) }}
16+
17+
<span class="govuk-caption-xl">{{ appTypeTitle }}</span>
18+
<h1 class="govuk-heading-xl govuk-!-margin-top-0">Log details</h1>
19+
20+
<div class="govuk-width-container">
21+
<div class="govuk-grid-row">
22+
<div class="govuk-grid-column-one-half">
23+
<form method="POST" id="log-swap-vos-pin-credit-details">
24+
<input type="hidden" name="_csrf" value="{{ csrfToken }}" />
25+
26+
{{ govukCharacterCount({
27+
name: "swap-vos-pin-credit-details",
28+
id: "swap-vos-pin-credit-details",
29+
maxlength: 1000,
30+
threshold: 75,
31+
value: textareaValue,
32+
label: {
33+
text: "Details (optional)",
34+
classes: "govuk-label--s",
35+
isPageHeading: true
36+
},
37+
hint: {
38+
text: "Add a brief summary, for example, if this person is a Foreign National"
39+
}
40+
}) }}
41+
42+
{{ govukButton({
43+
text: "Continue",
44+
classes: "govuk-button--primary"
45+
}) }}
46+
</form>
47+
</div>
48+
</div>
49+
</div>
1450
</div>
15-
{% endblock %}
51+
{% endblock %}

0 commit comments

Comments
 (0)