| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <div class="modal-body modal-body--with-overflow">
- <div class="modal-header">
- <h2 class="modal-header-title">
- <i class="fa fa-lock"></i>
- <span class="p-l-1">Permissions</span>
- </h2>
- <a class="modal-header-close" ng-click="ctrl.dismiss();">
- <i class="fa fa-remove"></i>
- </a>
- </div>
- <form ng-submit="ctrl.save()" class="modal-content" novalidate>
- <!-- <h5 class="section-heading">Add New Permission</h5> -->
- <!-- <form name="addPermission" class="gf-form-group"> -->
- <!-- <div class="gf-form-inline"> -->
- <!-- <div class="gf-form"> -->
- <!-- <span class="gf-form-label">Type</span> -->
- <!-- <select class="gf-form-input gf-size-auto" ng-model="ctrl.type" ng-options="r for r in ['User Group', 'User']"></select> -->
- <!-- </div> -->
- <!-- <div class="gf-form" ng-show="ctrl.type === 'User'"> -->
- <!-- <span class="gf-form-label">User</span> -->
- <!-- <user-picker user-id="ctrl.userId"></user-picker> -->
- <!-- </div> -->
- <!-- <div class="gf-form" ng-show="ctrl.type === 'User Group'"> -->
- <!-- <span class="gf-form-label">User Group</span> -->
- <!-- <user-group-picker user-group-id="ctrl.userGroupId"></user-group-picker> -->
- <!-- </div> -->
- <!-- <div class="gf-form"> -->
- <!-- <span class="gf-form-label">Permission</span> -->
- <!-- <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> -->
- <!-- </div> -->
- <!-- <div class="gf-form"> -->
- <!-- <button class="btn gf-form-btn btn-success" ng-click="ctrl.addPermission()">Add</button> -->
- <!-- </div> -->
- <!-- </div> -->
- <!-- </form> -->
- <table class="filter-table">
- <tr ng-repeat="acl in ctrl.aclItems">
- <td style="width: 100%;">
- <i class="{{acl.icon}}"></i>
- <span ng-bind-html="acl.nameHtml"></span>
- </td>
- <td>can...</td>
- <td class="dropdown">
- <a class="pointer" style="white-space: nowrap">
- {{acl.permissionName}}
- <i class="fa fa-caret-down"></i>
- </a>
- </td>
- <td>
- <a class="btn btn-inverse btn-small" ng-show="revision.version !== ctrl.dashboard.version" ng-click="ctrl.restore(revision.version)">
- <i class="fa fa-remove"></i>
- </a>
- </td>
- </tr>
- </table>
- <div class="gf-form-button-row text-center">
- <button type="submit" class="btn btn-danger" ng-disabled="!ctrl.canUpdate">Update Permissions</button>
- <a class="btn-text" ng-click="ctrl.dismiss();">Close</a>
- </div>
- </form>
- </div>
- <!-- <br> -->
- <!-- <br> -->
- <!-- <br> -->
- <!-- -->
- <!-- <div class="permissionlist"> -->
- <!-- <div class="permissionlist__section"> -->
- <!-- <div class="permissionlist__section-header"> -->
- <!-- <h6>Permissions</h6> -->
- <!-- </div> -->
- <!-- <table class="filter-table form-inline"> -->
- <!-- <thead> -->
- <!-- <tr> -->
- <!-- <th style="width: 50px;"></th> -->
- <!-- <th>Name</th> -->
- <!-- <th style="width: 220px;">Permission</th> -->
- <!-- <th style="width: 120px"></th> -->
- <!-- </tr> -->
- <!-- </thead> -->
- <!-- <tbody> -->
- <!-- <tr ng-repeat="permission in ctrl.userPermissions" class="permissionlist__item"> -->
- <!-- <td><i class="fa fa-fw fa-user"></i></td> -->
- <!-- <td>{{permission.userLogin}}</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 class="text-right"> -->
- <!-- <a ng-click="ctrl.removePermission(permission)" class="btn btn-danger btn-small"> -->
- <!-- <i class="fa fa-remove"></i> -->
- <!-- </a> -->
- <!-- </td> -->
- <!-- </tr> -->
- <!-- <tr ng-repeat="permission in ctrl.userGroupPermissions" class="permissionlist__item"> -->
- <!-- <td><i class="fa fa-fw fa-users"></i></td> -->
- <!-- <td>{{permission.userGroup}}</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 class="text-right"> -->
- <!-- <a ng-click="ctrl.removePermission(permission)" class="btn btn-danger btn-small"> -->
- <!-- <i class="fa fa-remove"></i> -->
- <!-- </a> -->
- <!-- </td> -->
- <!-- </tr> -->
- <!-- <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> -->
- <!-- <td class="text-right"> -->
- <!-- -->
- <!-- </td> -->
- <!-- </tr> -->
- <!-- </tbody> -->
- <!-- </table> -->
- <!-- </div> -->
- <!-- </div> -->
- <!-- </div> -->
|