{{define "formtabler_selectgroup_projectmanager"}}
<div class="mb-3">
  <label class="form-label">{{defaultVal "Project Manager" .Label}}</label>
  <div class="form-selectgroup form-selectgroup-boxes d-flex flex-column">
    {{range .Managers}}
    <label class="form-selectgroup-item flex-fill">
      <input type="checkbox" name="form-project-manager[]" value="{{.Name}}" class="form-selectgroup-input"{{if .Checked}} checked{{end}}>
      <div class="form-selectgroup-label d-flex align-items-center p-3">
        <div class="me-3">
          <span class="form-selectgroup-check"></span>
        </div>
        <div class="form-selectgroup-label-content d-flex align-items-center">
          <span class="avatar avatar-sm me-3" style="background-image: url({{.Src}})"></span>
          <div>
            <div class="fw-medium">{{.Name}}</div>
            <div class="text-secondary">{{.JobTitle}}</div>
          </div>
        </div>
      </div>
    </label>
    {{end}}
  </div>
</div>
{{end}}
