demarches-normaliennes/app/components/dsfr/toggle_component/toggle_component.html.haml
2023-05-09 14:46:14 +02:00

7 lines
308 B
Text

.fr-toggle.fr-toggle--border-bottom.fr-toggle--label-left
= @form.check_box @target, class: 'fr-toggle__input', disabled: @disabled
= @form.label @target,
@title,
class: 'fr-toggle__label',
data: { 'fr-checked-label': 'Activé', 'fr-unchecked-label': 'Désactivé' }
%p.fr-hint-text= @hint