{{define "formtabler_toggle"}}
<div class="mb-3">
  <div class="form-label">{{defaultVal "Toggle switches" .Label}}</div>
  {{range .Toggles}}
  <label class="form-check form-switch">
    <input class="form-check-input" type="checkbox"{{if .Checked}} checked{{end}}>
    {{if .Title}}<span class="form-check-label">{{.Title}}</span>{{end}}
  </label>
  {{end}}
</div>
{{end}}
