Files
2021-05-06 21:42:39 +08:00

16 lines
473 B
HTML

<div class="form-group mb-3">
<div class="form-label">{{ label }}</div>
<label class="form-check form-switch">
<input name="{{ name }}" class="form-check-input" type="checkbox" {% if value %}
checked
{% endif %} {% if disabled %}
disabled
{% endif %} >
{% if help_text %}
<small class="form-hint">
{{ help_text }}
</small>
{% endif %}
</label>
</div>