Skip to content

Commit

Permalink
chore(j-s): add gender to custody notice (#17370)
Browse files Browse the repository at this point in the history
* chore(j-s): add gender to custody notice

* fix(j-s): spelling error

* fix(j-s): spelling

* fix(j-s): format

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
thorhildurt and kodiakhq[bot] authored Jan 6, 2025
1 parent b2d789d commit 56d6e6e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
capitalize,
formatDate,
formatDOB,
formatGender,
lowercase,
} from '@island.is/judicial-system/formatters'
import { SessionArrangements } from '@island.is/judicial-system/types'
Expand Down Expand Up @@ -80,14 +81,25 @@ const constructCustodyNoticePdf = (
)
}

addNormalText(doc, 'Lögheimili/dvalarstaður: ', 'Helvetica', true)
addNormalText(
doc,
theCase.defendants &&
theCase.defendants.length > 0 &&
theCase.defendants[0].address
? theCase.defendants[0].address
: 'Heimili ekki skráð',
: 'Ekki skráð',
)
addNormalText(doc, 'Kyn: ', 'Helvetica', true)
addNormalText(
doc,
theCase.defendants &&
theCase.defendants.length > 0 &&
theCase.defendants[0].gender
? formatGender(theCase.defendants[0].gender)
: 'Ekki skráð',
)

addEmptyLines(doc, 2)
setLineGap(doc, 8)
addMediumText(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const custodyNotice = {
defaultMessage:
'Úrskuður um {caseType, select, ADMISSION_TO_FACILITY {vistun á viðeigandi stofnun} other {gæsluvarðhald}}',
description:
'Titill á vistunarselði sem tilgreinir í hverning máli úrskurðurinn er',
'Titill á vistunarseðli sem tilgreinir í hvernig máli úrskurðurinn er',
}),
arrangement: defineMessage({
id: 'judicial.system.backend:pdf.custody_notice.arrangement',
Expand Down

0 comments on commit 56d6e6e

Please sign in to comment.