Skip to content

Commit

Permalink
feat: implement upload supporting document
Browse files Browse the repository at this point in the history
  • Loading branch information
jamil314 committed Jan 9, 2025
1 parent cd43a65 commit a177f5e
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions src/form/V2/birth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,58 @@ const BIRTH_FORM = defineForm({
]
})
]
},
{
id: 'documents',
title: {
defaultMessage: 'Upload supporting documents',
description: 'Form section title for documents',
id: 'form.section.documents.title'
},
fields: [
{
id: 'documents.profOfBirth',
type: 'FILE',
required: false,
label: {
defaultMessage: 'Proof of birth',
description: 'This is the label for the field',
id: 'event.birth.action.declare.form.section.documents.field.profOfBirth.label'
}
},
{
id: 'documents.profOfMother',
type: 'FILE', // @ToDo File upload with options
required: false,
label: {
defaultMessage: "Proof of mother's ID",
description: 'This is the label for the field',
id: 'event.birth.action.declare.form.section.documents.field.profOfMother.label'
}
},

{
id: 'documents.profOfFather',
type: 'FILE', // @ToDo File upload with options
required: false,
label: {
defaultMessage: "Proof of father's ID",
description: 'This is the label for the field',
id: 'event.birth.action.declare.form.section.documents.field.profOfFather.label'
}
},

{
id: 'documents.proofOther',
type: 'FILE', // @ToDo File upload with options
required: false,
label: {
defaultMessage: 'Other',
description: 'This is the label for the field',
id: 'event.birth.action.declare.form.section.documents.field.proofOther.label'
}
}
]
}
]
})
Expand Down

0 comments on commit a177f5e

Please sign in to comment.