demarches-normaliennes/app/components/dsfr/toggle_component/toggle_component.html.haml

8 lines
308 B
Text
Raw Normal View History

2023-04-24 15:16:04 +02:00
.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