Commit b159b451 by Jansa Jose

dc

parent 375b7fe5
......@@ -229,12 +229,12 @@
<table>
<thead>
<tr>
<th>Orders</th>
<th></th>
<th>Order Date</th>
<th>Vehicle Model</th>
<th>Vehicle Make</th>
<th>Mechanic</th>
<th>Cost</th>
<!-- <th>Cost</th> -->
<th>Action</th>
</tr>
</thead>
......@@ -247,27 +247,23 @@
<td>{{bookData.scheduled_date+' '+bookData.scheduled_time}}</td>
<td>{{bookData.car_name}}</td>
<td>{{bookData.car_name}}</td>
<td>{{bookData.first_name+' '+bookData.last_name}}</td>
<td>{{bookData.cost}}</td>
<td>{{(bookData.is_multiple ==='0')? bookData.mechanic_data[0].first_name+' '+bookData.mechanic_data[0].last_name : bookData.mechanic_data.length+' Requests'}}</td>
<!-- <td>{{bookData.cost}}</td> -->
<td>
<div class="floatLeft">
<div class="btn-group btn-group-justified">
<button (click)="cancelBooking(bookData.booking_id)" class="btn btn-danger btn-sm">Reject</button>
</div>
<button (click)="cancelBooking(bookData.booking_id)" class="btn btn-danger btn-sm">Cancel</button>
</div>
<div class="booking_drop" data-toggle="collapse" data-target="#quote_list">
</div>
<div class="booking_drop" data-toggle="collapse" [attr.data-target]="'#quote_list_'+bookData.booking_id"></div>
</td>
</tr>
</tbody>
</table>
<table id="quote_list" class="collapse">
<table [attr.id]="'quote_list_'+bookData.booking_id" class="collapse">
<thead>
<tr>
<th>Sl no</th>
<th>Mechanic Name</th>
<th>Mechanic</th>
<th>Contact</th>
<th>Rating</th>
<th>Location</th>
......@@ -276,23 +272,20 @@
</tr>
</thead>
<tbody>
<tr>
<td>01</td>
<td>John Doe</td>
<td>96153214859</td>
<td>6.4/10</td>
<td>East Bouliward Sydney</td>
<td>$400</td>
<tr *ngFor="let mechdata of bookData.mechanic_data;">
<td>{{mechdata.first_name+' '+mechdata.last_name}}</td>
<td>{{mechdata.phone}}</td>
<td>{{mechdata.rating > 0?mechdata.rating+'/5':''}}</td>
<td>{{mechdata.location}}</td>
<td>{{mechdata.custom_amount > 0 ?mechdata.custom_amount:bookData.cost}}</td>
<td>
<div class="btn-group btn-group-justified">
<button class="btn btn-default btn-sm">Waiting for Approval</button>
<button class="btn btn-success btn-sm">Accept</button>
<button class="btn btn-danger btn-sm">Reject</button>
<button class="btn btn-info btn-sm" data-toggle="modal" data-target="#failure">View Quote</button>
<button class="btn btn-default btn-sm" *ngIf="mechdata.status =='0'">Waiting for Approval</button>
<button class="btn btn-success btn-sm" *ngIf="mechdata.status =='1'">Accept</button>
<button class="btn btn-info btn-sm" data-toggle="modal" data-target="#failure" *ngIf="mechdata.status =='1'">View Quote</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment