Skip to content

Commit 1ccc283

Browse files
authored
Merge pull request #358 from opencrvs/feat/add-value-missing-default
feat: add value missing definitions for summary
2 parents 5a65c81 + f8f3d94 commit 1ccc283

File tree

1 file changed

+33
-5
lines changed

1 file changed

+33
-5
lines changed

src/form/tennis-club-membership.ts

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,19 +171,47 @@ export const tennisClubMembershipEvent = defineConfig({
171171
},
172172
fields: [
173173
{
174-
id: 'applicant.firstname'
174+
id: 'applicant.firstname',
175+
emptyValueMessage: {
176+
defaultMessage: "Applicant's first name missing",
177+
description:
178+
"shown when the applicant's first name is missing in summary",
179+
id: 'event.tennis-club-membership.summary.field.applicant.firstname.empty'
180+
}
175181
},
176182
{
177-
id: 'applicant.surname'
183+
id: 'applicant.surname',
184+
emptyValueMessage: {
185+
defaultMessage: "Applicant's surname missing",
186+
description: 'shown when the surname is missing in summary',
187+
id: 'event.tennis-club-membership.summary.field.applicant.surname.empty'
188+
}
178189
},
179190
{
180-
id: 'recommender.firstname'
191+
id: 'recommender.firstname',
192+
emptyValueMessage: {
193+
defaultMessage: "Recommender's first name missing",
194+
description:
195+
'shown when the recommender first name is missing in summary',
196+
id: 'event.tennis-club-membership.summary.field.recommender.firstname.empty'
197+
}
181198
},
182199
{
183-
id: 'recommender.surname'
200+
id: 'recommender.surname',
201+
emptyValueMessage: {
202+
defaultMessage: "Recommender's surname missing",
203+
description:
204+
'shown when the recommender surname is missing in summary',
205+
id: 'event.tennis-club-membership.summary.field.recommender.surname.empty'
206+
}
184207
},
185208
{
186-
id: 'recommender.id'
209+
id: 'recommender.id',
210+
emptyValueMessage: {
211+
defaultMessage: "Recommender's id missing",
212+
description: 'shown when the recommender id is missing in summary',
213+
id: 'event.tennis-club-membership.summary.field.recommender.id.empty'
214+
}
187215
}
188216
]
189217
},

0 commit comments

Comments
 (0)