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
ac26230f
Commit
ac26230f
authored
5 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vin audit
parent
34890a48
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
63 additions
and
27 deletions
+63
-27
dashboard.component.html
src/app/home/dashboard/dashboard.component.html
+5
-5
dashboard.component.scss
src/app/home/dashboard/dashboard.component.scss
+2
-2
dashboard.component.ts
src/app/home/dashboard/dashboard.component.ts
+0
-0
index.component.html
src/app/home/index/index.component.html
+1
-1
index.component.scss
src/app/home/index/index.component.scss
+2
-2
index.component.ts
src/app/home/index/index.component.ts
+19
-11
cart.component.html
src/app/purchase/cart/cart.component.html
+5
-1
cart.component.scss
src/app/purchase/cart/cart.component.scss
+1
-1
orders.component.html
src/app/purchase/orders/orders.component.html
+8
-1
orders.component.scss
src/app/purchase/orders/orders.component.scss
+1
-1
productdetails.component.html
...app/purchase/productdetails/productdetails.component.html
+3
-2
styles.scss
src/styles.scss
+16
-0
No files found.
src/app/home/dashboard/dashboard.component.html
View file @
ac26230f
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
<td>
<td>
<div
class=
"floatLeft"
>
<div
class=
"floatLeft"
>
<div
class=
"btn-group btn-group-justified"
>
<div
class=
"btn-group btn-group-justified"
>
<button
class=
"
btn btn-default
btn-sm"
>
{{bookData.status === '1' ? 'Accepted' : 'Pending'}}
</button>
<button
class=
"
{{bookData.status === '1' ? 'btn btn-success btn-sm' : 'btn btn-primary btn-sm'}}btn btn-primary
btn-sm"
>
{{bookData.status === '1' ? 'Accepted' : 'Pending'}}
</button>
<button
(
click
)="
cnfCancelBook
(
bookData
.
booking_id
)"
class=
"btn btn-danger btn-sm"
>
Cancel
</button>
<button
(
click
)="
cnfCancelBook
(
bookData
.
booking_id
)"
class=
"btn btn-danger btn-sm"
>
Cancel
</button>
</div>
</div>
</div>
</div>
...
@@ -277,8 +277,8 @@
...
@@ -277,8 +277,8 @@
<td>
{{mechdata.custom_amount > 0 ?mechdata.custom_amount:mechdata.mechanic_amount}}
</td>
<td>
{{mechdata.custom_amount > 0 ?mechdata.custom_amount:mechdata.mechanic_amount}}
</td>
<td>
<td>
<div
class=
"btn-group btn-group-justified"
>
<div
class=
"btn-group btn-group-justified"
>
<button
class=
"btn btn-
default
btn-sm"
*
ngIf=
"bookData.status == '1' && !mechdata.custom_service_quote"
>
Accepted
</button>
<button
class=
"btn btn-
success
btn-sm"
*
ngIf=
"bookData.status == '1' && !mechdata.custom_service_quote"
>
Accepted
</button>
<button
class=
"btn btn-
default
btn-sm"
*
ngIf=
"mechdata.status == '0'"
>
Waiting for Approval
</button>
<button
class=
"btn btn-
info
btn-sm"
*
ngIf=
"mechdata.status == '0'"
>
Waiting for Approval
</button>
<button
class=
"btn btn-success btn-sm"
[
attr
.
bookAmount
]="
mechdata
.
custom_amount
>
0 ?mechdata.custom_amount:mechdata.mechanic_amount" *ngIf="mechdata.status == '1'
&&
bookData.status != '1'" (click)="mechanicQuoteAccept($event,bookData.booking_id,mechdata.mechanic_id)">Accept
</button>
<button
class=
"btn btn-success btn-sm"
[
attr
.
bookAmount
]="
mechdata
.
custom_amount
>
0 ?mechdata.custom_amount:mechdata.mechanic_amount" *ngIf="mechdata.status == '1'
&&
bookData.status != '1'" (click)="mechanicQuoteAccept($event,bookData.booking_id,mechdata.mechanic_id)">Accept
</button>
<button
class=
"btn btn-info btn-sm"
(
click
)="
showCustQuote
(
bookData
.
booking_id
,
mechdata
.
mechanic_id
,
1
)"
data-toggle=
"modal"
data-target=
"#quote"
*
ngIf=
"mechdata.status =='1' && mechdata.custom_service_quote"
>
View Quote
</button>
<button
class=
"btn btn-info btn-sm"
(
click
)="
showCustQuote
(
bookData
.
booking_id
,
mechdata
.
mechanic_id
,
1
)"
data-toggle=
"modal"
data-target=
"#quote"
*
ngIf=
"mechdata.status =='1' && mechdata.custom_service_quote"
>
View Quote
</button>
</div>
</div>
...
@@ -450,7 +450,7 @@
...
@@ -450,7 +450,7 @@
<select
(
change
)="
get_model
($
event
.
target
.
value
)"
class=
"vehicle_input_select"
placeholder=
"Choose Make"
<select
(
change
)="
get_model
($
event
.
target
.
value
)"
class=
"vehicle_input_select"
placeholder=
"Choose Make"
formControlName=
"maker"
[
ngClass
]="{'
input_error
'
:
!
vehicleDetailsAddForm
.
controls
['
maker
'].
valid
&&
vehicleDetailsFormSubmitClick
}"
>
formControlName=
"maker"
[
ngClass
]="{'
input_error
'
:
!
vehicleDetailsAddForm
.
controls
['
maker
'].
valid
&&
vehicleDetailsFormSubmitClick
}"
>
<option
value=
""
class=
"hide"
>
MAKE
</option>
<option
value=
""
class=
"hide"
>
MAKE
</option>
<option
*
ngFor=
"let car_date of car
SearchJsonData; let key = index"
value=
"{{key}}"
>
{{car_date.brand
}}
</option>
<option
*
ngFor=
"let car_date of car
Brands; let key = index"
value=
"{{car_date.veh_brand_id}}"
>
{{car_date.maker
}}
</option>
</select>
</select>
</div>
</div>
</div>
</div>
...
@@ -459,7 +459,7 @@
...
@@ -459,7 +459,7 @@
<select
class=
"vehicle_input_select"
placeholder=
"Choose Model"
formControlName=
"modelName"
<select
class=
"vehicle_input_select"
placeholder=
"Choose Model"
formControlName=
"modelName"
[
ngClass
]="{'
input_error
'
:
!
vehicleDetailsAddForm
.
controls
['
modelName
'].
valid
&&
vehicleDetailsFormSubmitClick
}"
>
[
ngClass
]="{'
input_error
'
:
!
vehicleDetailsAddForm
.
controls
['
modelName
'].
valid
&&
vehicleDetailsFormSubmitClick
}"
>
<option
value=
""
class=
"hide"
>
MODEL
</option>
<option
value=
""
class=
"hide"
>
MODEL
</option>
<option
*
ngFor=
"let car_models of carModel"
>
{{car_models}}
</option>
<option
*
ngFor=
"let car_models of carModel"
>
{{car_models
.model
}}
</option>
</select>
</select>
</div>
</div>
<div
class=
"col-md-6"
>
<div
class=
"col-md-6"
>
...
...
This diff is collapsed.
Click to expand it.
src/app/home/dashboard/dashboard.component.scss
View file @
ac26230f
...
@@ -718,7 +718,7 @@
...
@@ -718,7 +718,7 @@
padding
:
30px
;
padding
:
30px
;
padding-top
:
50px
;
padding-top
:
50px
;
position
:
relative
;
position
:
relative
;
top
:
8
5px
;
top
:
1
5px
;
.login_modal_inner
{
.login_modal_inner
{
width
:
90%
;
width
:
90%
;
margin
:
0
auto
;
margin
:
0
auto
;
...
@@ -820,7 +820,7 @@
...
@@ -820,7 +820,7 @@
}
}
}
}
.active
{
.active
{
background-color
:
#
f2f2f2
;
background-color
:
#
b9b9b9
;
padding
:
8px
;
padding
:
8px
;
padding-left
:
15px
;
padding-left
:
15px
;
border-radius
:
8px
;
border-radius
:
8px
;
...
...
This diff is collapsed.
Click to expand it.
src/app/home/dashboard/dashboard.component.ts
View file @
ac26230f
This diff is collapsed.
Click to expand it.
src/app/home/index/index.component.html
View file @
ac26230f
...
@@ -265,7 +265,7 @@
...
@@ -265,7 +265,7 @@
<div
class=
"col-md-6"
>
<div
class=
"col-md-6"
>
<select
(
change
)="
get_model
($
event
.
target
.
value
)"
formControlName=
"maker"
[
ngClass
]="{'
input_error
'
:
!
vehicleDataForm
.
controls
['
maker
'].
valid
&&
vehicleDataFormSubmit
}"
>
<select
(
change
)="
get_model
($
event
.
target
.
value
)"
formControlName=
"maker"
[
ngClass
]="{'
input_error
'
:
!
vehicleDataForm
.
controls
['
maker
'].
valid
&&
vehicleDataFormSubmit
}"
>
<option
value=
""
class=
"hide"
>
MAKE
</option>
<option
value=
""
class=
"hide"
>
MAKE
</option>
<option
*
ngFor=
"let car_date of car
SearchJsonData
; let key = index"
value=
"{{car_date.veh_brand_id}}"
>
{{car_date.maker}}
</option>
<option
*
ngFor=
"let car_date of car
Brands
; let key = index"
value=
"{{car_date.veh_brand_id}}"
>
{{car_date.maker}}
</option>
</select>
</select>
</div>
</div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
src/app/home/index/index.component.scss
View file @
ac26230f
...
@@ -395,7 +395,7 @@
...
@@ -395,7 +395,7 @@
padding
:
30px
;
padding
:
30px
;
padding-top
:
50px
;
padding-top
:
50px
;
position
:
relative
;
position
:
relative
;
top
:
8
5px
;
top
:
1
5px
;
.login_modal_inner
{
.login_modal_inner
{
width
:
90%
;
width
:
90%
;
margin
:
0
auto
;
margin
:
0
auto
;
...
@@ -498,7 +498,7 @@
...
@@ -498,7 +498,7 @@
}
}
}
}
.active
{
.active
{
background-color
:
#
f2f2f2
;
background-color
:
#
b9b9b9
;
padding
:
8px
;
padding
:
8px
;
padding-left
:
15px
;
padding-left
:
15px
;
border-radius
:
8px
;
border-radius
:
8px
;
...
...
This diff is collapsed.
Click to expand it.
src/app/home/index/index.component.ts
View file @
ac26230f
...
@@ -80,8 +80,9 @@ export class IndexComponent implements OnInit {
...
@@ -80,8 +80,9 @@ export class IndexComponent implements OnInit {
scheduleMechanic
:
any
;
scheduleMechanic
:
any
;
carModel
:
any
;
carModel
:
any
;
carBrands
:
any
;
selBrand
:
string
=
''
;
modelDates
:
number
[]
=
new
Array
();
modelDates
:
number
[]
=
new
Array
();
carSearchJsonData
:
any
;
optionalImges
:
any
=
new
Array
({
1
:
false
,
2
:
false
,
3
:
false
,
4
:
false
});
optionalImges
:
any
=
new
Array
({
1
:
false
,
2
:
false
,
3
:
false
,
4
:
false
});
optionalDescription
:
string
;
optionalDescription
:
string
;
...
@@ -117,10 +118,7 @@ export class IndexComponent implements OnInit {
...
@@ -117,10 +118,7 @@ export class IndexComponent implements OnInit {
modelYear
:
new
FormControl
(
''
,
[
Validators
.
required
]),
modelYear
:
new
FormControl
(
''
,
[
Validators
.
required
]),
modelName
:
new
FormControl
(
''
,
[
Validators
.
required
])
modelName
:
new
FormControl
(
''
,
[
Validators
.
required
])
});
});
// this.webService.get_stored_json('car-list.json').subscribe((response: any) => {
// this.carSearchJsonData = response;
// });
this
.
getVehicleBrand
();
this
.
getVehicleBrand
();
let
currentYear
=
Number
((
new
Date
()).
getFullYear
());
let
currentYear
=
Number
((
new
Date
()).
getFullYear
());
...
@@ -156,20 +154,30 @@ export class IndexComponent implements OnInit {
...
@@ -156,20 +154,30 @@ export class IndexComponent implements OnInit {
}
}
getVehicleBrand
(){
getVehicleBrand
(){
this
.
loader
=
true
;
this
.
webService
.
get_data
(
'getVehicleBrand'
).
subscribe
(
response
=>
{
this
.
webService
.
get_data
(
'getVehicleBrand'
).
subscribe
(
response
=>
{
if
(
response
.
status
==
'success'
){
if
(
response
.
status
==
'success'
){
this
.
car
SearchJsonData
=
response
.
data
;
this
.
car
Brands
=
response
.
data
;
}
}
this
.
loader
=
false
;
});
});
}
}
get_model
(
event
)
{
get_model
(
brand_id
)
{
this
.
webService
.
post_data
(
'getVehicleModel'
,{
'vehBrand_id'
:
event
}).
subscribe
(
response
=>
{
this
.
loader
=
true
;
const
thisObj
=
this
;
thisObj
.
carBrands
.
forEach
(
function
(
brandData
,
index
)
{
if
(
brandData
.
veh_brand_id
==
brand_id
){
thisObj
.
selBrand
=
brandData
.
maker
;
}
});
this
.
webService
.
post_data
(
'getVehicleModel'
,{
'vehBrand_id'
:
brand_id
}).
subscribe
(
response
=>
{
if
(
response
.
status
==
'success'
){
if
(
response
.
status
==
'success'
){
this
.
carModel
=
response
.
data
;
this
.
carModel
=
response
.
data
;
}
}
this
.
loader
=
false
;
});
});
// this.carModel = this.carSearchJsonData[event].models;
}
}
getVehicleLoc
(
lastLoc
){
getVehicleLoc
(
lastLoc
){
...
@@ -209,12 +217,12 @@ export class IndexComponent implements OnInit {
...
@@ -209,12 +217,12 @@ export class IndexComponent implements OnInit {
}
}
this
.
wizardData
[
'vechile_info'
]
=
{
'trim'
:
vehicleData
[
'trim'
],
this
.
wizardData
[
'vechile_info'
]
=
{
'trim'
:
vehicleData
[
'trim'
],
'lastMaintanceDate'
:(
vehicleData
[
'last_date'
])?(
formatDate
(
vehicleData
[
'last_date'
],
'MM/dd/yyyy'
,
'en'
)):
''
,
'lastMaintanceDate'
:(
vehicleData
[
'last_date'
])?(
formatDate
(
vehicleData
[
'last_date'
],
'MM/dd/yyyy'
,
'en'
)):
''
,
'maker'
:
this
.
carSearchJsonData
[
vehicleData
[
'maker'
]][
'brand'
]
,
'maker'
:
this
.
selBrand
,
'milage'
:
vehicleData
[
'milage'
],
'emgine'
:
vehicleData
[
'emgine'
],
'milage'
:
vehicleData
[
'milage'
],
'emgine'
:
vehicleData
[
'emgine'
],
'modelName'
:
vehicleData
[
'modelName'
],
'modelYear'
:
vehicleData
[
'modelYear'
],
'modelName'
:
vehicleData
[
'modelName'
],
'modelYear'
:
vehicleData
[
'modelYear'
],
'maintanenceInterval'
:
vehicleData
[
'maintanence_interval'
]
'maintanenceInterval'
:
vehicleData
[
'maintanence_interval'
]
}
}
//
console.log(this.wizardData['vechile_info'])
console
.
log
(
this
.
wizardData
[
'vechile_info'
])
this
.
vehicleDataFormSubmit
=
false
;
this
.
vehicleDataFormSubmit
=
false
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/app/purchase/cart/cart.component.html
View file @
ac26230f
...
@@ -43,7 +43,11 @@
...
@@ -43,7 +43,11 @@
</li>
</li>
</ul>
</ul>
<ng-template
#
noCart
>
<ng-template
#
noCart
>
No Data Found
<div
class=
"cmn_nodata"
>
<img
src=
"../../../assets/images/no_result.png"
>
<p>
No Data Found
</p>
</div>
</ng-template>
</ng-template>
</div>
</div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
src/app/purchase/cart/cart.component.scss
View file @
ac26230f
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
padding
:
10px
;
padding
:
10px
;
img
{
img
{
height
:
180px
;
height
:
180px
;
width
:
auto
;
max-width
:
100%
;
}
}
}
}
h5
{
h5
{
...
...
This diff is collapsed.
Click to expand it.
src/app/purchase/orders/orders.component.html
View file @
ac26230f
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
</app-searchbar>
</app-searchbar>
<div
class=
"loader_overlay"
*
ngIf=
"loader"
></div>
<div
class=
"loader_overlay"
*
ngIf=
"loader"
></div>
<div
class=
"myorder_wrapper"
>
<div
class=
"myorder_wrapper"
>
<ul
*
ngIf=
"bookedData"
infiniteScroll
[
infiniteScrollDistance
]="
2
"
[
infiniteScrollThrottle
]="
50
"
(
scrolled
)="
onScroll
()"
[
scrollWindow
]="
false
"
style=
"max-height: 700px; overflow: scroll"
>
<ul
*
ngIf=
"bookedData
;else noOrders
"
infiniteScroll
[
infiniteScrollDistance
]="
2
"
[
infiniteScrollThrottle
]="
50
"
(
scrolled
)="
onScroll
()"
[
scrollWindow
]="
false
"
style=
"max-height: 700px; overflow: scroll"
>
<li
*
ngFor=
"let book of bookedData"
>
<li
*
ngFor=
"let book of bookedData"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-6"
>
<div
class=
"col-md-6"
>
...
@@ -45,6 +45,13 @@
...
@@ -45,6 +45,13 @@
</div>
</div>
</li>
</li>
</ul>
</ul>
<ng-template
#
noOrders
>
<div
class=
"cmn_nodata"
>
<img
src=
"../../../assets/images/no_result.png"
>
<p>
No Data Found
</p>
</div>
</ng-template>
</div>
</div>
</div>
</div>
<div
class=
"bottom_product_list"
>
<div
class=
"bottom_product_list"
>
...
...
This diff is collapsed.
Click to expand it.
src/app/purchase/orders/orders.component.scss
View file @
ac26230f
...
@@ -191,7 +191,7 @@
...
@@ -191,7 +191,7 @@
padding
:
10px
;
padding
:
10px
;
img
{
img
{
height
:
180px
;
height
:
180px
;
width
:
auto
;
max-width
:
100%
;
}
}
}
}
h5
{
h5
{
...
...
This diff is collapsed.
Click to expand it.
src/app/purchase/productdetails/productdetails.component.html
View file @
ac26230f
...
@@ -20,8 +20,9 @@
...
@@ -20,8 +20,9 @@
<div
class=
"product_details"
>
<div
class=
"product_details"
>
<h1>
{{productDetails.product_name}}
</h1>
<h1>
{{productDetails.product_name}}
</h1>
<h2>
{{productDetails.short_description}}
</h2>
<h2>
{{productDetails.short_description}}
</h2>
<h2>
Brand :
</h2><h4>
{{productDetails.brand_name}}
</h4>
<h2><strong>
Brand :
</strong>
{{productDetails.brand_name}}
</h2>
<div
*
ngIf=
"productDetails.part_id"
><h2>
Part ID :
</h2><h4>
{{productDetails.part_id}}
</h4></div>
<div
*
ngIf=
"productDetails.part_id"
>
<h2><strong>
Part ID :
</strong>
{{productDetails.part_id}}
</h2></div>
<h3>
$ {{productDetails.amount}}
</h3>
<h3>
$ {{productDetails.amount}}
</h3>
<div
class=
"rating_div"
*
ngIf=
"productDetails.rating"
>
<div
class=
"rating_div"
*
ngIf=
"productDetails.rating"
>
<fieldset
class=
"rating prevent-click"
>
<fieldset
class=
"rating prevent-click"
>
...
...
This diff is collapsed.
Click to expand it.
src/styles.scss
View file @
ac26230f
...
@@ -852,3 +852,19 @@ bs-datepicker-container{
...
@@ -852,3 +852,19 @@ bs-datepicker-container{
padding-bottom
:
50px
;
padding-bottom
:
50px
;
}
}
.cmn_nodata
{
text-align
:
center
;
padding-top
:
10%
;
padding-bottom
:
10%
;
img
{
width
:
200px
;
margin-bottom
:
50px
;
}
p
{
text-align
:
center
;
color
:
#a8a8a8
;
font-size
:
24px
;
font-weight
:
300
;
}
}
This diff is collapsed.
Click to expand it.
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