karso/front/src/base/scene/application-user-edit/application-user-edit.html

132 lines
3.8 KiB
HTML

<div class="generic-page">
<div class="title">Configure Application (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>
<tr *ngFor="let user of users">
<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>&nbsp;
<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>
<tr *ngFor="let user of notUsers">
<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 class="fill-all">
<burger-property>
<name>Application properties</name>
<description>Update property of the application:</description>
<body>
<spiner *ngIf="editApplicationMenu===undefined"></spiner>
<app-render-form *ngIf="editApplicationMenu!==undefined" [values]="editApplicationMenu"
(deltaValues)="onEditValues($event)" (changeState)="onEditState($event)"></app-render-form>
</body>
<footer>
<button class="button login color-button-validate color-shadow-black" id="create-button"
[disabled]="updateButtonDisabled !== 0" (click)="onUpdateApplication()" type="submit">
Update
</button>
</footer>
</burger-property>
</div>
<div class="clear"><br /></div>
<div style="padding-top:15px;">
<burger-property>
<name>Associated Tokens</name>
<description>All current token available for this application</description>
<body>
<table class="table-model">
<tr>
<th>id</th>
<th>Name</th>
<th>Expiration Time</th>
<th>Token</th>
<th>Actions</th>
</tr>
<tr *ngFor="let token of tokens">
<td>{{token.id}}</td>
<td>{{token.name}}</td>
<td>{{formatTimestamp(token.endValidityTime)}}</td>
<td>{{token.token}}</td>
<td>
<button class="square-button login color-button-cancel color-shadow-black"
(click)="onRemoveApplicationToken($event, token)" type="submit">
<i class="material-icons">delete_forever</i>
</button>
</td>
</tr>
</table>
</body>
</burger-property>
</div>
<div class="clear"><br /></div>
<div style="padding-top:15px;">
<burger-property>
<name>Add Token</name>
<body>
<app-render-form [values]="createTokenMenu" (deltaValues)="onCreateValueDeltaValues($event)"
(changeState)="onCreateValueState($event)"></app-render-form>
</body>
<footer>
<button class="button login color-button-validate color-shadow-black" id="create-button"
(click)="createToken()" [disabled]="createTokenDisabled !== 0" type="submit">
+ Create new Token
</button>
</footer>
</burger-property>
</div>
<div class="clear"></div>
-->
</div>
<delete-confirm [comment]="confirmDeleteComment" (callback)="deleteConfirmed()"></delete-confirm>