generated from DEFRA/ffc-template-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(AHWR-321): use organisation, not farmer, name (#256)
* fix(AHWR-321): use organisation, not farmer, name - stop allowing 404s from contact history (it now returns [] instead) - remove debug logging for auth, just in case we go to prod
- Loading branch information
Showing
15 changed files
with
102 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,65 @@ | ||
{% extends './layouts/layout.njk'%} | ||
|
||
{%block pageTitle %}{{ siteTitle }} - {{ businessName }}{%endblock%} | ||
{% block pageTitle %} | ||
{{ siteTitle }} - {{ businessName }} | ||
{% endblock %} | ||
|
||
{% block beforeContent %} | ||
{{ govukBackLink({ | ||
text: "Back", | ||
href: backLink | ||
}) }} | ||
{% endblock %} | ||
{% block beforeContent %} | ||
{{ govukBackLink({ | ||
text: "Back", | ||
href: backLink | ||
}) }} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<h1 class="govuk-caption-l govuk-!-margin-bottom-3"> | ||
Agreement details and claims | ||
</h1> | ||
<h2 class="govuk-heading-l">{{ businessName }}</h2> | ||
<dl class="govuk-summary-list govuk-!-margin-bottom-9"> | ||
{% for item in applicationSummaryDetails %} | ||
<div class="govuk-summary-list__row"> | ||
<dt class="govuk-summary-list__key">{{item.field}}</dt> | ||
<dd class="govuk-summary-list__value"> | ||
<p>{{item.newValue}}</p> | ||
{% if (item.oldValue) and (item.oldValue != "NA") %} | ||
<details class="govuk-details"> | ||
<summary class="govuk-details__summary"> | ||
<span class="govuk-details__summary-text">View change</span> | ||
</summary> | ||
<div class="govuk-details__text"> | ||
{{ item.oldValue }} | ||
</div> | ||
</details> | ||
{% endif %} | ||
</dd> | ||
</div> | ||
{% endfor %} | ||
</dl> | ||
</div> | ||
</div> | ||
<div class="govuk-grid-row"> | ||
{% if claimsRowsTotal %} | ||
<div class="govuk-grid-column-full"> | ||
<h3 class="govuk-heading-m"> | ||
Claims by this business | ||
</h3> | ||
{% endif %} | ||
</div> | ||
<div class="govuk-grid-column-full"> | ||
<div class="moj-scrollable-pane__wrapper"> | ||
{{ govukTable({ | ||
attributes: { | ||
'data-module': 'moj-sortable-table' | ||
}, | ||
firstCellIsHeader: false, | ||
head: claimTable.header, | ||
rows: claimTable.claims | ||
}) }} | ||
</div> | ||
{{ govukPagination({ | ||
previous: model.previous, | ||
next: model.next, | ||
items: model.pages | ||
}) | ||
}} | ||
</div> | ||
</div> | ||
{% block content %} | ||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<h1 class="govuk-caption-l govuk-!-margin-bottom-3">Agreement details and claims</h1> | ||
<h2 class="govuk-heading-l">{{ businessName }}</h2> | ||
<dl class="govuk-summary-list govuk-!-margin-bottom-9"> | ||
{% for item in applicationSummaryDetails %} | ||
<div class="govuk-summary-list__row"> | ||
<dt class="govuk-summary-list__key">{{item.field}}</dt> | ||
<dd class="govuk-summary-list__value"> | ||
<p>{{item.newValue}}</p> | ||
{% if (item.oldValue) and (item.oldValue != "NA") %} | ||
<details class="govuk-details"> | ||
<summary class="govuk-details__summary"> | ||
<span class="govuk-details__summary-text">View change</span> | ||
</summary> | ||
<div class="govuk-details__text"> | ||
{{ item.oldValue }} | ||
</div> | ||
</details> | ||
{% endif %} | ||
</dd> | ||
</div> | ||
{% endfor %} | ||
</dl> | ||
</div> | ||
</div> | ||
<div class="govuk-grid-row"> | ||
{% if claimsRowsTotal %} | ||
<div class="govuk-grid-column-full"> | ||
<h3 class="govuk-heading-m">Claims by this business</h3> | ||
{% endif %} | ||
</div> | ||
<div class="govuk-grid-column-full"> | ||
<div class="moj-scrollable-pane__wrapper"> | ||
{{ govukTable({ | ||
attributes: { | ||
'data-module': 'moj-sortable-table' | ||
}, | ||
firstCellIsHeader: false, | ||
head: claimTable.header, | ||
rows: claimTable.claims | ||
}) }} | ||
</div> | ||
</div> | ||
{%endblock%} | ||
{{ govukPagination({ | ||
previous: model.previous, | ||
next: model.next, | ||
items: model.pages | ||
}) | ||
}} | ||
</div> | ||
{%endblock%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,4 +98,4 @@ | |
{% endif %} | ||
</div> | ||
</div> | ||
{% endblock %} | ||
{% endblock %} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ describe('View claim test', () => { | |
offerStatus: 'accepted', | ||
organisation: { | ||
sbi: '113494460', | ||
name: 'Mrs S Clark', | ||
name: 'Test Farm Lodge', | ||
email: '[email protected]', | ||
orgEmail: '[email protected]', | ||
address: | ||
|
@@ -216,14 +216,14 @@ describe('View claim test', () => { | |
const content = [ | ||
{ key: 'Agreement number', value: 'AHWR-1234-APP1' }, | ||
{ key: 'Agreement date', value: '22/03/2024' }, | ||
{ key: 'Agreement holder', value: 'Russell Paul Davies' }, | ||
{ key: 'Agreement holder', value: 'Test Farm Lodge' }, | ||
{ key: 'Agreement holder email', value: '[email protected]' }, | ||
{ key: 'SBI number', value: '113494460' }, | ||
{ key: 'Address', value: 'Tesco Stores Ltd,Harwell,Betton,WHITE HOUSE FARM,VINCENT CLOSE,LEIGHTON BUZZARD,HR2 8AN,United Kingdom' }, | ||
{ key: 'Business email', value: '[email protected]' }, | ||
{ key: 'Status', value: 'Paid' }, | ||
{ key: 'Claim date', value: '25/03/2024' }, | ||
{ key: 'Business name', value: 'Mrs S Clark' }, | ||
{ key: 'Business name', value: 'Test Farm Lodge' }, | ||
{ key: 'Livestock', value: 'Pigs' }, | ||
{ key: 'Type of visit', value: 'Animal health and welfare review' }, | ||
{ key: 'Date of visit', value: '22/03/2024' }, | ||
|
@@ -281,7 +281,7 @@ describe('View claim test', () => { | |
null, | ||
{ key: 'Status', value: 'Recommended to pay' }, | ||
{ key: 'Claim date', value: '20/03/2024' }, | ||
{ key: 'Business name', value: 'Mrs S Clark' }, | ||
{ key: 'Business name', value: 'Test Farm Lodge' }, | ||
{ key: 'Livestock', value: 'Sheep' }, | ||
{ key: 'Type of visit', value: 'Endemic disease follow-ups' }, | ||
{ key: 'Date of visit', value: '22/03/2024' }, | ||
|
Oops, something went wrong.