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

11 lines
594 B
Text
Raw Normal View History

2024-10-30 15:08:19 +01:00
.fr-checkbox-group.fr-mb-2w
= @form.check_box :value,
2024-10-30 15:08:19 +01:00
{ required: @champ.required?, id: @champ.input_id, checked: @champ.true?, aria: { describedby: "#{@champ.describedby_id} #{@champ.error_id}" } },
'true',
'false'
%label.fr-label{ for: @champ.input_id, id: @champ.labelledby_id }
2024-10-30 15:08:19 +01:00
%span.width-100
= render EditableChamp::ChampLabelContentComponent.new form: @form, champ: @champ, seen_at: @seen_at
2024-10-30 15:08:19 +01:00
- if @champ.description.present?
.fr-hint-text.fr-mt-1v.fr-ml-4w{ id: @champ.describedby_id }= render SimpleFormatComponent.new(@champ.description, allow_a: true)