Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcarfixers_angular
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
16
Issues
16
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tobin
dcarfixers_angular
Commits
b159b451
Commit
b159b451
authored
Apr 10, 2019
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dc
parent
375b7fe5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
38 deletions
+31
-38
dashboard.component.html
src/app/home/dashboard/dashboard.component.html
+31
-38
No files found.
src/app/home/dashboard/dashboard.component.html
View file @
b159b451
...
...
@@ -229,45 +229,41 @@
<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>
</table>
<div
*
ngFor=
"let bookData of successBookDtls; let i = index"
>
<table>
<tbody>
<tr>
<td>
{{i+1}}
</td>
<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>
<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>
</div>
<div
class=
"booking_drop"
data-toggle=
"collapse"
data-target=
"#quote_list"
>
</div>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td>
{{i+1}}
</td>
<td>
{{bookData.scheduled_date+' '+bookData.scheduled_time}}
</td>
<td>
{{bookData.car_name}}
</td>
<td>
{{bookData.car_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>
<div
class=
"floatLeft"
>
<div
class=
"btn-group btn-group-justified"
>
<button
(
click
)="
cancelBooking
(
bookData
.
booking_id
)"
class=
"btn btn-danger btn-sm"
>
Cancel
</button>
</div>
</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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment