demarches-normaliennes/app/components/editable_champ/rna_component/rna_component.html.haml
mfo d8b7aa14f6
feat(Champ.rna): do not use title attribute on champ.rna
Co-authored-by: Corinne Durrmeyer <corinne@inseo.fr>
2024-04-17 07:31:33 +02:00

4 lines
502 B
Text

= @form.text_field(:value, input_opts( id: @champ.input_id, aria: { describedby: @champ.describedby_id }, data: { controller: 'turbo-input', turbo_input_load_on_connect_value: @champ.prefilled? && @champ.value.present? && @champ.data.blank?, turbo_input_url_value: champs_rna_path(@champ.id) }, required: @champ.required?, pattern: "W[0-9]{9}", class: "width-33-desktop", maxlength: 10))
.rna-info{ id: dom_id(@champ, :rna_info) }
= render 'shared/champs/rna/association', champ: @champ, error: nil