{{ 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 }}
{{ .Authority }} |
{{ end }}
{{ if and ( ge $acct.Authority.Account 2 ) ( ne .ID "admin" ) }}
|
|
{{ else }}
{{ .Authority.Record }} |
{{ .Authority.Account }} |
{{ end }}
{{ if or (ge $acct.Authority.Account 2) (eq $acct.ID .ID) }}
|
{{ end }}
{{ if eq $acct.Authority.Account 3 }}
{{ if ne .ID "admin" }}
{{ end }}
|
{{ end }}
{{ end }}
{{ end }}