2017-06-10 22:07:32 +02:00
|
|
|
<form #form="ngForm" class="overview">
|
2018-10-04 13:06:14 +02:00
|
|
|
<h3>{{'request.confirm.award.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.award.table.head.participant' | translate}}</th>
|
2017-06-10 22:07:32 +02:00
|
|
|
<th class="col-sm-1"></th>
|
2018-10-04 13:06:14 +02:00
|
|
|
<th class="col-sm-2">{{'request.confirm.award.table.head.award' | translate}}</th>
|
|
|
|
<th class="col-sm-2">{{'request.confirm.award.table.head.reason' | translate}}</th>
|
|
|
|
<th class="col-sm-1 ">{{'request.confirm.award.table.head.requester' | translate}}</th>
|
|
|
|
<th class="col-sm-1 text-right">{{'request.confirm.award.table.head.date' | 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.award.table.head.action' | translate}}</th>
|
2017-06-10 22:07:32 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody *ngFor="let award of awards">
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
{{award.userId.username}}
|
|
|
|
</td>
|
|
|
|
<td *ngIf="award.decorationId.isMedal">
|
|
|
|
<img height="40px" src="resource/decoration/{{award.decorationId._id}}.png">
|
|
|
|
</td>
|
|
|
|
<td *ngIf="!award.decorationId.isMedal">
|
|
|
|
<img width="60px" src="resource/decoration/{{award.decorationId._id}}.png">
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{award.decorationId.name}}
|
|
|
|
</td>
|
|
|
|
<td>
|
2018-03-11 13:52:26 +01:00
|
|
|
<textarea style="width:100%;"
|
2018-03-11 14:29:03 +01:00
|
|
|
rows="3"
|
2018-03-11 13:52:26 +01:00
|
|
|
#reason>{{award.reason}}</textarea>
|
2017-06-10 22:07:32 +02:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{award.proposer?.username}}
|
|
|
|
</td>
|
|
|
|
<td class="text-right">
|
|
|
|
{{award.date | date: 'dd.MM.yyyy'}}
|
|
|
|
</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.award.table.reject.reason.placeholder' | translate}}"
|
2018-03-11 14:29:03 +01:00
|
|
|
#rejectReason></textarea>
|
|
|
|
</td>
|
2017-06-10 22:07:32 +02:00
|
|
|
<td class="text-right">
|
2018-10-04 13:06:14 +02:00
|
|
|
<a class="action" (click)="confirm(award, true, reason.value)">
|
|
|
|
{{'request.confirm.award.table.button.action.accept' | translate}}
|
|
|
|
</a><br>
|
|
|
|
<a class="action" (click)="confirm(award, false, reason.value, rejectReason.value)">
|
|
|
|
{{'request.confirm.award.table.button.action.reject' | translate}}
|
|
|
|
</a>
|
2017-06-10 22:07:32 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</form>
|