footer-list.component.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <div class="container">
  2. <div class="row">
  3. <div class="col-12">
  4. <ul class="list-unstyled titileLi-w">
  5. <li class="headingText-w">خدمه إداره المحتوي > </li>
  6. <li class="headingText-w activeLi-w" style="margin-right:5px"> إدارة الفوتر</li>
  7. </ul>
  8. </div>
  9. </div>
  10. <div class="containerContent-w">
  11. <div class="row">
  12. <div class="col-12 col-sm-12 col-md-6 col-lg-6">
  13. <button type="button" class="btn btn-outline-success butttonCreate dashButton-w" (click)="onAdd()" *ngIf="authSer.showAddBtn"><i class="fas fa-plus marginFontAowsome-w"></i>إنشاء جديد</button>
  14. <button type="button" class="btn btn-outline-danger butttonDelete dashButton-w" (click)="onDelete()" *ngIf="authSer.showDeleteBtn"><i class="fas fa-times marginFontAowsome-w"></i>حذف</button>
  15. </div>
  16. <div class="col-12 col-sm-12 col-md-6 col-lg-6">
  17. <div class="form-group">
  18. <input type="text" placeholder="البحث بالاسم" class="form-control inputSearchTable-w" style="margin-top:13px;" (input)="filtterFunc($event)"/>
  19. <hr>
  20. </div>
  21. </div>
  22. </div>
  23. <div class="row">
  24. <div class="col-12 col-sm-12 col-md-12 col-lg-6">
  25. <div class="form-group">
  26. <span class="spanSelect-w">
  27. <select [ngModel]="dataTableNumber" class="form-control selectButton-w" (input)="onGetValue($event)">
  28. <option value="5">5</option>
  29. <option value="10">10</option>
  30. <option value="15">15</option>
  31. <option value="20">20</option>
  32. </select>
  33. من العناصر يتم عرضها
  34. </span>
  35. </div>
  36. </div>
  37. <div class="col-12 col-sm-12 col-md-12 col-lg-6">
  38. </div>
  39. </div>
  40. <table class="table table-bordered">
  41. <thead class="headBackground-w">
  42. <tr>
  43. <th>
  44. <div class="custom-control custom-checkbox">
  45. <input type="checkbox" class="custom-control-input" [(ngModel)]="selectedAll" (change)="selectAll();" id="customCheck" name="example1">
  46. <label class="custom-control-label fixedWidthLabel-w checkAll-w" for="customCheck" style="margin-bottom:20px; cursor: pointer;"></label>
  47. </div>
  48. </th>
  49. <th>الاسم</th>
  50. <th>النوع</th>
  51. <th> الحاله</th>
  52. <th *ngIf="authSer.showEditBtn">تعديل</th>
  53. </tr>
  54. </thead>
  55. <tbody>
  56. <tr *ngFor="let footer of footerList | paginate: { itemsPerPage: perPagePagenation, currentPage: currentPage, totalItems: count }; let i = index ">
  57. <td>
  58. <div class="custom-control custom-checkbox centerIneerItem">
  59. <input type="checkbox" class="custom-control-input" id="{{footer.id}}" [(ngModel)]="footer.selected" [value]='footer' (change)="checkIfAllSelected();">
  60. <label class="custom-control-label disblayBlock-w" for="{{footer.id}}" style="color:#2a2a2a;cursor: pointer;"></label>
  61. </div>
  62. </td>
  63. <td>{{footer.name}}</td>
  64. <td>{{footer.type == 0 ? 'قسم الروابط' : footer.type == 1 ? 'قسم التواصل' : footer.type == 2 ? 'قسم الجوائز' : 'N/A' }}</td>
  65. <td>{{footer.status == 0 ? 'غير فعال' : footer.status == 1 ? 'فعال' : 'N/A'}}</td>
  66. <td *ngIf="authSer.showEditBtn"><button type="button" class="btn btn-outline-secondary" (click)="onEdit(footer.id)"><i class="fas fa-edit"></i></button></td>
  67. </tr>
  68. </tbody>
  69. </table>
  70. <pagination-controls (pageChange)="onPageChange($event)"></pagination-controls>
  71. </div>
  72. </div>