Skip to content

Commit

Permalink
CDPS-206 - update main offence on overview (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgrant-moj authored Jun 12, 2023
1 parent 82f1442 commit 53c471a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/views/partials/overviewPage/offences/offences.njk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
<div class="govuk-grid-row">
<div class="govuk-grid-column-full">
<p data-qa="overview-main-offence" class="govuk-body govuk-!-font-weight-bold govuk-!-margin-top-2">Main offence</p>
<p>{{offencesOverview.mainOffence[0].offenceDescription}}</p>
<p>
{% if offencesOverview.mainOffence and offencesOverview.mainOffence[0].offenceDescription %}
{{offencesOverview.mainOffence[0].offenceDescription}}
{% else %}
Not entered
{% endif %}
</p>
<hr class="govuk-section-break govuk-section-break--visible" />
<p class="govuk-body govuk-!-font-weight-bold govuk-!-margin-top-4">Imprisonment status</p>
<p> {{ offencesOverview.imprisonmentStatusDescription}}</p>
Expand Down

0 comments on commit 53c471a

Please sign in to comment.