1
|
<div class="days-off-approval-container">
|
2
|
|
3
|
<div class="component-header">
|
4
|
Schvalování volna
|
5
|
</div>
|
6
|
|
7
|
<table class="table text-center table-hover">
|
8
|
<thead class="thead-light">
|
9
|
<tr>
|
10
|
<th scope="col"> Jméno </th>
|
11
|
<th scope="col"> Požádáno </th>
|
12
|
<th scope="col"> Typ volna </th>
|
13
|
<th scope="col"> Datum </th>
|
14
|
<th scope="col"> Od </th>
|
15
|
<th scope="col"> Do </th>
|
16
|
<th></th>
|
17
|
</tr>
|
18
|
</thead>
|
19
|
<tbody>
|
20
|
<tr *ngFor="let request of vacationRequests">
|
21
|
<td>
|
22
|
{{request.firstName}} {{request.lastName}}
|
23
|
</td>
|
24
|
<td>
|
25
|
{{request.timestamp | date:'yyyy/MM/dd HH:mm'}}
|
26
|
</td>
|
27
|
<td>
|
28
|
{{request.type}}
|
29
|
</td>
|
30
|
<td>
|
31
|
{{request.date | date:'yyyy/MM/dd'}}
|
32
|
</td>
|
33
|
<td>
|
34
|
{{request.from}}
|
35
|
</td>
|
36
|
<td>
|
37
|
{{request.to}}
|
38
|
</td>
|
39
|
<td class="buttons">
|
40
|
<button mat-icon-button (click)="vacationApprovalCompleted(request.id, true)">
|
41
|
<i class="material-icons approve-btn">done</i>
|
42
|
</button>
|
43
|
<button mat-icon-button (click)="vacationApprovalCompleted(request.id, false)">
|
44
|
<i class="material-icons reject-btn">delete</i>
|
45
|
</button>
|
46
|
</td>
|
47
|
</tr>
|
48
|
</tbody>
|
49
|
</table>
|
50
|
</div>
|