Pretty toggle buttons in modal forms

This commit is contained in:
Oliver Walters committed 2019-06-18 23:12:13 +10:00
1 parent 0285d3ee83
commit 3dddb10f5d
2 files changed
+18 -1

No files matched your search

+1 -1
View File
@@ -1,3 +1,3 @@
<div>
<input field='{{ field }}' class='slidey' type="checkbox" data-onstyle="success" data-size='small' data-toggle="toggle" {% if disabled %}disabled="disabled" {% endif %}{% if state %}checked="checked"{% endif %}>
<input field='{{ field }}' class='slidey' type="checkbox" data-offstyle='warning' data-onstyle="success" data-size='small' data-toggle="toggle" {% if disabled %}disabled="disabled" {% endif %}{% if state %}checked="checked"{% endif %}>
</div>