demarches-normaliennes/app/components/editable_champ/mesri_component/mesri_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

9 lines
241 B
Text

.mesri-inputs
%div
= @form.label :ine, t('.ine_label')
%p.notice= t('.ine_notice')
= @form.text_field :ine,
required: @champ.required?,
aria: { describedby: @champ.describedby_id },
class: "width-33-desktop"