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.
* Removed past validation on microchip + neutering * Patch bump * Intial * Dog-only search * Removed debug * Version bump * Fixed test --------- Co-authored-by: work <[email protected]>
- Loading branch information
1 parent
4c72728
commit efa22c5
Showing
4 changed files
with
61 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,64 @@ | ||
{% from "components/statusTag/macro.njk" import statusTag %} | ||
|
||
<div class="govuk-summary-card"> | ||
<div class="govuk-summary-card__title-wrapper govuk-!-padding-top-2 govuk-!-padding-bottom-1"> | ||
<h2 class="govuk-summary-card__title defra-summary-header"> | ||
<div class="govuk-summary-card__title-wrapper govuk-!-padding-top-1 govuk-!-padding-bottom-1"> | ||
<h2 class="govuk-summary-card__title"> | ||
<a class="govuk-link govuk-link--no-visited-state" href="/cdo/view/dog-details/{{ result.dogIndex }}{{ model.srcHashParam }}"> | ||
{{ result.dogIndex }} | ||
</a> | ||
</h2> | ||
<ul class="govuk-summary-card__actions govuk-!-font-weight-regular"> | ||
<li class="govuk-summary-card__action"> | ||
{{ statusTag(result.dogStatus, result.dogSubStatus, 'govuk-!-font-size-16') }} | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="govuk-summary-card__content govuk-!-padding-top-1 govuk-!-padding-bottom-0"> | ||
<table class="govuk-table govuk-!-margin-bottom-3"> | ||
<caption class="govuk-table__caption govuk-!-font-weight-regular govuk-!-font-size-16"> | ||
</caption> | ||
<thead class="govuk-table__head govuk-!-font-size-16"> | ||
<tr class="govuk-table__row"> | ||
<th scope="col" class="govuk-table__header govuk-!-width-one-quarter"> | ||
Dog name | ||
</th> | ||
<th scope="col" class="govuk-table__header"> | ||
Owner name | ||
</th> | ||
<th scope="col" class="govuk-table__header govuk-!-width-one-quarter"> | ||
Microchip number | ||
</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody class="govuk-table__body"> | ||
<tr class="govuk-table__row govuk-!-font-size-16 govuk-!-margin-bottom-0"> | ||
<td class="govuk-!-padding-top-2 govuk-!-padding-bottom-0 defra-results"> | ||
{{ result.dogName }} | ||
{% if result.dogNameNotEntered %} | ||
<span class="defra-secondary-text">Not entered</span> | ||
{% endif %} | ||
</td> | ||
<td class="govuk-!-padding-top-2 govuk-!-padding-bottom-0 defra-results"> | ||
<a class="govuk-link govuk-link--no-visited-state" href="/cdo/view/owner-details/{{ result.personReference }}{{ model.srcHashParam }}"> | ||
{{ result.firstName }} {{ result.lastName }} | ||
</a> | ||
</td> | ||
<td class="govuk-!-padding-top-2 govuk-!-padding-bottom-0 defra-results"> | ||
{{ result.microchipNumber }} | ||
{% if result.microchipNumberNotEntered %} | ||
<span class="defra-secondary-text">Not entered</span> | ||
{% endif %} | ||
<br/> | ||
{{ result.microchipNumber2 }} | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<div class="govuk-summary-card__content"> | ||
<dl class="govuk-summary-list govuk-!-font-size-16"> | ||
<div class="govuk-summary-list__row"> | ||
<dt class="govuk-summary-list__key"> | ||
Status | ||
</dt> | ||
<dd class="govuk-summary-list__value"> | ||
{{ statusTag(result.dogStatus, result.dogSubStatus, 'govuk-!-font-size-16') }} | ||
</dd> | ||
</div> | ||
<div class="govuk-summary-list__row"> | ||
<dt class="govuk-summary-list__key">Dog</dt> | ||
{% if result.dogNameNotEntered %} | ||
<dd class="govuk-summary-list__value defra-secondary-text">Not entered</dd> | ||
{% else %} | ||
<dd class="govuk-summary-list__value">{{ result.dogName }}</dd> | ||
{% endif %} | ||
</div> | ||
<div class="govuk-summary-list__row"> | ||
<dt class="govuk-summary-list__key">Owner</dt> | ||
<dd class="govuk-summary-list__value"> | ||
<a class="govuk-link govuk-link--no-visited-state" href="/cdo/view/owner-details/{{ result.personReference }}{{ model.srcHashParam }}"> | ||
{{ result.firstName }} {{ result.lastName }} | ||
</a> | ||
</dd> | ||
</div> | ||
<div class="govuk-summary-list__row"> | ||
<dt class="govuk-summary-list__key"> | ||
Address | ||
</dt> | ||
<dd class="govuk-summary-list__value"> | ||
{% if result.address %} {{ result.address }} {% endif %} | ||
</dd> | ||
</div> | ||
<div class="govuk-summary-list__row"> | ||
<dt class="govuk-summary-list__key"> | ||
Microchip number | ||
</dt> | ||
{% if result.microchipNumberNotEntered %} | ||
<dd class="govuk-summary-list__value defra-secondary-text">Not entered</dd> | ||
{% else %} | ||
<dd class="govuk-summary-list__value"> | ||
{{ result.microchipNumber }} | ||
{% if result.microchipNumber2 %} | ||
<br/> | ||
{{ result.microchipNumber2 }} | ||
{% endif %} | ||
{% endif %} | ||
</dd> | ||
</div> | ||
</dl> | ||
</div> | ||
</div> |
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