|
|
|
@ -2,16 +2,7 @@
|
|
|
|
|
<mat-expansion-panel *ngFor="let request of tvRequest">
|
|
|
|
|
<mat-expansion-panel-header>
|
|
|
|
|
<mat-panel-title>
|
|
|
|
|
<div *ngIf="request.approved && !request.available && !request.denied">{{'Common.ProcessingRequest' | translate}}</div>
|
|
|
|
|
<div *ngIf="request.denied && !request.available">{{'Common.Denied' | translate}}</div>
|
|
|
|
|
<div *ngIf="request.requested && !request.approved && !request.available">
|
|
|
|
|
{{'Common.PendingApproval' | translate}}
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="!request.requested && !request.available && !request.approved">
|
|
|
|
|
{{'Common.NotRequested' | translate}}
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="request.available">{{'Common.Available' | translate}}
|
|
|
|
|
</div>
|
|
|
|
|
<div> {{ request.requestStatus | translate }}</div>
|
|
|
|
|
</mat-panel-title>
|
|
|
|
|
<mat-panel-description>
|
|
|
|
|
{{'Requests.RequestedBy' | translate}} '{{request.requestedUser.userAlias}}' on
|
|
|
|
@ -45,15 +36,7 @@
|
|
|
|
|
<ng-container matColumnDef="status">
|
|
|
|
|
<th mat-header-cell *matHeaderCellDef> {{ 'Requests.GridStatus' | translate }} </th>
|
|
|
|
|
<td mat-cell *matCellDef="let ep">
|
|
|
|
|
|
|
|
|
|
<span *ngIf="request.denied" id="deniedLabel" [translate]="'Common.Denied'">
|
|
|
|
|
</span>
|
|
|
|
|
<span *ngIf="!request.denied && ep.available" id="availableLabel" [translate]="'Common.Available'"></span>
|
|
|
|
|
<span *ngIf="!request.denied && ep.approved && !ep.available" class="label label-info" id="processingRequestLabel"
|
|
|
|
|
[translate]="'Common.ProcessingRequest'"></span>
|
|
|
|
|
<div *ngIf="!request.denied && !ep.approved">
|
|
|
|
|
<div *ngIf="!ep.available"><span class="label label-warning" id="pendingApprovalLabel" [translate]="'Common.PendingApproval'"></span></div>
|
|
|
|
|
</div>
|
|
|
|
|
<span> {{ request.requestStatus | translate }} </span>
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|