<div class="form-group mb-3">
  <div class="form-check form-switch">
    <label class="{* label_class or "" *}" for="{* id *}">{* label or "" *}</label> {* icon or "" *}
    <input id="{* id *}" class="form-check-input" type="checkbox" name="{* id *}" value="{* value or 1 *}" {% if checked then %} checked {% end %}>
  </div>
</div>
