{{define "formtabler_imageperson"}}
<div class="mb-3">
  <label class="form-label">{{defaultVal "Person Check" .Label}}</label>
  <div class="row g-2">
    {{range .People}}
    <div class="col-auto">
      <label class="form-imagecheck mb-2">
        <input name="form-imagecheck" type="checkbox" value="{{.Name}}" class="form-imagecheck-input"{{if .Checked}} checked{{end}}>
        <span class="form-imagecheck-figure">
          <span class="form-imagecheck-image">
            <span class="avatar avatar-md" style="background-image: url({{.Src}})"></span>
          </span>
        </span>
      </label>
    </div>
    {{end}}
  </div>
</div>
{{end}}
