demarches-normaliennes/app/components/editable_champ/phone_component/phone_component.html.haml

5 lines
292 B
Text
Raw Normal View History

2022-08-12 10:45:04 +02:00
-# Allowed @formats:
-# very light validation is made client-side
-# stronger validation is made server-side
2024-10-22 16:53:07 +02:00
= @form.phone_field(:value, input_opts(id: @champ.input_id, aria: { describedby: "#{@champ.describedby_id} #{@champ.error_id}" }, required: @champ.required?, pattern: "[^a-z^A-Z]+"))