You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sfh-mohemm/Mohem/src/app/mowadhafi/my-request/my-request.component.html

48 lines
2.0 KiB
HTML

5 years ago
<app-generic-header
showBack="true"
[headerText]="'userProfile, MyHR-request' | translate">
</app-generic-header>
5 years ago
<ion-content>
<!-- <div>
<ion-row [ngClass]="direction == 'en' ? 'empty-en':'empty-ar' ">{{ts.trPK('general','empty')}}</ion-row>
</div> -->
<div *ngIf="ticketsInfo.length !=0">
<ion-card *ngFor="let ticket of ticketsInfo ;let i = index" class="result-container" (click)="openRequestDetailsPage(ticket)">
5 years ago
<ion-card-content>
<ion-row style="margin-left: -3px; margin-right: -9px;">
<ion-col class="text">{{ticket.ticketTypeName}}</ion-col>
<ion-col [ngClass]=" direction == 'en'? 'date' : 'date-ar'" >{{ts.trPK('userProfile','postedDate')}} {{(ticket.created)?.substring(0,10)}}</ion-col>
5 years ago
</ion-row>
<ion-row>{{ticket.description}}</ion-row>
<!-- <ion-row [ngClass]="{
'New': ticket.ticketStatusId === 1 ,
'ReOpen': ticket.ticketStatusId === 2,
'AssToManager': ticket.ticketStatusId === 3,
'AssToSpec': ticket.ticketStatusId === 4,
'Pending': ticket.ticketStatusId === 5,
'BackToSpec': ticket.ticketStatusId === 6,
'Closed': ticket.ticketStatusId === 7,
'BackToManager': ticket.ticketStatusId === 8,
'AssignedToHR': ticket.ticketStatusId === 9,}">{{ticket.ticketStatusName}}</ion-row> -->
<ion-row style="margin-top: 5px;color: #259CB8; font-family:'WorkSans-bold';">{{ticket.ticketStatusName}}</ion-row>
5 years ago
</ion-card-content>
</ion-card>
<div style=" position: relative; display: flex;">
<button [ngClass]=" direction == 'en'? 'show' : 'show-ar'" (click)="getTicketsByEmployee()" >{{ts.trPK('userProfile','showMore')}}</button>
</div>
</div>
<div class="no-data-available" *ngIf="ticketsInfo.length === 0">
<span>{{ts.trPK('work-list','No-data-available')}}</span>
5 years ago
</div>
</ion-content>
<ion-footer class="footer">
<div class="Btn">
<ion-button class="CreateBtn" (click)="openHRRequestPage()" >{{ts.trPK('userProfile','createHR-Request')}}</ion-button>
</div>
</ion-footer>