toggle-switch created and added in the patron

This commit is contained in:
Judith 2020-07-23 11:22:57 +02:00
parent fb3e69aa2a
commit 19fa9e3f2e
2 changed files with 94 additions and 0 deletions

View file

@ -64,6 +64,13 @@
Option B
%p.notice Une autre option, pas mal non plus.
%h3.header-subsection Interrupteur
%label.toggle-switch{ tabindex: 0 }
= f.check_box :archived, class: 'toggle-switch-checkbox'
%span.toggle-switch-control.round
%span.toggle-switch-label.on Activé
%span.toggle-switch-label.off Désactivé
.send-wrapper
= f.submit 'Enregistrer un brouillon (formnovalidate)', formnovalidate: true, class: 'button send'
= f.submit 'Envoyer', class: 'button send primary'