demarches-normaliennes/app/components/editable_champ/phone_component/phone_component.html.haml
2022-09-01 09:48:27 +02:00

9 lines
298 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: t(".placeholder"),
required: @champ.mandatory?,
pattern: "[^a-z^A-Z]+"