|
@@ -4,7 +4,7 @@
|
|
<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>
|
|
@@ -17,7 +17,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-sm-12 col-md-6 col-lg-6">
|
|
<div class="col-12 col-sm-12 col-md-6 col-lg-6">
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
- <input type="text" placeholder="البحث (باسم الموديل)" class="form-control inputSearchTable-w" style="margin-top:13px;" (input)="filtterFunc($event)"/>
|
|
|
|
|
|
+ <input type="text" placeholder="البحث (باسم النوع)" class="form-control inputSearchTable-w" style="margin-top:13px;" (input)="filtterFunc($event)"/>
|
|
<hr>
|
|
<hr>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -27,22 +27,22 @@
|
|
<div class="col-12 col-sm-12 col-md-12 col-lg-12">
|
|
<div class="col-12 col-sm-12 col-md-12 col-lg-12">
|
|
<div class="form-group" style="float:right;">
|
|
<div class="form-group" style="float:right;">
|
|
<span class="spanSelect-w" style="margin-right:10px;">
|
|
<span class="spanSelect-w" style="margin-right:10px;">
|
|
|
|
+ من العناصر يتم عرضها
|
|
<select [ngModel]="dataTableNumber" class="form-control selectButton-w" (input)="onGetValue($event)">
|
|
<select [ngModel]="dataTableNumber" class="form-control selectButton-w" (input)="onGetValue($event)">
|
|
<option value="5">5</option>
|
|
<option value="5">5</option>
|
|
<option value="10">10</option>
|
|
<option value="10">10</option>
|
|
<option value="15">15</option>
|
|
<option value="15">15</option>
|
|
<option value="20">20</option>
|
|
<option value="20">20</option>
|
|
</select>
|
|
</select>
|
|
- من العناصر يتم عرضها
|
|
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="form-group" style="float: right; margin: 0 20px;">
|
|
<div class="form-group" style="float: right; margin: 0 20px;">
|
|
<span class="spanSelect-w" >
|
|
<span class="spanSelect-w" >
|
|
|
|
+ النوع
|
|
<select [ngModel]="filtterStatus" style="width:134px;" class="form-control selectButton-w" (input)="onGetValueFiltter($event)">
|
|
<select [ngModel]="filtterStatus" style="width:134px;" class="form-control selectButton-w" (input)="onGetValueFiltter($event)">
|
|
<option value="all"> الكل </option>
|
|
<option value="all"> الكل </option>
|
|
<option *ngFor="let type of vehicle_types" [value]="type.id">{{type.name}}</option>
|
|
<option *ngFor="let type of vehicle_types" [value]="type.id">{{type.name}}</option>
|
|
</select>
|
|
</select>
|
|
- النوع
|
|
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -58,27 +58,21 @@
|
|
<input type="checkbox" class="custom-control-input" [(ngModel)]="selectedAll" (change)="selectAll();" id="customCheck" name="example1">
|
|
<input type="checkbox" class="custom-control-input" [(ngModel)]="selectedAll" (change)="selectAll();" id="customCheck" name="example1">
|
|
</div>
|
|
</div>
|
|
</th>
|
|
</th>
|
|
- <th>نوع المركبة</th>
|
|
|
|
- <th>إسم الموديل</th>
|
|
|
|
|
|
+ <th>صنف المركبة</th>
|
|
|
|
+ <th>إسم النوع</th>
|
|
<th>الحاله</th>
|
|
<th>الحاله</th>
|
|
<th *ngIf="authSer.showEditBtn">تعديل</th>
|
|
<th *ngIf="authSer.showEditBtn">تعديل</th>
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody>
|
|
<tbody>
|
|
- <tr *ngFor="let data of dataList | paginate: { itemsPerPage: perPagePagenation, currentPage: currentPage, totalItems: count }; let i = index ">
|
|
|
|
|
|
+ <tr *ngFor="let data of mergedData | paginate: { itemsPerPage: perPagePagenation, currentPage: currentPage, totalItems: count }; let i = index ">
|
|
|
|
|
|
<td>
|
|
<td>
|
|
<div class="custom-control custom-checkbox centerIneerItem">
|
|
<div class="custom-control custom-checkbox centerIneerItem">
|
|
<input type="checkbox" class="custom-control-input" id="{{data.id}}" [(ngModel)]="data.selected" [value]='data' (change)="checkIfAllSelected();">
|
|
<input type="checkbox" class="custom-control-input" id="{{data.id}}" [(ngModel)]="data.selected" [value]='data' (change)="checkIfAllSelected();">
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</td>
|
|
- <td>
|
|
|
|
- {{data.vehicle_type_id == '1' ? 'سيارات اسعاف'
|
|
|
|
- : data.vehicle_type_id == '2' ? 'سيارات وانيت'
|
|
|
|
- : data.vehicle_type_id == '5' ? 'سياره مرضي'
|
|
|
|
- : data.vehicle_type_id == '6' ? 'سياره إسعاف'
|
|
|
|
- : 'not found'}}
|
|
|
|
- </td>
|
|
|
|
|
|
+ <td>{{data.vehicle_type_name}}</td>
|
|
<td>{{data.name}}</td>
|
|
<td>{{data.name}}</td>
|
|
<td>{{data.status == '0' ? 'غير فعال' : data.status == '1' ? ' فعال' : 'not found'}}</td>
|
|
<td>{{data.status == '0' ? 'غير فعال' : data.status == '1' ? ' فعال' : 'not found'}}</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>
|
|
<td *ngIf="authSer.showEditBtn"><button type="button" class="btn btn-outline-secondary" (click)="onEdit(data.id)"><i class="fas fa-edit"></i></button></td>
|