Finish permissions table support
This commit is contained in:
parent
dc5d40ddc3
commit
32956b6713
3 changed files with 31 additions and 15 deletions
|
@ -43,23 +43,23 @@
|
|||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3"><a href="asdasdasd">Add New Permission</a></td>
|
||||
</tr>
|
||||
|
||||
<tr style="background: #eee; ">
|
||||
<tr class="add-row">
|
||||
<td id="add-entity-permission" class="admin-search">
|
||||
<span class="entity-search" namespace="repository.namespace"
|
||||
placeholder="'Add a ' + (repository.is_organization ? 'team or ' : '') + 'user...'"
|
||||
entity-selected="addNewPermission(entity)"
|
||||
current-entity="selectedEntity"
|
||||
auto-clear="true"></span>
|
||||
placeholder="'Select a ' + (repository.is_organization ? 'team or ' : '') + 'user...'"
|
||||
current-entity="addPermissionInfo.entity"></span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="role-group" current-role="permission.role" role-changed="setRole(role, name, 'team')" roles="roles"></span>
|
||||
|
||||
<span class="role-group" current-role="addPermissionInfo.role" roles="roles"
|
||||
role-changed="addPermissionInfo.role = role"></span>
|
||||
</td>
|
||||
<td>
|
||||
<button class="btn btn-success"
|
||||
ng-disabled="!addPermissionInfo.role || !addPermissionInfo.entity"
|
||||
ng-click="addPermission()">
|
||||
Add Permission
|
||||
</button>
|
||||
</td>
|
||||
<td><button class="btn btn-success">Add Permission</button></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
|
Reference in a new issue