forked from goffee/core
8 lines
332 B
HTML
8 lines
332 B
HTML
|
{{define "form_switch"}}
|
||
|
|
||
|
<div class="form-check form-switch">
|
||
|
<input class="form-check-input" type="checkbox" role="switch" name="{{.ID}}" id="{{.ID}}" {{if eq .IsChecked true}} checked{{end}} {{if eq .IsDisabled true}} disabled{{end}}>
|
||
|
<label class="form-check-label" for="{{.ID}}">{{.Label}}</label>
|
||
|
</div>
|
||
|
{{end}}
|