{{define "content"}}

{{if .IsEdit}}Edit user{{else}}Create user{{end}}

{{template "back_link" (back "/users" "Back to users")}}
{{if .Error}}

{{.Error}}

{{end}}
{{if .LastGlobalLocked}}{{end}} {{if .LastGlobalLocked}}

The only global administrator cannot be demoted.

{{end}} {{/* Outbound and inbound domains are assigned separately; a domain administrator needs at least one on either list. "All" also covers domains added later — with it ticked the rows below are ignored. */}}
Outbound domains

A domain administrator needs at least one outbound or inbound domain.

{{range .Domains}} {{end}}
{{if .InboundEnabled}}
Inbound domains {{range .InboundDomains}} {{end}}
{{end}}
{{if .IsEdit}} {{if .LastGlobalLocked}}

The only global administrator cannot be deleted.

{{else}} Delete user {{end}} {{end}}
{{end}}