{{define "head"}}{{end}} {{define "content"}} {{template "page-header" dict "Title" "Meetings"}}
{{/* zone.js fills this with the browser's own time zone, so a call's automatic title ("Call, 30 Sep 21:47") is in the starter's time, not the server's. Without script it stays empty, and the title names the zone it was written in. */}}

Upcoming

{{if .Upcoming}}
{{range .Upcoming}}
{{.Title}}{{if .ByAgent}}By {{.CreatedByPrincipal}} · {{end}}{{if .Starts}}Starts {{.Starts}}{{else}}Starts now{{end}}{{if not .LinkPresent}} · No live link{{end}} {{if .ByAgent}}{{icon "bot"}}{{template "badge" dict "Label" "Agent"}}{{end}}
{{icon "ellipsis"}}
{{end}}
{{else}} {{template "empty-state" dict "Body" "No meetings yet. Start a call now, or make one below and share its link."}} {{end}}

New meeting

{{template "field" dict "ID" "title" "Name" "title" "Label" "Title" "Required" true "Maxlength" "200" "Error" .TitleError}} {{template "field" dict "ID" "starts_at" "Name" "starts_at" "Label" "Starts" "Help" (printf "In %s. Leave it blank to start now." .Zone) "Type" "datetime-local" "Error" .StartError}}
{{if .Ended}}
Ended meetings ({{len .Ended}})
{{range .Ended}}
{{.Title}}{{if .ByAgent}}By {{.CreatedByPrincipal}} · {{end}}Ended{{if .ByAgent}}{{icon "bot"}}{{template "badge" dict "Label" "Agent"}}{{end}}
{{end}}
{{end}} {{end}}