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

10 lines
458 B
Text
Raw Normal View History

2023-07-10 14:48:33 +02:00
.fr-fieldset__element
.fr-checkbox-group
= @form.check_box :value,
{ required: @champ.required?, id: @champ.input_id, checked: @champ.true?, aria: { describedby: @champ.describedby_id }, class: class_names('required' => @champ.required?)},
'true',
'false'
%label.fr-label{ for: @champ.input_id, id: @champ.labelledby_id }
2023-07-10 14:48:33 +02:00
= render EditableChamp::ChampLabelContentComponent.new form: @form, champ: @champ, seen_at: @seen_at