poc(erreur): sur les champs

This commit is contained in:
Martin 2023-05-05 09:13:05 +02:00 committed by mfo
parent aed4791b3c
commit b88b537518
35 changed files with 223 additions and 221 deletions

View file

@ -1,11 +1,11 @@
- case error
- when :invalid
%p.pt-1
%p.fr-pt-1.fr-pb-0
Le numéro RNA doit commencer par un W majuscule suivi de 9 chiffres
- when :not_found
%p.pt-1= t('.not_found')
%p.fr-pt-1.fr-pb-0= t('.not_found')
- when :network_error
%p.pt-1= t('.network_error')
%p.fr-pt-1.fr-pb-0= t('.network_error')
- else
- if champ.value.present?
%p.pt-1= t('.data_fetched', title: champ.title)
%p.fr-pt-1.fr-pb-0= t('.data_fetched', title: champ.title)