correctif(users/dossiers/brouillon#submit): ETQ usager, je souhaite que chaque lien pointant vers une erreur de champ m'oriente sur le champ

This commit is contained in:
Martin 2023-05-13 06:44:58 +02:00 committed by mfo
parent 84866f8a1b
commit af19bbe8f5
3 changed files with 16 additions and 4 deletions

View file

@ -561,7 +561,7 @@ module Users
[
"Le champ « #{model.libelle.truncate(200)} » #{str_error}",
helpers.link_to(t('views.users.dossiers.fix_champ'), public_send(route_helper, anchor: model.input_id))
helpers.link_to(t('views.users.dossiers.fix_champ'), public_send(route_helper, anchor: model.labelledby_id), class: 'error-anchor')
].join(", ")
rescue # case of invalid type de champ on champ
str_error