add permission view
This commit is contained in:
@@ -235,10 +235,13 @@ const rbacPermissionsVT = virtualTable({
|
||||
deletePermission(row['ID'], `${row['Scope']}.${row['Resource']}.${row['Action']}`);
|
||||
}
|
||||
});
|
||||
createTd(tr, row['ID'], { classes: [ 'text-align:left' ], styles: { 'max-width': '100px' } } );
|
||||
createTd(tr, row['Scope'], { classes: [ 'text-align:left' ] });
|
||||
createTd(tr, row['Resource'], { classes: [ 'text-align:center' ] });
|
||||
createTd(tr, row['Action'], { classes: [ 'text-align:center' ] });
|
||||
createTd(tr, row['Permission_ID'], { classes: [ 'text-align:left' ], styles: { 'width': '100px' } } );
|
||||
createTd(tr, row['GroupUserCount'], { classes: [ 'text-align:center' ] });
|
||||
createTd(tr, row['TotalUserCount'], { classes: [ 'text-align:center' ] });
|
||||
createTd(tr, row['RoleCount'], { classes: [ 'text-align:center' ], styles: { 'width': '100px' } });
|
||||
createTd(tr, row['Scope'], { classes: [ 'text-align:right' ], styles: { 'width': '100px' } });
|
||||
createTd(tr, row['Resource'], { classes: [ 'text-align:center' ], styles: { 'width': '100px' } });
|
||||
createTd(tr, row['Action'], { classes: [ 'text-align:left' ], styles: { 'width': '100px' } });
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ input {
|
||||
<div class="card" style="flex:1 1 auto;min-width:300px">
|
||||
Users <input id="newUserName" placeholder="sAMAccountName" /> <button class="bluebutton" onclick="createUser()">Create User</button>
|
||||
<div class="table-wrapper fit-table">
|
||||
<table id="rbacUsersTable" style="height:100%">
|
||||
<table id="rbacUsersTable" style="">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-align:left"></th>
|
||||
@@ -87,6 +87,33 @@ input {
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- PERMISSIONS -->
|
||||
<div class="card" style="min-width:300px;flex:1 1 auto">
|
||||
<input id="permScope" placeholder="Scope" />.<input id="permResource" placeholder="Resource" />.<input id="permAction" placeholder="Action" />
|
||||
|
||||
<button class="bluebutton" onclick="createPermission()">Create Permission</button>
|
||||
|
||||
<div class="table-wrapper fit-table">
|
||||
<table id="rbacPermissionsTable" style="">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-align:left"></th>
|
||||
<th class="text-align:left">ID</th>
|
||||
<th class="text-align:center">Gruppen</th>
|
||||
<th class="text-align:center">Benutzer</th>
|
||||
<th class="text-align:center">Rollen</th>
|
||||
<th class="text-align:right">Scope</th>
|
||||
<th class="text-align:center">Resource</th>
|
||||
<th class="text-align:left">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="100%">BERECHTIGUNGEN WERDEN GELADEN . . .</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- GROUPS -->
|
||||
<div class="card" style="min-width:300px;flex:1 1 calc(300px)">
|
||||
@@ -106,30 +133,6 @@ input {
|
||||
<span>ROLLEN WERDEN GELADEN . . .</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- PERMISSIONS -->
|
||||
<div class="card" style="min-width:300px;flex:1 1 auto">
|
||||
<input id="permScope" placeholder="Scope" />.<input id="permResource" placeholder="Resource" />.<input id="permAction" placeholder="Action" />
|
||||
|
||||
<button class="bluebutton" onclick="createPermission()">Create Permission</button>
|
||||
|
||||
<div class="table-wrapper fit-table">
|
||||
<table id="rbacPermissionsTable" style="height:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-align:left"></th>
|
||||
<th class="text-align:left">ID</th>
|
||||
<th class="text-align:left">Scope</th>
|
||||
<th class="text-align:center">Resource</th>
|
||||
<th class="text-align:center">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="100%">BERECHTIGUNGEN WERDEN GELADEN . . .</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user