checkbox.html.tpl 419 B

12345678910
  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. </div>
  10. {{end}}