54 lines
1.6 KiB
HTML
54 lines
1.6 KiB
HTML
<form #form="ngForm" class="overview">
|
|
<h3>Offene Anträge - Beförderung</h3>
|
|
|
|
<span *ngIf="showSuccessLabel"
|
|
class="label label-success label-small"
|
|
style="margin-left: inherit">
|
|
Erfolgreich gespeichert
|
|
</span>
|
|
|
|
<div class="table-container">
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th class="col-sm-1">Teilnehmer</th>
|
|
<th class="col-sm-1">Alter Rang</th>
|
|
<th class="col-sm-1">Neuer Rang</th>
|
|
<th class="col-sm-1 ">Antragsteller</th>
|
|
<th class="col-sm-1 text-center">Datum</th>
|
|
<th class="col-sm-1 text-center">Status</th>
|
|
<th class="col-sm-1 text-center">Aktion</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody *ngFor="let promotion of promotions">
|
|
<tr>
|
|
<td>
|
|
{{promotion.userId.username}}
|
|
</td>
|
|
<td *ngFor="let rank of (ranks | rankfilter: promotion.oldRankLvl)">
|
|
{{rank.name}}
|
|
</td>
|
|
<td *ngFor="let rank of (ranks | rankfilter: promotion.newRankLvl)">
|
|
{{rank.name}}
|
|
</td>
|
|
<td>
|
|
{{promotion.proposer.username}}
|
|
</td>
|
|
<td class="text-center">
|
|
{{promotion.timestamp | date: 'dd.MM.yyyy'}}
|
|
</td>
|
|
<td class="text-center">
|
|
{{promotion.confirmed === 0? 'In Bearbeitung' : (promotion.confirmed === 1? 'Genehmigt' : 'Abgelehnt')}}
|
|
</td>
|
|
<td class="text-right">
|
|
<a class="action" (click)="confirm(promotion, true)">Bestätigen</a><br>
|
|
<a class="action" (click)="confirm(promotion, false)">Ablehnen</a>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
</form>
|