checkbox.html.tpl 510 B

1234567891011
  1. {{define "checkbox"}}
  2. <div class="{{if .options.formClass}}{{.options.formClass}}{{else}}form-group{{end}}">
  3. <input type="checkbox"
  4. name="{{.options.name}}"
  5. class="form-check-input"
  6. id="{{.options.id}}"
  7. {{if .update}}{{if eq true .value}}checked{{end}}{{end}} {{.options.required}}>
  8. <label class="form-check-label" for="{{.options.id}}">{{.options.label}}</label>
  9. {{if .options.help}}<small class="form-text text-muted">{{.options.help}}</small>{{end}}
  10. </div>
  11. {{end}}