{{define "title"}}{{ .appName }} - User - Groups - {{.user.Email}}{{end}}
{{define "pageTitle"}}User - Groups - <span class="text-accent">{{.user.Email}}</span>{{end}}
{{define "subTitle"}}{{end}}
{{define "menu"}}
    {{template "admin_menu" . }}
{{end}}

{{define "head"}}

<script>

    var assignedGroups = [];
    {{range $key, $value := .userGroups }}
    assignedGroups.push({
        "id": "{{- $key -}}",
        "groupIdentifier": "{{- $value -}}"
    });
    {{ end }}

    document.addEventListener("