Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
tareq89 committed Nov 13, 2024
1 parent 9fbaa34 commit 71e94f8
Show file tree
Hide file tree
Showing 13 changed files with 70 additions and 18 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 15 additions & 2 deletions src/api/certificates/source/birth-certificate-certified-copy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/api/certificates/source/birth-certificate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 16 additions & 3 deletions src/api/certificates/source/death-certificate-certified-copy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/api/certificates/source/death-certificate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/form/birth/certificate-handlebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ export const certificateHandlebars = {
childFamilyName: 'childFamilyName',
childGender: 'childGender',
eventDate: 'eventDate',
ageOfFatherInYears: 'ageOfFatherInYears',
ageOfMotherInYears: 'ageOfMotherInYears',
ageOfInformantInYears: 'ageOfInformantInYears',
informantFirstName: 'informantFirstName',
informantFamilyName: 'informantFamilyName',
informantBirthDate: 'informantBirthDate',
Expand Down
9 changes: 6 additions & 3 deletions src/form/birth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ export const birthForm: ISerializedForm = {
exactDateOfBirthUnknownConditional.concat(
hideIfInformantMotherOrFather
),
ageOfIndividualValidators
ageOfIndividualValidators,
certificateHandlebars.ageOfInformantInYears
),
getNationality(
certificateHandlebars.informantNationality,
Expand Down Expand Up @@ -328,7 +329,8 @@ export const birthForm: ISerializedForm = {
exactDateOfBirthUnknownConditional.concat(
detailsExistConditional
),
ageOfParentsConditionals
ageOfParentsConditionals,
certificateHandlebars.ageOfMotherInYears
),
getNationality(
certificateHandlebars.motherNationality,
Expand Down Expand Up @@ -406,7 +408,8 @@ export const birthForm: ISerializedForm = {
exactDateOfBirthUnknownConditional.concat(
detailsExistConditional
),
ageOfParentsConditionals
ageOfParentsConditionals,
certificateHandlebars.ageOfFatherInYears
),
getNationality(
certificateHandlebars.fatherNationality,
Expand Down
2 changes: 2 additions & 0 deletions src/form/death/certficate-handlebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export const certificateHandlebars = {
districtPrimaryDeceasedId: 'districtPrimaryDeceasedId',
cityPrimaryDeceased: 'cityPrimaryDeceased',
ageOfDeceasedInYears: 'ageOfDeceasedInYears',
ageOfInformantInYears: 'ageOfInformantInYears',
ageOfSpouseInYears: 'ageOfSpouseInYears',
addressLine3PrimaryDeceased: 'addressLine3PrimaryDeceased',
addressLine2PrimaryDeceased: 'addressLine2PrimaryDeceased',
addressLine1PrimaryDeceased: 'addressLine1PrimaryDeceased',
Expand Down
6 changes: 4 additions & 2 deletions src/form/death/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ export const deathForm = {
getAgeOfIndividualInYears(
formMessageDescriptors.ageOfInformant,
exactDateOfBirthUnknownConditional.concat(hideIfInformantSpouse),
ageOfIndividualValidators
ageOfIndividualValidators,
certificateHandlebars.ageOfInformantInYears
),
getNationality(
certificateHandlebars.informantNationality,
Expand Down Expand Up @@ -346,7 +347,8 @@ export const deathForm = {
getAgeOfIndividualInYears(
formMessageDescriptors.ageOfSpouse,
exactDateOfBirthUnknownConditional.concat(detailsExist),
ageOfIndividualValidators
ageOfIndividualValidators,
certificateHandlebars.ageOfSpouseInYears
),
getNationality(
certificateHandlebars.spouseNationality,
Expand Down
3 changes: 3 additions & 0 deletions src/form/marriage/certificate-handlebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export const certificateHandlebars = {
informantPassport: 'informantPassport',
informantAlienId: 'informantAlienId',
informantRefugeeId: 'informantRefugeeId',
ageOfInformantInYears: 'ageOfInformantInYears',
ageOfGroomInYears: 'ageOfGroomInYears',
ageOfBrideInYears: 'ageOfBrideInYears',
countryPrimaryInformant: 'countryPrimaryInformant',
statePrimaryInformant: 'statePrimaryInformant', // @deprecated use statePrimaryInformantId instead
statePrimaryInformantId: 'statePrimaryInformantId',
Expand Down
9 changes: 6 additions & 3 deletions src/form/marriage/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ export const marriageForm: ISerializedForm = {
exactDateOfBirthUnknownConditional.concat(
hideIfInformantBrideOrGroom
),
ageOfIndividualValidators
ageOfIndividualValidators,
certificateHandlebars.ageOfInformantInYears
),
getNationality(
certificateHandlebars.informantNationality,
Expand Down Expand Up @@ -196,7 +197,8 @@ export const marriageForm: ISerializedForm = {
getAgeOfIndividualInYears(
formMessageDescriptors.ageOfGroom,
exactDateOfBirthUnknownConditional,
brideOrGroomAgeValidators
brideOrGroomAgeValidators,
certificateHandlebars.ageOfGroomInYears
),
getNationality(certificateHandlebars.groomNationality, []), // Required field
getIDType('marriage', 'groom', [], true),
Expand Down Expand Up @@ -242,7 +244,8 @@ export const marriageForm: ISerializedForm = {
getAgeOfIndividualInYears(
formMessageDescriptors.ageOfBride,
exactDateOfBirthUnknownConditional,
brideOrGroomAgeValidators
brideOrGroomAgeValidators,
certificateHandlebars.ageOfBrideInYears
),
getNationality(certificateHandlebars.brideNationality, []), // Required field
getIDType('marriage', 'bride', [], true),
Expand Down

0 comments on commit 71e94f8

Please sign in to comment.