|
1 | 1 | {% extends "../template.njk" %}
|
2 |
| -{% from "../macros/common-components.njk" import goBack %} |
| 2 | +{% from "../macros/common-components.njk" import goBack, submitButton %} |
3 | 3 | {% from "govuk/components/summary-list/macro.njk" import govukSummaryList %}
|
4 | 4 | {% from "govuk/components/details/macro.njk" import govukDetails %}
|
5 | 5 |
|
6 |
| -{% block head %} |
7 |
| - {{ super() }} |
8 |
| -{% endblock %} |
9 | 6 | {% block pageTitle %}
|
10 | 7 | {{ title }}
|
11 | 8 | {% endblock %}
|
12 | 9 |
|
13 | 10 | {% block beforeContent %}
|
14 |
| - |
15 | 11 | {{ super() }}
|
16 |
| - {{ goBack(text = backButton, cspNonce = cspNonce) }} |
| 12 | + {{ goBack(cspNonce = cspNonce) }} |
17 | 13 | {% endblock %}
|
18 | 14 |
|
19 | 15 | {% block content %}
|
|
27 | 23 | {% endif %}</h1>
|
28 | 24 |
|
29 | 25 | <div id="section1">
|
30 |
| - <h2 class="govuk-heading-m">Metadata</h2> |
| 26 | + <form method="post"> |
| 27 | + {% if not noMatchArtefact %} |
| 28 | + {{ submitButton(label = resubmit, id = 'resubmit-subscription') }} |
| 29 | + {% endif %} |
31 | 30 |
|
32 |
| - {{ govukSummaryList({ |
33 |
| - rows: [ |
34 |
| - {key: {text: "Artefact Id"}, value: { text: metadata.artefactId} }, |
35 |
| - {key: {text: "Language"}, value: { text: metadata.language | titleCase} }, |
36 |
| - {key: {text: "Location Id"}, value: { text: metadata.locationId} }, |
37 |
| - {key: {text: "Location Name"}, value: { text: courtName } }, |
38 |
| - {key: {text: "List Type"}, value: { text: metadata.listType | listType} }, |
39 |
| - {key: {text: "Provenance"}, value: { text: metadata.provenance} }, |
40 |
| - {key: {text: "Publication Type"}, value: { text: metadata.type | titleCase} }, |
41 |
| - {key: {text: "Sensitivity"}, value: { text: metadata.sensitivity | titleCase} }, |
42 |
| - {key: {text: "Content Date"}, value: { text: metadata.contentDate | date('Do MMMM YYYY [at] hh:mm a')} }, |
43 |
| - {key: {text: "Display From"}, value: { text: metadata.displayFrom | date('Do MMMM YYYY [at] hh:mm a')} }, |
44 |
| - {key: {text: "Display To"}, value: { text: metadata.displayTo | date('Do MMMM YYYY [at] hh:mm a')} } |
45 |
| - ] |
46 |
| - }) }} |
| 31 | + <h2 class="govuk-heading-m">Metadata</h2> |
| 32 | + {{ govukSummaryList({ |
| 33 | + rows: [ |
| 34 | + {key: {text: "Artefact ID"}, value: { text: metadata.artefactId} }, |
| 35 | + {key: {text: "Location ID"}, value: { text: metadata.locationId} }, |
| 36 | + {key: {text: "Location Name"}, value: { text: locationName } }, |
| 37 | + {key: {text: "Publication Type"}, value: { text: metadata.type | titleCase} }, |
| 38 | + {key: {text: "List Type"}, value: { text: metadata.listType | listType} }, |
| 39 | + {key: {text: "Provenance"}, value: { text: metadata.provenance} }, |
| 40 | + {key: {text: "Language"}, value: { text: metadata.language | titleCase} }, |
| 41 | + {key: {text: "Sensitivity"}, value: { text: metadata.sensitivity | titleCase} }, |
| 42 | + {key: {text: "Content Date"}, value: { text: metadata.contentDate | date('Do MMMM YYYY [at] hh:mm a')} }, |
| 43 | + {key: {text: "Display From"}, value: { text: metadata.displayFrom | date('Do MMMM YYYY [at] hh:mm a')} }, |
| 44 | + {key: {text: "Display To"}, value: { text: metadata.displayTo | date('Do MMMM YYYY [at] hh:mm a')} } |
| 45 | + ] |
| 46 | + }) }} |
| 47 | + </form> |
47 | 48 | </div>
|
48 | 49 | </div>
|
49 | 50 | {% if not noMatchArtefact %}
|
|
0 commit comments