Commit b159b451 by Jansa Jose

dc

parent 375b7fe5
...@@ -229,45 +229,41 @@ ...@@ -229,45 +229,41 @@
<table> <table>
<thead> <thead>
<tr> <tr>
<th>Orders</th> <th></th>
<th>Order Date</th> <th>Order Date</th>
<th>Vehicle Model</th> <th>Vehicle Model</th>
<th>Vehicle Make</th> <th>Vehicle Make</th>
<th>Mechanic</th> <th>Mechanic</th>
<th>Cost</th> <!-- <th>Cost</th> -->
<th>Action</th> <th>Action</th>
</tr> </tr>
</thead> </thead>
</table> </table>
<div *ngFor="let bookData of successBookDtls; let i = index"> <div *ngFor="let bookData of successBookDtls; let i = index">
<table> <table>
<tbody> <tbody>
<tr> <tr>
<td>{{i+1}}</td> <td>{{i+1}}</td>
<td>{{bookData.scheduled_date+' '+bookData.scheduled_time}}</td> <td>{{bookData.scheduled_date+' '+bookData.scheduled_time}}</td>
<td>{{bookData.car_name}}</td> <td>{{bookData.car_name}}</td>
<td>{{bookData.car_name}}</td> <td>{{bookData.car_name}}</td>
<td>{{bookData.first_name+' '+bookData.last_name}}</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>{{bookData.cost}}</td> -->
<td> <td>
<div class="floatLeft"> <div class="floatLeft">
<div class="btn-group btn-group-justified"> <div class="btn-group btn-group-justified">
<button (click)="cancelBooking(bookData.booking_id)" class="btn btn-danger btn-sm">Reject</button> <button (click)="cancelBooking(bookData.booking_id)" class="btn btn-danger btn-sm">Cancel</button>
</div> </div>
</div> </div>
<div class="booking_drop" data-toggle="collapse" [attr.data-target]="'#quote_list_'+bookData.booking_id"></div>
<div class="booking_drop" data-toggle="collapse" data-target="#quote_list"> </td>
</tr>
</div> </tbody>
</td>
</tr>
</tbody>
</table> </table>
<table id="quote_list" class="collapse"> <table [attr.id]="'quote_list_'+bookData.booking_id" class="collapse">
<thead> <thead>
<tr> <tr>
<th>Sl no</th> <th>Mechanic</th>
<th>Mechanic Name</th>
<th>Contact</th> <th>Contact</th>
<th>Rating</th> <th>Rating</th>
<th>Location</th> <th>Location</th>
...@@ -276,23 +272,20 @@ ...@@ -276,23 +272,20 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr *ngFor="let mechdata of bookData.mechanic_data;">
<td>01</td> <td>{{mechdata.first_name+' '+mechdata.last_name}}</td>
<td>John Doe</td> <td>{{mechdata.phone}}</td>
<td>96153214859</td> <td>{{mechdata.rating > 0?mechdata.rating+'/5':''}}</td>
<td>6.4/10</td> <td>{{mechdata.location}}</td>
<td>East Bouliward Sydney</td> <td>{{mechdata.custom_amount > 0 ?mechdata.custom_amount:bookData.cost}}</td>
<td>$400</td>
<td> <td>
<div class="btn-group btn-group-justified"> <div class="btn-group btn-group-justified">
<button class="btn btn-default btn-sm">Waiting for Approval</button> <button class="btn btn-default btn-sm" *ngIf="mechdata.status =='0'">Waiting for Approval</button>
<button class="btn btn-success btn-sm">Accept</button> <button class="btn btn-success btn-sm" *ngIf="mechdata.status =='1'">Accept</button>
<button class="btn btn-danger btn-sm">Reject</button> <button class="btn btn-info btn-sm" data-toggle="modal" data-target="#failure" *ngIf="mechdata.status =='1'">View Quote</button>
<button class="btn btn-info btn-sm" data-toggle="modal" data-target="#failure">View Quote</button>
</div> </div>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </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