fix(Champ.dossier_link): do not use placeholder, use hint
This commit is contained in:
parent
94891b8695
commit
cab3a55f45
3 changed files with 13 additions and 1 deletions
|
@ -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 dossier.blank?
|
||||
|
|
6
config/locales/models/champs/dossier_link_champ/en.yml
Normal file
6
config/locales/models/champs/dossier_link_champ/en.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
en:
|
||||
activerecord:
|
||||
attributes:
|
||||
champs/dossier_link_champ:
|
||||
hints:
|
||||
value: "File number"
|
6
config/locales/models/champs/dossier_link_champ/fr.yml
Normal file
6
config/locales/models/champs/dossier_link_champ/fr.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
fr:
|
||||
activerecord:
|
||||
attributes:
|
||||
champs/dossier_link_champ:
|
||||
hints:
|
||||
value: "Numéro de dossier"
|
Loading…
Reference in a new issue