{{define "formtabler_imagecheck"}}
<div class="mb-3">
  <label class="form-label">{{defaultVal "Image Check" .Label}}</label>
  <div class="row g-2">
    {{range .Images}}
    <div class="col-6 col-sm-4">
      <label class="form-imagecheck mb-2">
        <input name="form-imagecheck" type="checkbox" value="{{.Alt}}" class="form-imagecheck-input"{{if .Checked}} checked{{end}}>
        <span class="form-imagecheck-figure">
          <img src="{{.Src}}" alt="{{.Alt}}" class="form-imagecheck-image">
        </span>
      </label>
    </div>
    {{end}}
  </div>
</div>
{{end}}
