1
|
<div class="user-approval-container">
|
2
|
|
3
|
<div class="component-header">
|
4
|
Schvalování uživatelů
|
5
|
</div>
|
6
|
|
7
|
<table class="table text-center table-hover">
|
8
|
<thead class="thead-light">
|
9
|
<tr>
|
10
|
<th style="width: 35%"> Jméno </th>
|
11
|
<th style="width: 35%"> Datum žádosti </th>
|
12
|
<th></th>
|
13
|
</tr>
|
14
|
</thead>
|
15
|
<tbody>
|
16
|
<tr *ngFor="let request of authorizationRequests">
|
17
|
<td>
|
18
|
{{request.firstName}} {{request.lastName}}
|
19
|
</td>
|
20
|
<td>
|
21
|
{{request.timestamp | date:'yyyy/MM/dd'}}
|
22
|
</td>
|
23
|
<td class="buttons">
|
24
|
<button mat-icon-button (click)="userApproved(request.id, true)">
|
25
|
<i class="material-icons approve-btn">done</i>
|
26
|
</button>
|
27
|
<button mat-icon-button (click)="userApproved(request.id, false)">
|
28
|
<i class="material-icons reject-btn">delete</i>
|
29
|
</button>
|
30
|
</td>
|
31
|
</tr>
|
32
|
</tbody>
|
33
|
</table>
|
34
|
|
35
|
</div>
|