amelioration(champ.rna): affiche les retours UX avec les bons composant text dsfr
This commit is contained in:
parent
0edf5d2c58
commit
4858239768
2 changed files with 5 additions and 4 deletions
|
@ -1,11 +1,11 @@
|
|||
- case error
|
||||
- when :invalid
|
||||
%p.fr-pt-1.fr-pb-0
|
||||
%p.fr-error-text
|
||||
Le numéro RNA doit commencer par un W majuscule suivi de 9 chiffres
|
||||
- when :not_found
|
||||
%p.fr-pt-1.fr-pb-0= t('.not_found')
|
||||
%p.fr-error-text= t('.not_found')
|
||||
- when :network_error
|
||||
%p.fr-pt-1.fr-pb-0= t('.network_error')
|
||||
%p.fr-error-text= t('.network_error')
|
||||
- else
|
||||
- if champ.value.present?
|
||||
%p.fr-pt-1.fr-pb-0= t('.data_fetched', title: champ.title)
|
||||
%p.fr-info-text= t('.data_fetched', title: champ.title)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue