11 lines
510 B
Smarty
11 lines
510 B
Smarty
{{define "checkbox"}}
|
|
<div class="{{if .options.formClass}}{{.options.formClass}}{{else}}form-group{{end}}">
|
|
<input type="checkbox"
|
|
name="{{.options.name}}"
|
|
class="form-check-input"
|
|
id="{{.options.id}}"
|
|
{{if .update}}{{if eq true .value}}checked{{end}}{{end}} {{.options.required}}>
|
|
<label class="form-check-label" for="{{.options.id}}">{{.options.label}}</label>
|
|
{{if .options.help}}<small class="form-text text-muted">{{.options.help}}</small>{{end}}
|
|
</div>
|
|
{{end}}
|