2024-02-15 10:58:05 +01:00
|
|
|
.fr-toggle.fr-toggle--label-left
|
|
|
|
= @form.check_box @target, class: 'fr-toggle__input', disabled: @disabled,
|
|
|
|
data: @opt
|
2023-04-24 15:16:04 +02:00
|
|
|
= @form.label @target,
|
|
|
|
@title,
|
2024-02-15 10:58:05 +01:00
|
|
|
data: { 'fr-checked-label': toggle_labels[:checked], 'fr-unchecked-label': toggle_labels[:unchecked] },
|
|
|
|
class: 'fr-toggle__label'
|
|
|
|
- if @hint
|
|
|
|
%p.fr-hint-text= @hint
|