This repository has been archived on 2026-04-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
core/server/pages/templates/components/team-select.html
Jeffrey Smith 45fe965c32 Changeset 0.22.5 (#147)
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com>
Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
2026-03-03 09:58:23 +00:00

19 lines
608 B
HTML

{{/*
team-select: Reusable team dropdown.
Pre-populated from server data — no client-side fetch needed.
*/}}
{{define "team-select"}}
<div class="form-group">
{{if index . "Label"}}<label>{{index . "Label"}}</label>{{end}}
<select name="{{index . "FieldName"}}" class="team-select">
{{if index . "AllowEmpty"}}
<option value="">— all teams —</option>
{{end}}
{{$sel := index . "Selected"}}
{{range index . "Teams"}}
<option value="{{.ID}}"{{if eq .ID $sel}} selected{{end}}>{{.Name}}</option>
{{end}}
</select>
</div>
{{end}}