Skip to content

Commit 9cbe667

Browse files
authored
PI-2526 Minor layout changes for contact search (#273)
1 parent 7950783 commit 9cbe667

File tree

3 files changed

+25
-23
lines changed

3 files changed

+25
-23
lines changed

server/views/pages/contacts/compare.njk

+10-10
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77
{% set mainClasses = "app-container govuk-body" %}
88
{% set headerLink = "/contacts/compare" %}
99

10+
{% block beforeContent %}
11+
{{ govukBackLink({ text: "Back", href: "/contacts/search" }) }}
12+
<span class="govuk-body-s govuk-!-display-inline-block">| {{ crn }}</span>
13+
{% endblock %}
14+
1015
{% block content %}
1116
<div class="govuk-width-container">
12-
<div class="govuk-grid-row govuk-!-margin-bottom-5">
13-
{{ govukBackLink({ text: "Back", href: "/contacts/search" }) }}
14-
<span class="govuk-body-s govuk-!-display-inline-block">| {{ crn }}</span>
15-
17+
<div class="govuk-!-margin-bottom-5">
1618
<div class="moj-search">
1719
<form method="post">
1820
<input type="hidden" name="_csrf" value="{{ csrfToken }}">
@@ -118,12 +120,10 @@
118120
{% endif %}
119121
</div>
120122
</div>
121-
<div class="govuk-grid-row">
122-
{{ govukDetails({
123-
summaryText: "System information",
124-
html: "<pre>" + ({ "crn": crn, "query": query, "resultSet1": resultsA, "resultSet2": resultsB } | dump(2) | escape) + "</pre>"
125-
}) }}
126-
</div>
123+
{{ govukDetails({
124+
summaryText: "System information",
125+
html: "<pre>" + ({ "crn": crn, "query": query, "resultSet1": resultsA, "resultSet2": resultsB } | dump(2) | escape) + "</pre>"
126+
}) }}
127127
{% endif %}
128128
</div>
129129
{% endblock %}

server/views/pages/contacts/search.njk

+13-13
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
{% set mainClasses = "app-container govuk-body" %}
1010
{% set headerLink = "/contacts/search" %}
1111

12+
{% block beforeContent %}
13+
{{ govukBackLink({ text: "Back", href: "/contacts/search" }) }}
14+
<span class="govuk-body-s govuk-!-display-inline-block">| {{ crn }}</span>
15+
{% endblock %}
16+
1217
{% block content %}
1318
<div class="govuk-width-container">
14-
<div class="govuk-grid-row govuk-!-margin-bottom-5">
15-
{{ govukBackLink({ text: "Back", href: "/contacts/search" }) }}
16-
<span class="govuk-body-s govuk-!-display-inline-block">| {{ crn }}</span>
17-
19+
<div class="govuk-!-margin-bottom-5">
1820
<div class="moj-search">
1921
<form method="post">
2022
<input type="hidden" name="_csrf" value="{{ csrfToken }}">
@@ -91,9 +93,9 @@
9193
{% endif %}
9294
</td>
9395
<td class="govuk-table__cell govuk-table--small-text">
94-
<a target='delius'
95-
href='{{ deliusUrl }}/NDelius-war/delius/JSP/deeplink.xhtml?component=Contact&componentId={{ result.id }}'>
96-
View in Delius
96+
<a target="delius"
97+
href="{{ deliusUrl }}/NDelius-war/delius/JSP/deeplink.xhtml?component=Contact&componentId={{ result.id }}">
98+
Open&nbsp;in&nbsp;Delius
9799
</a>
98100
</td>
99101
</tr>
@@ -106,12 +108,10 @@
106108
{% endif %}
107109
</div>
108110
</div>
109-
<div class="govuk-grid-row">
110-
{{ govukDetails({
111-
summaryText: "System information",
112-
html: "<pre>" + ({ "crn": crn, "query": query, "results": results } | dump(2) | escape) + "</pre>"
113-
}) }}
114-
</div>
111+
{{ govukDetails({
112+
summaryText: "System information",
113+
html: "<pre>" + ({ "crn": crn, "query": query, "results": results } | dump(2) | escape) + "</pre>"
114+
}) }}
115115
{% endif %}
116116
</div>
117117
{% endblock %}

server/views/partials/header.njk

+2
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,6 @@
4141
</ul>
4242
</nav>
4343
</div>
44+
45+
{% block beforeContent %}{% endblock %}
4446
</header>

0 commit comments

Comments
 (0)