67 lines
1.8 KiB
HTML
67 lines
1.8 KiB
HTML
<div class="generic-page">
|
|
<div class="title">Configure Application: '{{applicationName}}' (Users rights)</div>
|
|
<div class="fill-all">
|
|
<burger-property>
|
|
<name>Users</name>
|
|
<description>Users that have access on this application</description>
|
|
|
|
<body>
|
|
<table class="table-model">
|
|
<tr>
|
|
<th>id</th>
|
|
<th>login</th>
|
|
<th>actions</th>
|
|
</tr>
|
|
@for (user of users; track user.id;) {
|
|
<tr>
|
|
<td>{{user.id}}</td>
|
|
<td>{{user.login}}</td>
|
|
<td>
|
|
<button class="square-button login color-shadow-black"
|
|
(click)="onEditUserRight($event, user)" type="submit">
|
|
<i class="material-icons">edit</i>
|
|
</button>
|
|
<button class="square-button login color-button-cancel color-shadow-black"
|
|
(click)="onRemoveApplicationUser($event, user)" type="submit">
|
|
<i class="material-icons">delete</i>
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</table>
|
|
</body>
|
|
</burger-property>
|
|
</div>
|
|
<div class="clear"><br /></div>
|
|
<div class="fill-all">
|
|
<burger-property>
|
|
<name>Add users</name>
|
|
<description>Add a new user at this application</description>
|
|
|
|
<body>
|
|
<table class="table-model">
|
|
<tr>
|
|
<th>id</th>
|
|
<th>login</th>
|
|
<th>add</th>
|
|
</tr>
|
|
@for (user of notUsers; track user.id;) {
|
|
<tr>
|
|
<td>{{user.id}}</td>
|
|
<td>{{user.login}}</td>
|
|
<td>
|
|
<button class="square-button color-button-validate color-shadow-black"
|
|
(click)="onAddApplicationUser($event, user)" type="submit">
|
|
<i class="material-icons">add</i>
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</table>
|
|
</body>
|
|
</burger-property>
|
|
</div>
|
|
<div class="clear"><br /></div>
|
|
</div>
|
|
|
|
<delete-confirm [comment]="confirmDeleteComment" (callback)="deleteConfirmed()"></delete-confirm> |