{{$scopes := get_scopes}} {{$resource := .Resource}} {{if $scopes}}
{{range $scope := $scopes}} {{if $scope.Group}} {{else}} {{range $s := $scope.Scopes}} {{t (printf "%v.scopes.%v" $resource.ToParam $s.Label) $s.Label}} {{if $s.Active}}clear{{end}} {{end}} {{end}} {{end}}
{{end}}