demarches-normaliennes/app/views/shared/dossiers/editable_champs/_phone.html.haml

9 lines
289 B
Text

-# Allowed formats:
-# very light validation is made client-side
-# stronger validation is made server-side
= form.phone_field :value,
id: champ.input_id,
aria: { describedby: champ.describedby_id },
placeholder: champ.libelle,
required: champ.mandatory?,
pattern: "[^a-z^A-Z]+"