Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions schemas/get-death-certificate.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@
"label": "National Identification (ID) Number",
"required": false,
"validations": {
"min": 2,
"message": "ID Number must be at least 2 characters"
}
},
Expand All @@ -236,9 +235,8 @@
"name": "causeOfDeath",
"type": "string",
"label": "Cause of death",
"required": true,
"required": false,
"validations": {
"min": 2,
"max": 200,
"message": "Cause of death must be at least 2 characters"
}
Expand Down
91 changes: 62 additions & 29 deletions src/email/templates/death-certificate.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,8 @@
<div class='submitted-info'>
<strong>Application Submitted:</strong>
{{processedAt}}<br />
<strong>Application Type:</strong>
{{#if (eq applyingForYourself 'yes')}}
Self Application
{{else}}
Third Party Application
{{/if}}
<strong>Relationship to Deceased:</strong>
{{relationship}}
</div>

<!-- Applicant Details -->
Expand Down Expand Up @@ -74,10 +70,10 @@
<td>{{applicant.email}}</td>
</tr>
{{/if}}
{{#if applicant.phoneNumber}}
{{#if applicant.telephoneNumber}}
<tr>
<td>Phone Number:</td>
<td>{{applicant.phoneNumber}}</td>
<td>Telephone Number:</td>
<td>{{applicant.telephoneNumber}}</td>
</tr>
{{/if}}
</tbody>
Expand Down Expand Up @@ -116,20 +112,38 @@
<h3>Identification</h3>
<table>
<tbody>
{{#if applicant.usePassportInstead}}
{{#if applicant.passportNumber}}
<tr>
<td>Passport Number:</td>
<td>{{applicant.passportNumber}}</td>
</tr>
{{/if}}
{{else}}
{{#if applicant.idNumber}}
<tr>
<td>National ID Number:</td>
<td>{{applicant.idNumber}}</td>
</tr>
{{/if}}
{{#if applicant.idNumber}}
<tr>
<td>National ID Number:</td>
<td>{{applicant.idNumber}}</td>
</tr>
{{/if}}
{{#if applicant.passportNumber}}
<tr>
<td>Passport Number:</td>
<td>{{applicant.passportNumber}}</td>
</tr>
{{/if}}
</tbody>
</table>
</section>

<!-- Application Details -->
<section class='section'>
<h2>Application Details</h2>
<table>
<tbody>
{{#if relationship}}
<tr>
<td>Relationship to Deceased:</td>
<td>{{relationship}}</td>
</tr>
{{/if}}
{{#if reasonForRequest}}
<tr>
<td>Reason for Request:</td>
<td>{{reasonForRequest}}</td>
</tr>
{{/if}}
</tbody>
</table>
Expand Down Expand Up @@ -158,10 +172,30 @@
<td>{{deceased.lastName}}</td>
</tr>
{{/if}}
{{#if deceased.dateOfBirth}}
{{#if deceased.idNumber}}
<tr>
<td>National ID Number:</td>
<td>{{deceased.idNumber}}</td>
</tr>
{{/if}}
{{#if deceased.knownDateOfDeath}}
<tr>
<td>Known Date of Death:</td>
<td>{{#if
(eq deceased.knownDateOfDeath 'yes')
}}Yes{{else}}No{{/if}}</td>
</tr>
{{/if}}
{{#if deceased.dateOfDeath}}
<tr>
<td>Date of Death:</td>
<td>{{deceased.dateOfDeath}}</td>
</tr>
{{/if}}
{{#if deceased.estimatedDateOfDeath}}
<tr>
<td>Date of Birth:</td>
<td>{{deceased.dateOfBirth}}</td>
<td>Estimated Date of Death:</td>
<td>{{deceased.estimatedDateOfDeath}}</td>
</tr>
{{/if}}
{{#if deceased.placeOfDeath}}
Expand Down Expand Up @@ -194,13 +228,12 @@
<p>
This is an automated email from the Government of Barbados Forms
Processing System.<br />
Birth Certificate applications are processed during regular business
Death Certificate applications are processed during regular business
hours.<br />
Please allow 5-10 business days for processing.<br /><br />

<strong>Important:</strong>
If this application is for someone other than yourself, additional
documentation may be required for verification.
Additional documentation may be required for verification purposes.
</p>
</div>
</div>
Expand Down