Skip to content

Commit 057a100

Browse files
authored
Merge pull request #1124 from opencrvs/ocrvs-10824
Remove review form config (signature and comment fields) from ActionType.VALIDATE and ActionType.REGISTER
2 parents 3346e7b + 1892e94 commit 057a100

File tree

4 files changed

+59
-12
lines changed

4 files changed

+59
-12
lines changed

src/form/tennis-club-membership.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,14 @@ export const tennisClubMembershipEvent = defineConfig({
828828
'This is shown as the action name anywhere the user can trigger the action from',
829829
id: 'event.tennis-club-membership.action.validate.label'
830830
},
831-
review: TENNIS_CLUB_DECLARATION_REVIEW
831+
review: {
832+
title: {
833+
defaultMessage: 'Validate',
834+
description: 'Title of the form to show in review page',
835+
id: 'event.birth.action.validate.form.review.title'
836+
},
837+
fields: []
838+
}
832839
},
833840
{
834841
type: ActionType.REGISTER,
@@ -838,7 +845,14 @@ export const tennisClubMembershipEvent = defineConfig({
838845
'This is shown as the action name anywhere the user can trigger the action from',
839846
id: 'event.tennis-club-membership.action.register.label'
840847
},
841-
review: TENNIS_CLUB_DECLARATION_REVIEW
848+
review: {
849+
title: {
850+
defaultMessage: 'Register',
851+
description: 'Title of the form to show in review page',
852+
id: 'event.birth.action.register.form.review.title'
853+
},
854+
fields: []
855+
}
842856
},
843857
{
844858
type: ActionType.PRINT_CERTIFICATE,

src/form/v2/birth/index.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,14 @@ export const birthEvent = defineConfig({
198198
'This is shown as the action name anywhere the user can trigger the action from',
199199
id: 'event.birth.action.validate.label'
200200
},
201-
review: BIRTH_DECLARATION_REVIEW,
201+
review: {
202+
title: {
203+
defaultMessage: 'Validate',
204+
description: 'Title of the form to show in review page',
205+
id: 'event.birth.action.validate.form.review.title'
206+
},
207+
fields: []
208+
},
202209
deduplication: {
203210
id: 'birth-deduplication',
204211
label: {
@@ -218,7 +225,14 @@ export const birthEvent = defineConfig({
218225
'This is shown as the action name anywhere the user can trigger the action from',
219226
id: 'event.birth.action.register.label'
220227
},
221-
review: BIRTH_DECLARATION_REVIEW,
228+
review: {
229+
title: {
230+
defaultMessage: 'Register',
231+
description: 'Title of the form to show in review page',
232+
id: 'event.birth.action.register.form.review.title'
233+
},
234+
fields: []
235+
},
222236
deduplication: {
223237
id: 'birth-deduplication',
224238
label: {

src/form/v2/death/index.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,14 @@ export const deathEvent = defineConfig({
201201
'This is shown as the action name anywhere the user can trigger the action from',
202202
id: 'event.death.action.validate.label'
203203
},
204-
review: DEATH_DECLARATION_REVIEW,
204+
review: {
205+
title: {
206+
defaultMessage: 'Validate',
207+
description: 'Title of the form to show in review page',
208+
id: 'event.birth.action.validate.form.review.title'
209+
},
210+
fields: []
211+
},
205212
deduplication: {
206213
id: 'death-deduplication',
207214
label: {
@@ -221,7 +228,14 @@ export const deathEvent = defineConfig({
221228
'This is shown as the action name anywhere the user can trigger the action from',
222229
id: 'event.death.action.register.label'
223230
},
224-
review: DEATH_DECLARATION_REVIEW,
231+
review: {
232+
title: {
233+
defaultMessage: 'Register',
234+
description: 'Title of the form to show in review page',
235+
id: 'event.birth.action.register.form.review.title'
236+
},
237+
fields: []
238+
},
225239
deduplication: {
226240
id: 'death-deduplication',
227241
label: {

src/translations/client.csv

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ constants.phoneNumber,Phone label,Phone number,Numéro de téléphone
352352
constants.policeOfficer,The description for Police Officer type,Police Officer,Agent de police
353353
constants.reason,Label for Reason the declaration was rejected,Reason,Raison
354354
constants.record,Label for header table header Record,Record,Dossier
355+
constants.audit,Label for the audit header,Audit,Audit
355356
constants.refresh,label for refresh,refresh,Rafraîchir
356357
constants.registered,A label for registered,Registered,Enregistré
357358
constants.registered.status,A label for registered,Registered,Enregistré
@@ -795,7 +796,7 @@ errors.somethingWentWrong,Error toast message for general errors,Something went
795796
event.action.declare.form.section.person.field.age.error,Error message for invalid age,Age must be between 12 and 120,L'auteur doit avoir entre 12 et 120 ans
796797
event.action.notAvailableForEvent,Shown when user tries to perform an action that is not available for the event,The action you're trying to perform is not available for this event anymore,L'action que vous essayez d'effectuer n'est plus disponible pour cet événement
797798
event.action.outbox-retry.label,Label for retry button for outbox,Retry,Réessayer
798-
event.action.review-correction.label,Label for review correction button in dropdown menu,Review,Revoir
799+
event.action.review-correction.label,Label for review correction button in dropdown menu,Review correction request,Revoir la demande de correction
799800
event.birth.action.archive.label,Label for archive record button in dropdown menu,Archive,Aarchiver
800801
event.birth.action.certificate.form.section.collectPayment.data.label,Title for the data section,Payment details,Détails du paiement
801802
event.birth.action.certificate.form.section.collectPayment.fee.label,Title for the data entry,Fee,Frais
@@ -854,12 +855,13 @@ event.birth.action.declare.form.section.person.field.nid.label,This is the label
854855
event.birth.action.declare.form.section.person.field.occupation.label,This is the label for the field,Occupation,Profession
855856
event.birth.action.declare.form.section.person.field.passport.label,This is the label for the field,ID Number,Numéro d'identification
856857
event.birth.action.declare.label,This is shown as the action name anywhere the user can trigger the action from,Declare,Declare
858+
event.birth.action.reject.label,This is the label for the reject action,Reject,Rejeter
857859
event.birth.action.delete.label,Label for delete button in dropdown menu,Delete,Supprimer
858860
event.birth.action.form.section.collector.other.field.name.label,This is the label for the name field of OTHER collector,Collector's name,Nom du collecteur
859861
event.birth.action.mark-as-duplicate.label,Label for review potential duplicate button in dropdown menu,Review,Revoir
860-
event.birth.action.register.label,Label for review record button in dropdown menu,Review,Revoir
862+
event.birth.action.register.label,Label for review record button in dropdown menu,Register,Enregistrer
861863
event.birth.action.request-correction.label,This is shown as the action name anywhere the user can trigger the action from,Correct record,Enregistrement correct
862-
event.birth.action.validate.label,This is shown as the action name anywhere the user can trigger the action from,Review,Revoir
864+
event.birth.action.validate.label,This is shown as the action name anywhere the user can trigger the action from,Validate,Valider
863865
event.birth.label,This is what this event is referred as in the system,Birth,Naissance
864866
event.birth.summary.child.dob.empty,Label for date of birth not available,No date of birth,Pas de date de naissance
865867
event.birth.summary.child.placeOfBirth.empty,Label for place of birth not available,No place of birth,Pas de lieu de naissance
@@ -1109,6 +1111,8 @@ event.tennis-club-membership.summary.field.recommender.firstname.empty,Shown whe
11091111
event.tennis-club-membership.summary.field.recommender.firstname.label,Label for the recommender's first name field,Recommender's First Name,Recommender's First Name
11101112
event.tennis-club-membership.summary.field.recommender.id.empty,Shown when the recommender id is missing in summary,Recommender's id missing,Recommender's id missing
11111113
event.tennis-club-membership.summary.field.recommender.id.label,Label for the recommender's ID field,Recommender's ID,Recommender's ID
1114+
events.overview.tabs.record,Title of the Record tab,Record,Enregistrement
1115+
events.overview.tabs.audit,Title of the Audit tab,Audit,Audit
11121116
events.history.status,Events status history,"{status, select, CREATE {Declaration started} NOTIFY {Sent incomplete} VALIDATE {Sent for approval} DRAFT {Draft} DECLARE {Sent for review} REGISTER {Registered} PRINT_CERTIFICATE {Certified} REJECT {Rejected} ARCHIVE {Archived} DUPLICATE_DETECTED {Flagged as potential duplicate} MARKED_AS_DUPLICATE {Marked as a duplicate} MARK_AS_NOT_DUPLICATE {Marked not a duplicate} CORRECTED {Record corrected} REQUEST_CORRECTION {Correction requested} APPROVE_CORRECTION {Correction approved} REJECT_CORRECTION {Correction rejected} READ {Viewed} ASSIGN {Assigned} UNASSIGN {Unassigned} UPDATE {Updated} other {Unknown}}","{status, select, CREATE {Déclaration commencée} NOTIFY {Envoyé incomplet} VALIDATE {Envoyé pour approbation} DRAFT {Brouillon} DECLARE {Envoyé pour révision} REGISTER {Enregistré} PRINT_CERTIFICATE {Certifié} REJECT {Rejeté} ARCHIVE {Archivé} DUPLICATE_DETECTED {Marqué comme doublon} MARKED_AS_DUPLICATE {Marqué comme doublon} MARK_AS_NOT_DUPLICATE {Marqué comme non en doublon} CORRECTED {Enregistrement corrigé} REQUEST_CORRECTION {Correction demandée} APPROVE_CORRECTION {Correction approuvée} REJECT_CORRECTION {Correction refusée} READ {Consulté} ASSIGN {Attribué} UNASSIGN {Désattribué} UPDATE {Mis à jour} other {Inconnu}}"
11131117
events.outbox.processingAction,Message in outbox when processing action,"{action, select, DECLARE {Sending} REGISTER {Registering} VALIDATE {Sending for approval} NOTIFY {Sending} REJECT {Sending for updates} ARCHIVE {Archiving} PRINT_CERTIFICATE {Certifying} REQUEST_CORRECTION {Requesting correction} APPROVE_CORRECTION {Approving correction} REJECT_CORRECTION {Rejecting correction} ASSIGN {Assigning} UNASSIGN {Unassigning} other {processing action}}","{action, select, DECLARE {Envoi} REGISTER {Enregistrement} VALIDATE {Envoi pour approbation} NOTIFY {Envoi} REJECT {Envoi pour mise à jour} ARCHIVE {Archivage} PRINT_CERTIFICATE {Certification} REQUEST_CORRECTION {Demande de correction} APPROVE_CORRECTION {Approbation de la correction} REJECT_CORRECTION {Rejet de la correction} ASSIGN {Attribution} UNASSIGN {Désattribution} other {action en cours}}"
11141118
events.outbox.waitingForAction,Message in outbox when waiting for action,"Waiting to {action, select, DECLARE {send} CREATE {send} REGISTER {register} VALIDATE {send for approval} NOTIFY {send} REJECT {send for updates} ARCHIVE {archive} PRINT_CERTIFICATE {certify} REQUEST_CORRECTION {request correction} APPROVE_CORRECTION {approve correction} REJECT_CORRECTION {reject correction} ASSIGN {assign} UNASSIGN {unassign} other {action}}","En attente de {action, select, DECLARE {l'envoi} CREATE {l'envoi} REGISTER {l'enregistrement} VALIDATE {l'envoi pour approbation} NOTIFY {l'envoi} REJECT {l'envoi pour mise à jour} ARCHIVE {l'archivage} PRINT_CERTIFICATE {la certification} REQUEST_CORRECTION {la demande de correction} APPROVE_CORRECTION {l'approbation de la correction} REJECT_CORRECTION {le rejet de la correction} ASSIGN {l'attribution} UNASSIGN {la désattribution} other {l'action}}"
@@ -1737,7 +1741,7 @@ printAction.title,The title for print action,Print certificate,Imprimer le certi
17371741
record-corrected.summary.section.title,Corrections section title,Correction(s),Correction(s)
17381742
record.certificate.collectedInAdvance,Table column header showing collector info in record audit,Printed in advance by,Imprimé à l'avance par
17391743
record.certificate.collector,Table column header showing collector info in record audit,Printed on collection,Contrôle d'identité
1740-
recordAudit.archive.confirmation.body,Confirmation body for archiving a declaration,This will archive the record and remove it from your workspace,"Cela supprimera la déclaration de la file d'attente et changera son statut en archive. Pour annuler ce changement, vous devrez rechercher la déclaration."
1744+
recordAudit.archive.confirmation.body,Confirmation body for archiving a declaration,This will remove the declaration from the workqueue and change the status to Archive. To revert this change you will need to search for the declaration.,"Cela supprimera la déclaration de la file d'attente et changera son statut en Archivé. Pour annuler ce changement, vous devrez rechercher la déclaration."
17411745
recordAudit.archive.confirmation.title,Confirmation title for archiving a declaration,Archive declaration?,Archiver la déclaration ?
17421746
recordAudit.archive.status,Archived status,Archived,Archivé
17431747
recordAudit.contact,Contact for record audit,Contact,Contact
@@ -1948,7 +1952,7 @@ review.register.confirmModal.cancel,The label for modal cancel button when regis
19481952
review.register.confirmModal.confirm,The label for modal confirm button when registering,Register,Enregistrer
19491953
review.register.confirmModal.description,The description for review action modal when registering,‎,
19501954
review.register.confirmModal.title,The title for review action modal when registering,Register the {event}?,Enregistrer cet {event}?
1951-
review.register.description.complete,The description for registration action when form is complete,"By clicking register, you confirm that the information entered is correct and the event can be registered.","En cliquant sur enregistrer, vous confirmez que les informations saisies sont correctes et que l'événement peut être enregistré."
1955+
review.register.description.complete,The description for registration action when form is complete,"By clicking 'Confirm', you confirm that the information entered is correct and the event can be registered.","En cliquant sur enregistrer, vous confirmez que les informations saisies sont correctes et que l'événement peut être enregistré."
19521956
review.register.reject,The label for reject button of review action,Reject,Rejeter
19531957
review.register.title,The title shown when reviewing a record to register,Register event,Enregistrer l'événement
19541958
review.rej.form.reasons.missSupDoc,Label for rejection option missing supporting doc,Missing supporting documents,Documents justificatifs manquants
@@ -1972,7 +1976,7 @@ review.validate.confirmModal.cancel,The label for modal cancel button when valid
19721976
review.validate.confirmModal.confirm,The label for modal confirm button when validating,Confirm,Confirmer
19731977
review.validate.confirmModal.description,The description for review action modal when validating,This declaration will be sent for approval prior to registration.,Cette déclaration sera envoyée pour approbation avant l'enregistrement.
19741978
review.validate.confirmModal.title,The title for review action modal when validating,Send for approval?,Envoyer pour approbation ?
1975-
review.validate.description.complete,The description for validate action when form is complete,The informant will receive an email with a registration number that they can use to collect the certificate,L'informateur recevra un e-mail avec un numéro d'enregistrement qu'il pourra utiliser pour récupérer le certificat.
1979+
review.validate.description.complete,The description for validate action when form is complete,The informant will receive an email with a registration number that they can use to collect the certificate.,L'informateur recevra un e-mail avec un numéro d'enregistrement qu'il pourra utiliser pour récupérer le certificat.
19761980
review.validate.description.incomplete,The description for validate action when form is complete,Please add mandatory information before sending for approval,Veuillez ajouter les informations obligatoires avant d'envoyer pour approbation.
19771981
review.validate.reject,The label for reject button of review action,Reject,Rejeter
19781982
review.validate.title,The title shown when reviewing a record to validate,Send for approval,Envoyer pour approbation
@@ -2159,6 +2163,7 @@ user.profile.roleType,Title for roleType field,Role,Rôle/Type
21592163
user.profile.sectionTitle.audit,Title for audit section,History,Historique
21602164
user.profile.startDate,Title for startDate field,Start date,Date de début
21612165
user.profile.userName,Title for userName field,Username,Nom d'utilisateur
2166+
user.avatar,Aria label for user avatar button,User avatar,Avatar utilisateur
21622167
userRole.communityLeader,Name for user role Community Leader,Community Leader,Leader communautaire
21632168
userRole.fieldAgent,Name for user role Field Agent,Field Agent,Agent de terrain
21642169
userRole.healthcareWorker,Name for user role Healthcare Worker,Healthcare Worker,Personnel de santé

0 commit comments

Comments
 (0)