2017-06-10 22:07:32 +02:00
|
|
|
<form #form="ngForm" class="overview">
|
2018-10-04 13:06:14 +02:00
|
|
|
<h3>{{'request.confirm.promotion.headline' | translate}}</h3>
|
2017-06-10 22:07:32 +02:00
|
|
|
|
|
|
|
<div class="table-container">
|
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2018-10-04 13:06:14 +02:00
|
|
|
<th class="col-sm-1">{{'request.confirm.promotion.table.head.participant' | translate}}</th>
|
|
|
|
<th class="col-sm-1">{{'request.confirm.promotion.table.head.rank.before' | translate}}</th>
|
|
|
|
<th class="col-sm-1">{{'request.confirm.promotion.table.head.rank.after' | translate}}</th>
|
2018-10-05 09:55:39 +02:00
|
|
|
<th class="col-sm-1 ">{{'request.confirm.promotion.table.head.requester' | translate}}</th>
|
2018-10-04 13:06:14 +02:00
|
|
|
<th class="col-sm-1 text-center">{{'request.confirm.promotion.table.head.date' | translate}}</th>
|
|
|
|
<th class="col-sm-1 text-center">{{'request.confirm.promotion.table.head.status' | translate}}</th>
|
2018-03-11 14:29:03 +01:00
|
|
|
<th class="col-sm-2 text-right"></th>
|
2018-10-04 13:06:14 +02:00
|
|
|
<th class="col-sm-1 text-right">{{'request.confirm.promotion.table.head.action' | translate}}</th>
|
2017-06-10 22:07:32 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2017-06-11 13:18:03 +02:00
|
|
|
<tbody *ngFor="let promotion of promotions">
|
2017-06-10 22:07:32 +02:00
|
|
|
<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">
|
2018-10-04 13:06:14 +02:00
|
|
|
<span *ngIf="promotion.confirmed === 0">
|
|
|
|
{{'request.confirm.promotion.table.status.progressing' | translate}}
|
|
|
|
</span>
|
|
|
|
<span *ngIf="promotion.confirmed === 1">
|
|
|
|
{{'request.confirm.promotion.table.status.accepted' | translate}}
|
|
|
|
</span>
|
|
|
|
<span *ngIf="promotion.confirmed !== 0 && promotion.confirmed !== 1">
|
|
|
|
{{'request.confirm.promotion.table.status.rejected' | translate}}
|
|
|
|
</span>
|
2017-06-10 22:07:32 +02:00
|
|
|
</td>
|
2018-03-11 14:29:03 +01:00
|
|
|
<td>
|
|
|
|
<textarea style="width: 100%;"
|
|
|
|
rows="3"
|
2018-10-04 13:06:14 +02:00
|
|
|
placeholder="{{'request.confirm.promotion.table.reject.reason.placeholder' | translate}}"
|
2018-03-11 14:29:03 +01:00
|
|
|
#rejectReason></textarea>
|
|
|
|
</td>
|
2017-06-11 13:18:03 +02:00
|
|
|
<td class="text-right">
|
2018-10-04 13:06:14 +02:00
|
|
|
<a class="action" (click)="confirm(promotion, true)">
|
|
|
|
{{'request.confirm.promotion.table.button.action.accept' | translate}}
|
|
|
|
</a><br>
|
|
|
|
<a class="action" (click)="confirm(promotion, false, rejectReason.value)">
|
|
|
|
{{'request.confirm.promotion.table.button.action.reject' | translate}}
|
|
|
|
</a>
|
2017-06-11 13:18:03 +02:00
|
|
|
</td>
|
2017-06-10 22:07:32 +02:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</form>
|