|
@@ -60,59 +60,69 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <table class="table table-bordered">
|
|
|
- <thead class="headBackground-w">
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <div class="custom-control custom-checkbox">
|
|
|
- <input type="checkbox" class="custom-control-input" [(ngModel)]="selectedAll" (change)="selectAll();" id="customCheck" name="example1">
|
|
|
- <!-- <label class="custom-control-label fixedWidthLabel-w checkAll-w" for="customCheck" style="margin-bottom:20px; cursor: pointer;"></label> -->
|
|
|
- </div>
|
|
|
- </th>
|
|
|
- <th> إسم المتدرب</th>
|
|
|
- <th>إسم التخصص</th>
|
|
|
- <th>الجنسيه</th>
|
|
|
- <th>الجامعه</th>
|
|
|
- <th>نوع التدريب</th>
|
|
|
- <th>الحاله</th>
|
|
|
- <th *ngIf="authSer.showEditBtn">تفاصيل الطلب</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- <tr *ngFor="let data of dataList | paginate: { itemsPerPage: perPagePagenation, currentPage: currentPage, totalItems: count }; let i = index ">
|
|
|
- <td>
|
|
|
- <div class="custom-control custom-checkbox centerIneerItem">
|
|
|
- <input type="checkbox" class="custom-control-input" id="{{data.id}}" [(ngModel)]="data.selected" [value]='data' (change)="checkIfAllSelected();">
|
|
|
- <!-- <label class="custom-control-label disblayBlock-w" for="{{news.id}}" style="color:#2a2a2a;cursor: pointer;"></label> -->
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td>{{data.trainee_name}}</td>
|
|
|
- <td> {{data.specialization_name}}</td>
|
|
|
- <td>{{data.country_arNationality}}</td>
|
|
|
- <td>{{data.university}}</td>
|
|
|
- <!-- <td>{{data.type == 'trainees' ? 'متدربين'
|
|
|
- : data.type == 'fellowship' ? 'زماله'
|
|
|
- : data.type == 'university_administrators' : 'مشرفي الجامعات'
|
|
|
- : 'لايوجد'}}
|
|
|
- </td> -->
|
|
|
- <td>{{data.type == 'trainees' ? 'متدربين'
|
|
|
- : data.type == 'fellowship' ? 'زماله'
|
|
|
- : data.type == 'university_administrators' ? 'مشرفي الجامعات'
|
|
|
- : 'لايوجد'}}
|
|
|
- </td>
|
|
|
+ <div class="row" *ngIf="dataList.length == 0">
|
|
|
+ <div class="col-12">
|
|
|
+ <h2>لايوجد بيانات لعرضها</h2>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
- <td>{{data.status == 'pending' ? 'تحت الإجراء'
|
|
|
- : data.status == 'accepted' ? 'مقبول'
|
|
|
- : data.status == 'replayed_opinion' ? 'رأي القسم'
|
|
|
- : data.status == 'refused' ? 'مرفوض'
|
|
|
- : data.status == 'canceled' ? 'ملغي'
|
|
|
- : data.status == 'asked_for_opinion' ? 'طلب رأي'
|
|
|
- : data.status == 'asked_for_opinion' ? 'طلب رأي' : 'لايوجد'}}</td>
|
|
|
- <td *ngIf="authSer.showEditBtn"><button type="button" class="btn btn-outline-secondary" (click)="onEdit(data.id)"><i class="fas fa-edit"></i></button></td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- <pagination-controls nextLabel="التالي" previousLabel="السابق" (pageChange)="onPageChange($event)"></pagination-controls>
|
|
|
+ <div class="row" *ngIf="dataList.length > 0">
|
|
|
+ <div class="col-12">
|
|
|
+ <table class="table table-bordered">
|
|
|
+ <thead class="headBackground-w">
|
|
|
+ <tr>
|
|
|
+ <th>
|
|
|
+ <div class="custom-control custom-checkbox">
|
|
|
+ <input type="checkbox" class="custom-control-input" [(ngModel)]="selectedAll" (change)="selectAll();" id="customCheck" name="example1">
|
|
|
+ <!-- <label class="custom-control-label fixedWidthLabel-w checkAll-w" for="customCheck" style="margin-bottom:20px; cursor: pointer;"></label> -->
|
|
|
+ </div>
|
|
|
+ </th>
|
|
|
+ <th> إسم المتدرب</th>
|
|
|
+ <th>إسم التخصص</th>
|
|
|
+ <th>الجنسيه</th>
|
|
|
+ <th>الجامعه</th>
|
|
|
+ <th>نوع التدريب</th>
|
|
|
+ <th>الحاله</th>
|
|
|
+ <th *ngIf="authSer.showEditBtn">تفاصيل الطلب</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <tr *ngFor="let data of dataList | paginate: { itemsPerPage: perPagePagenation, currentPage: currentPage, totalItems: count }; let i = index ">
|
|
|
+ <td>
|
|
|
+ <div class="custom-control custom-checkbox centerIneerItem">
|
|
|
+ <input type="checkbox" class="custom-control-input" id="{{data.id}}" [(ngModel)]="data.selected" [value]='data' (change)="checkIfAllSelected();">
|
|
|
+ <!-- <label class="custom-control-label disblayBlock-w" for="{{news.id}}" style="color:#2a2a2a;cursor: pointer;"></label> -->
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td>{{data.trainee_name}}</td>
|
|
|
+ <td> {{data.specialization_name}}</td>
|
|
|
+ <td>{{data.country_arNationality}}</td>
|
|
|
+ <td>{{data.university}}</td>
|
|
|
+ <!-- <td>{{data.type == 'trainees' ? 'متدربين'
|
|
|
+ : data.type == 'fellowship' ? 'زماله'
|
|
|
+ : data.type == 'university_administrators' : 'مشرفي الجامعات'
|
|
|
+ : 'لايوجد'}}
|
|
|
+ </td> -->
|
|
|
+ <td>{{data.type == 'trainees' ? 'متدربين'
|
|
|
+ : data.type == 'fellowship' ? 'زماله'
|
|
|
+ : data.type == 'university_administrators' ? 'مشرفي الجامعات'
|
|
|
+ : 'لايوجد'}}
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <td>{{data.status == 'pending' ? 'تحت الإجراء'
|
|
|
+ : data.status == 'accepted' ? 'مقبول'
|
|
|
+ : data.status == 'replayed_opinion' ? 'رأي القسم'
|
|
|
+ : data.status == 'refused' ? 'مرفوض'
|
|
|
+ : data.status == 'canceled' ? 'ملغي'
|
|
|
+ : data.status == 'asked_for_opinion' ? 'طلب رأي'
|
|
|
+ : data.status == 'asked_for_opinion' ? 'طلب رأي' : 'لايوجد'}}</td>
|
|
|
+ <td *ngIf="authSer.showEditBtn"><button type="button" class="btn btn-outline-secondary" (click)="onEdit(data.id)"><i class="fas fa-edit"></i></button></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <pagination-controls nextLabel="التالي" previousLabel="السابق" (pageChange)="onPageChange($event)"></pagination-controls>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
|