{{ define "content-with-session" }}

{{ block "title" .Data }}{{ .Name }} 帳號資訊{{ end }}

{{ $acct := .Account }} {{ with .Data }}
帳號 班級 座號 姓名 身份
{{ .ID }} {{ .Class }} {{ .Number }} {{ .Name }} {{ .Authority }}
{{ if or (ge $acct.Authority.Account 2) (eq $acct.ID .ID) }} {{ end }} {{ if eq $acct.Authority.Account 3 }} {{ end }} {{ if and ( eq $acct.Authority.Account 3 ) ( ne .ID "admin" ) }} {{ else }} {{ end }} {{ if and ( ge $acct.Authority.Account 2 ) ( ne .ID "admin" ) }} {{ else }} {{ end }} {{ if or (ge $acct.Authority.Account 2) (eq $acct.ID .ID) }} {{ end }} {{ if eq $acct.Authority.Account 3 }} {{ end }}
身份組 體溫管理權限 帳號管理權限刪除帳號
{{ .Authority }} {{ .Authority.Record }} {{ .Authority.Account }} {{ if ne .ID "admin" }} {{ end }}
{{ end }} {{ end }}