<!-- <select class="gf-form-input gf-size-auto" ng-model="ctrl.type" ng-options="r for r in ['User Group', 'User']"></select> -->
<!-- <select class="gf-form-input gf-size-auto" ng-model="ctrl.permission" ng-options="p.value as p.text for p in ctrl.permissionTypeOptions"></select> -->
<divclass="gf-form"ng-repeat="acl in ctrl.userAcl">
<spanclass="gf-form-label width-15">
<iclass="fa fa-fw fa-user"></i>
{{acl.userLogin}}
</span>
<divclass="gf-form-select-wrapper">
<selectclass="gf-form-input gf-size-auto"ng-model="acl.permissions"ng-options="p.value as p.text for p in ctrl.permissionTypeOptions"ng-change="ctrl.updatePermission(permission)"></select>
<divclass="gf-form"ng-repeat="roleAcl in ctrl.roles">
<spanclass="gf-form-label width-5">
{{roleAcl.name}}
</span>
<divclass="gf-form-select-wrapper">
<selectclass="gf-form-input gf-size-auto"ng-model="roleAcl.permissions"ng-options="p.value as p.text for p in ctrl.roleOptions"ng-change="ctrl.updatePermission(permission)"></select>
</div>
</div>
</div>
<divclass="gf-form">
<spanclass="gf-form-label">Permission</span>
<selectclass="gf-form-input gf-size-auto"ng-model="ctrl.permission"ng-options="p.value as p.text for p in ctrl.permissionTypeOptions"></select>
<trng-repeat="permission in ctrl.userPermissions"class="permissionlist__item">
<td><iclass="fa fa-fw fa-user"></i></td>
<td>{{permission.userLogin}}</td>
<td><selectclass="gf-form-input gf-size-auto"ng-model="permission.permissions"ng-options="p.value as p.text for p in ctrl.permissionTypeOptions"ng-change="ctrl.updatePermission(permission)"></select></td>
<trng-repeat="permission in ctrl.userGroupPermissions"class="permissionlist__item">
<td><iclass="fa fa-fw fa-users"></i></td>
<td>{{permission.userGroup}}</td>
<td><selectclass="gf-form-input gf-size-auto"ng-model="permission.permissions"ng-options="p.value as p.text for p in ctrl.permissionTypeOptions"ng-change="ctrl.updatePermission(permission)"></select></td>
<trng-repeat="role in ctrl.roles"class="permissionlist__item">
<td></td>
<td>{{role.name}}</td>
<td><selectclass="gf-form-input gf-size-auto"ng-model="role.permissions"ng-options="p.value as p.text for p in ctrl.roleOptions"ng-change="ctrl.updatePermission(role)"></select></td>
<!-- <td><select class="gf-form-input gf-size-auto" ng-model="permission.permissions" ng-options="p.value as p.text for p in ctrl.permissionTypeOptions" ng-change="ctrl.updatePermission(permission)"></select></td> -->
<!-- <td><select class="gf-form-input gf-size-auto" ng-model="permission.permissions" ng-options="p.value as p.text for p in ctrl.permissionTypeOptions" ng-change="ctrl.updatePermission(permission)"></select></td> -->
<!-- <tr ng-repeat="role in ctrl.roles" class="permissionlist__item"> -->
<!-- <td></td> -->
<!-- <td>{{role.name}}</td> -->
<!-- <td><select class="gf-form-input gf-size-auto" ng-model="role.permissions" ng-options="p.value as p.text for p in ctrl.roleOptions" ng-change="ctrl.updatePermission(role)"></select></td> -->