{{ define "title" }} {{ with .Class }}{{ . }}班{{ end }} {{ with .Date }}{{ dashToSlash . }}{{ end }} 統計資料 {{ end }} {{ define "content-with-session" }}

{{ template "title" .Data }}

{{ $acct := .Account }} {{ with .Data }}
{{ if eq $acct.Record 3 }} {{ end }}
下載{{ template "title" . }} (.csv)
總人數 已記錄人數 未記錄人數 發燒人數 請假
{{ add .Recorded .Unrecorded }} {{ .Recorded }} {{ .Unrecorded }} {{ .Fevered }} {{ .Other }}
{{ end }} {{ end }} {{ define "account_list" }} {{ $type := .Type }} {{ if ne .Type 2 }} {{ end }} {{ if eq .Type 4 }} {{ end }} {{ range .Records }} {{ if ne $type 2 }} {{ end }} {{ if eq $type 4 }} {{ end }} {{ end }}
帳號 班級 座號 姓名體溫身份備註
{{ .Account.ID }} {{ .Class }} {{ .Number }} {{ .Name }}{{ .Record.Temperature }}{{ .Authority }}{{ .Reason }}
{{ end }}