section-list.component.html 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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)="onAddSection()" *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)="onDeleteSections()" *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 searchInput-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 *ngIf="authSer.showEditBtn">تعديل</th>
  51. </tr>
  52. </thead>
  53. <tbody>
  54. <tr *ngFor="let section of sectionsList | paginate: { itemsPerPage: perPagePagenation, currentPage: currentPage, totalItems: count }; let i = index ">
  55. <td>
  56. <div class="custom-control custom-checkbox centerIneerItem">
  57. <input type="checkbox" class="custom-control-input" id="{{section.id}}" [(ngModel)]="section.selected" [value]='section' (change)="checkIfAllSelected()">
  58. <label class="custom-control-label disblayBlock-w" for="{{section.id}}" style="color:#2a2a2a; cursor: pointer;"></label>
  59. </div>
  60. </td>
  61. <td>{{section.name}}</td>
  62. <td *ngIf="authSer.showEditBtn"><button type="button" class="btn btn-outline-secondary" (click)="onEdit(section.id)"><i class="fas fa-edit"></i></button></td>
  63. </tr>
  64. </tbody>
  65. </table>
  66. <pagination-controls nextLabel="التالي" previousLabel="السابق" (pageChange)="onPageChange($event)"></pagination-controls>
  67. </div>
  68. </div>