|
@@ -3,87 +3,89 @@
|
|
<div class="row">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="col-12">
|
|
<ul class="list-unstyled titileLi-w">
|
|
<ul class="list-unstyled titileLi-w">
|
|
- <li class="headingText-w">خدمه إداره المحتوي > </li>
|
|
|
|
|
|
+ <li class="headingText-w">خدمه إداره المحتوي </li>
|
|
<li class="headingText-w activeLi-w" style="margin-right:5px"> الملفات</li>
|
|
<li class="headingText-w activeLi-w" style="margin-right:5px"> الملفات</li>
|
|
</ul>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="row">
|
|
|
|
- <div class="col-12 col-sm-12 col-md-6 col-lg-6">
|
|
|
|
- <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>
|
|
|
|
- <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>
|
|
|
|
- </div>
|
|
|
|
- <div class="col-12 col-sm-12 col-md-6 col-lg-6">
|
|
|
|
- <div class="form-group">
|
|
|
|
- <input type="text" placeholder="البحث" class="form-control inputSearchTable-w" style="margin-top:13px;" (input)="filtterFunc($event)"/>
|
|
|
|
- <hr>
|
|
|
|
|
|
+ <div class="containerContent-w">
|
|
|
|
+ <div class="row">
|
|
|
|
+ <div class="col-12 col-sm-12 col-md-6 col-lg-6">
|
|
|
|
+ <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>
|
|
|
|
+ <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>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <div class="row">
|
|
|
|
- <div class="col-12 col-sm-12 col-md-12 col-lg-6">
|
|
|
|
|
|
+ <div class="col-12 col-sm-12 col-md-6 col-lg-6">
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
- <span class="spanSelect-w">
|
|
|
|
- <select [ngModel]="dataTableNumber" class="form-control selectButton-w" (input)="onGetValue($event)">
|
|
|
|
- <option value="5">5</option>
|
|
|
|
- <option value="10">10</option>
|
|
|
|
- <option value="15">15</option>
|
|
|
|
- <option value="20">20</option>
|
|
|
|
- </select>
|
|
|
|
- من العناصر يتم عرضها
|
|
|
|
- </span>
|
|
|
|
|
|
+ <input type="text" placeholder="البحث" class="form-control inputSearchTable-w" style="margin-top:13px;" (input)="filtterFunc($event)"/>
|
|
|
|
+ <hr>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="col-12 col-sm-12 col-md-12 col-lg-6">
|
|
|
|
-
|
|
|
|
- </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;"></label> -->
|
|
|
|
- </div>
|
|
|
|
- </th>
|
|
|
|
- <th>إسم الوثيقه</th>
|
|
|
|
- <th>الحاله</th>
|
|
|
|
- <th>الترتيب</th>
|
|
|
|
- <th>النوع</th>
|
|
|
|
- <th>التاريخ</th>
|
|
|
|
- <th *ngIf="authSer.showEditBtn">تعديل</th>
|
|
|
|
- </tr>
|
|
|
|
- </thead>
|
|
|
|
- <tbody>
|
|
|
|
- <tr *ngFor="let tab of tabsList | 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="{{tab.id}}" [(ngModel)]="tab.selected" [value]='tab' (change)="checkIfAllSelected();">
|
|
|
|
- <!-- <label class="custom-control-label disblayBlock-w" for="{{tab.id}}" style="color:#2a2a2a"></label> -->
|
|
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="row">
|
|
|
|
+ <div class="col-12 col-sm-12 col-md-12 col-lg-6">
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <span class="spanSelect-w" style="margin-right:10px;">
|
|
|
|
+ <select [ngModel]="dataTableNumber" class="form-control selectButton-w" (input)="onGetValue($event)">
|
|
|
|
+ <option value="5">5</option>
|
|
|
|
+ <option value="10">10</option>
|
|
|
|
+ <option value="15">15</option>
|
|
|
|
+ <option value="20">20</option>
|
|
|
|
+ </select>
|
|
|
|
+ من العناصر يتم عرضها
|
|
|
|
+ </span>
|
|
</div>
|
|
</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="col-12 col-sm-12 col-md-12 col-lg-6">
|
|
|
|
+
|
|
|
|
+ </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;"></label> -->
|
|
|
|
+ </div>
|
|
|
|
+ </th>
|
|
|
|
+ <th>إسم الوثيقه</th>
|
|
|
|
+ <th>الحاله</th>
|
|
|
|
+ <th>الترتيب</th>
|
|
|
|
+ <th>النوع</th>
|
|
|
|
+ <th>التاريخ</th>
|
|
|
|
+ <th *ngIf="authSer.showEditBtn">تعديل</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody>
|
|
|
|
+ <tr *ngFor="let tab of tabsList | 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="{{tab.id}}" [(ngModel)]="tab.selected" [value]='tab' (change)="checkIfAllSelected();">
|
|
|
|
+ <!-- <label class="custom-control-label disblayBlock-w" for="{{tab.id}}" style="color:#2a2a2a"></label> -->
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ <td>{{tab.name}}</td>
|
|
|
|
+ <td>{{tab.status == '0' ? 'غير منشور' : tab.status == '1' ? 'منشور' : 'not found'}}</td>
|
|
|
|
+ <td>
|
|
|
|
+ {{ tab.ranking == '10000' ? 'المزيد' : tab.ranking }}
|
|
|
|
+ <!-- <select class="form-control" [ngModel]="tab.ranking" (change)="changeRanking($event, tab.id)">
|
|
|
|
+ <option value="1">1</option>
|
|
|
|
+ <option value="2">2</option>
|
|
|
|
+ <option value="3">3</option>
|
|
|
|
+ <option value="4">4</option>
|
|
|
|
+ <option value="5">5</option>
|
|
|
|
+ <option value="6">6</option>
|
|
|
|
+ </select> -->
|
|
</td>
|
|
</td>
|
|
- <td>{{tab.name}}</td>
|
|
|
|
- <td>{{tab.status == '0' ? 'غير منشور' : tab.status == '1' ? 'منشور' : 'not found'}}</td>
|
|
|
|
- <td>
|
|
|
|
- {{tab.ranking}}
|
|
|
|
- <!-- <select class="form-control" [ngModel]="tab.ranking" (change)="changeRanking($event, tab.id)">
|
|
|
|
- <option value="1">1</option>
|
|
|
|
- <option value="2">2</option>
|
|
|
|
- <option value="3">3</option>
|
|
|
|
- <option value="4">4</option>
|
|
|
|
- <option value="5">5</option>
|
|
|
|
- <option value="6">6</option>
|
|
|
|
- </select> -->
|
|
|
|
- </td>
|
|
|
|
- <td>{{tab.type == '0' ? 'تعميم داخلي' : tab.type == '1' ? 'تعميم خارجي' : tab.type == '2' ? 'سياسات' : 'not found'}}</td>
|
|
|
|
- <td>{{tab.created_at}}</td>
|
|
|
|
- <td *ngIf="authSer.showEditBtn"><button type="button" class="btn btn-outline-secondary" (click)="onEdit(tab.id)"><i class="fas fa-edit"></i></button></td>
|
|
|
|
- </tr>
|
|
|
|
- </tbody>
|
|
|
|
-</table>
|
|
|
|
-<pagination-controls nextLabel="التالي" previousLabel="السابق" (pageChange)="onPageChange($event)"></pagination-controls>
|
|
|
|
|
|
+ <td>{{tab.type == '0' ? 'تعميم داخلي' : tab.type == '1' ? 'تعميم خارجي' : tab.type == '2' ? 'سياسات' : 'not found'}}</td>
|
|
|
|
+ <td>{{tab.created_at}}</td>
|
|
|
|
+ <td *ngIf="authSer.showEditBtn"><button type="button" class="btn btn-outline-secondary" (click)="onEdit(tab.id)"><i class="fas fa-edit"></i></button></td>
|
|
|
|
+ </tr>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ <pagination-controls nextLabel="التالي" previousLabel="السابق" (pageChange)="onPageChange($event)"></pagination-controls>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|