{{define "formtabler_imageradio"}}
<div class="mb-3">
  <label class="form-label">{{defaultVal "Image Check Radio" .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-radio" type="radio" 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}}
