demarches-normaliennes/app/components/editable_champ/iban_component/iban_component.html.haml
simon lehericey 528b7ec3f8 refactor(champ): add required?
used for the `required` html attribute. It check visibility to avoid hidden required input which prevent the form from being sent.
2022-10-18 11:13:41 +02:00

8 lines
291 B
Text

= @form.text_field :value,
id: @champ.input_id,
placeholder: t(".placeholder"),
required: @champ.required?,
aria: { describedby: @champ.describedby_id },
data: { controller: 'iban-input'},
class: "width-66-desktop",
maxlength: 34 + 9 # count space separator of 4 digits-groups