style(champ): add placeholders for email, iban, phone, siret champs
Closes #7428
This commit is contained in:
parent
2d23215836
commit
9768f4e1c9
8 changed files with 38 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
|||
= form.email_field :value,
|
||||
id: champ.input_id,
|
||||
aria: { describedby: champ.describedby_id },
|
||||
placeholder: champ.libelle,
|
||||
placeholder: t(".placeholder"),
|
||||
required: champ.mandatory?
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= form.text_field :value,
|
||||
id: champ.input_id,
|
||||
placeholder: "27 caractères au format FR7630006000011234567890189",
|
||||
placeholder: t(".placeholder"),
|
||||
required: champ.mandatory?,
|
||||
aria: { describedby: champ.describedby_id },
|
||||
data: { controller: 'iban-input'}
|
||||
|
|
|
@ -4,6 +4,6 @@
|
|||
= form.phone_field :value,
|
||||
id: champ.input_id,
|
||||
aria: { describedby: champ.describedby_id },
|
||||
placeholder: champ.libelle,
|
||||
placeholder: t(".placeholder"),
|
||||
required: champ.mandatory?,
|
||||
pattern: "[^a-z^A-Z]+"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
= form.text_field :value,
|
||||
id: champ.input_id,
|
||||
aria: { describedby: champ.describedby_id },
|
||||
placeholder: champ.libelle,
|
||||
placeholder: t(".placeholder"),
|
||||
data: { controller: 'turbo-input', turbo_input_url_value: champs_siret_path(champ.id) },
|
||||
required: champ.mandatory?,
|
||||
pattern: "[0-9]{14}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue