{{$isAdmin := (eq .currentStaff.Rank 3) -}}
Username | Rank | Added on | Action |
---|---|---|---|
{{$staff.Username}} | {{$staff.RankTitle}} | {{formatTimestamp $staff.AddedOn}} | {{if or $isAdmin (eq $staff.Username $.currentStaff.Username) -}} Update {{end}}{{if and $isAdmin (not (eq $staff.Username $.currentStaff.Username)) -}} Delete {{- end}} |
If the password fields are left blank, only the rank will be updated
{{- end -}} {{end}}