{{ extends "base" }} {{ import "../_modules/form" }} {{ block script() }} {{ end }} {{ block body_content() }}

{{ .Name }}

{{ yield radio(name="scope", value=0, label="None", checked=.Perm.Scope) content }} data-type="integer"{{ end }} {{ yield radio(name="scope", value=1, label="Write", checked=.Perm.Scope) content }} data-type="integer"{{ end }} {{ yield radio(name="scope", value=2, label="Read & Write", checked=.Perm.Scope) content }} data-type="integer"{{ end }}
{{ roles := .CheckedRoles }} {{range .Roles}} {{ yield checkbox(name="roles", value=.ID, label=.Name, checked=isset(roles[.ID])) }} {{end}}
{{range .Users}}
{{ .Name }}
{{end}}
{{ yield form_submit(url="/service/") }}
{{ end }}