fix(Champ.dossier_link): do not use placeholder, use hint

This commit is contained in:
mfo 2024-04-11 09:47:28 +02:00
parent 94891b8695
commit cab3a55f45
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC
3 changed files with 13 additions and 1 deletions

View file

@ -1,4 +1,4 @@
= @form.text_field(:value, input_opts(id: @champ.input_id, aria: { describedby: @champ.describedby_id }, inputmode: :numeric, min: 1, pattern: "[0-9]{1,12}", placeholder: "Numéro de dossier", autocomplete: 'off', required: @champ.required?, class: "width-33-desktop #{@champ.blank? ? '' : 'small-margin'}")) = @form.text_field(:value, input_opts(id: @champ.input_id, aria: { describedby: @champ.describedby_id }, inputmode: :numeric, min: 1, pattern: "[0-9]{1,12}", autocomplete: 'off', required: @champ.required?, class: "width-33-desktop #{@champ.blank? ? '' : 'small-margin'}"))
- if !@champ.blank? - if !@champ.blank?
- if dossier.blank? - if dossier.blank?

View file

@ -0,0 +1,6 @@
en:
activerecord:
attributes:
champs/dossier_link_champ:
hints:
value: "File number"

View file

@ -0,0 +1,6 @@
fr:
activerecord:
attributes:
champs/dossier_link_champ:
hints:
value: "Numéro de dossier"