{{ extends "_base" }} {{ import "../../_modules/form" }} {{ block body_content() }}

{{ .User.Name }}

{{ yield switch(id="cb-admin", name="admin", label="Administrator", checked=.User.Admin) }}
{{ yield radio(name="type", value="internal", label="Internal", checked=.User.Type) }} {{ yield radio(name="type", value="ldap", label="LDAP", checked=.User.Type) }}
{{ roles := .UserRoles }} {{range .Roles}} {{ yield checkbox(name="roles", value=.ID, label=.Name, checked=isset(roles[.ID])) }} {{end}}
{{ yield form_submit(url="/system/user/") }}
{{ end }}