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
812e4049
Commit
812e4049
authored
6 years ago
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
daily commit
parent
3789defa
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
13 deletions
+79
-13
index.component.html
src/app/home/index/index.component.html
+0
-0
index.component.scss
src/app/home/index/index.component.scss
+33
-5
index.component.ts
src/app/home/index/index.component.ts
+43
-5
navbar.component.html
src/app/navbar/navbar.component.html
+3
-3
No files found.
src/app/home/index/index.component.html
View file @
812e4049
This diff is collapsed.
Click to expand it.
src/app/home/index/index.component.scss
View file @
812e4049
...
...
@@ -537,20 +537,45 @@
.wizard_inner
{
width
:
100%
;
.service_methods
{
max-height
:
200px
;
overflow
:
scroll
;
ul
{
padding
:
0px
;
margin
:
0px
;
li
{
list-style
:
none
;
width
:
100%
;
color
:
#060708
;
border
:
1px
dashed
#929292
;
cursor
:
pointer
;
padding
:
5px
;
margin-bottom
:
10px
;
padding-left
:
15px
;
background-image
:
url("/assets/images/asset_down_time_arrow.png")
;
background-position
:
right
5px
top
2px
;
background-repeat
:
no-repeat
;
background-size
:
30px
;
}
.service_list
{
ul
{
padding
:
0px
;
margin
:
0px
;
padding-top
:
0px
;
li
{
list-style
:
none
;
display
:
inline-block
;
position
:
relative
;
min-width
:
150px
;
margin
:
3px
;
min-width
:
100%
;
margin
:
0px
;
padding
:
0px
;
border
:none
;
background-image
:
none
;
margin-bottom
:
5px
;
#custom_check_button
{
margin
:
4
px
;
margin
:
0
px
;
background-color
:
#fff
;
border-radius
:
25
px
!
important
;
border-radius
:
0
px
!
important
;
overflow
:
auto
;
color
:
#1e1e1e
;
border
:
1px
solid
#e7e7e7
;
...
...
@@ -588,12 +613,15 @@
#custom_check_button
input
:checked
+
p
{
background-color
:
#58b19f
;
color
:
#fff
;
border-radius
:
25
px
!
important
;
border-radius
:
0
px
!
important
;
margin
:
0px
;
}
}
}
}
}
}
.textarea_input
{
width
:
100%
;
border
:
1px
solid
#1e1e1e
;
...
...
This diff is collapsed.
Click to expand it.
src/app/home/index/index.component.ts
View file @
812e4049
import
{
Component
,
OnInit
,
NgZone
,
ViewChild
,
ElementRef
}
from
'@angular/core'
;
import
{
Router
,
ActivatedRoute
}
from
'@angular/router'
;
import
{
WebService
}
from
'../../provider/web.service'
;
import
{
NgxCarousel
}
from
'ngx-carousel'
;
import
{
MapsAPILoader
}
from
'@agm/core'
;
...
...
@@ -29,30 +30,36 @@ export class IndexComponent implements OnInit {
//Basic Location Search: TAB 1
autocomplete
:
any
;
searchLocError
:
boolean
;
@
ViewChild
(
"step2nextBtn"
)
public
step2nextRef
:
ElementRef
;
@
ViewChild
(
"googleLocSearch"
)
public
searchElementRef
:
ElementRef
;
//Vehicle Details: TAB 2
vehicleDataForm
;
vehicleDataFormSubmit
;
//Service Details: TAB 3
loader
:
boolean
;
issuesData
:
any
;
carModel
:
any
;
carSearchJsonData
:
any
;
modelDates
:
number
[]
=
new
Array
();
constructor
(
private
router
:
Router
,
public
ngZone
:
NgZone
,
public
webService
:
WebService
,
public
mapsAPILoader
:
MapsAPILoader
,
public
subjectService
:
SubjectService
,)
{
this
.
loginDetails
=
false
;
this
.
searchLocError
=
false
;
this
.
vehicleDataFormSubmit
=
false
;
}
ngOnInit
()
{
this
.
vehicleDataForm
=
new
FormGroup
({
trim
:
new
FormControl
(
''
,
[
Validators
.
required
]
),
trim
:
new
FormControl
(
''
),
milage
:
new
FormControl
(
''
),
emgine
:
new
FormControl
(
''
),
maker
:
new
FormControl
(
''
,
[
Validators
.
required
]),
milage
:
new
FormControl
(
''
,
[
Validators
.
required
]),
emgine
:
new
FormControl
(
''
,
[
Validators
.
required
]),
modelYear
:
new
FormControl
(
''
,
[
Validators
.
required
]),
modelName
:
new
FormControl
(
''
,
[
Validators
.
required
])
});
...
...
@@ -63,7 +70,7 @@ export class IndexComponent implements OnInit {
let
currentYear
=
Number
((
new
Date
()).
getFullYear
());
let
startingYear
=
currentYear
-
50
;
for
(
let
date
=
startingYear
;
date
<=
currentYear
;
date
++
)
{
for
(
let
date
=
currentYear
;
date
>=
startingYear
;
date
--
)
{
this
.
modelDates
.
push
(
date
);
}
...
...
@@ -111,7 +118,38 @@ export class IndexComponent implements OnInit {
}
getVehicleData
(
vehicleData
){
console
.
log
(
vehicleData
);
if
(
this
.
vehicleDataForm
.
invalid
){
this
.
vehicleDataFormSubmit
=
true
;
return
false
;
}
this
.
wizardData
[
'vechile_info'
]
=
{
'trim'
:
vehicleData
[
'trim'
],
'maker'
:
this
.
carSearchJsonData
[
vehicleData
[
'maker'
]][
'brand'
],
'milage'
:
vehicleData
[
'milage'
],
'emgine'
:
vehicleData
[
'emgine'
],
'modelName'
:
vehicleData
[
'modelName'
],
'modelYear'
:
vehicleData
[
'modelYear'
]
}
this
.
getIssueData
();
this
.
vehicleDataFormSubmit
=
false
;
this
.
step2nextRef
.
nativeElement
.
click
();
}
getIssueData
(){
const
This
=
this
;
this
.
loader
=
true
;
this
.
webService
.
get_data
(
'getGeneralIssues'
).
subscribe
(
response
=>
{
this
.
loader
=
false
;
if
(
response
.
status
==
'1'
){
this
.
issuesData
=
response
.
issue_data
;
console
.
log
(
this
.
issuesData
);
}
else
{
this
.
router
.
navigate
([
"index"
]);
}
},
error
=>
{
this
.
router
.
navigate
([
"index"
]);
});
}
resetWizard
(){
this
.
vehicleDataForm
.
reset
();
this
.
searchElementRef
.
nativeElement
.
value
=
''
;
}
featuredOnLoad
()
{
return
''
;
}
...
...
This diff is collapsed.
Click to expand it.
src/app/navbar/navbar.component.html
View file @
812e4049
...
...
@@ -65,7 +65,7 @@
<!-- SIGNUP-MODAL-STARTS-->
<div
class=
"modal"
id=
"signup"
>
<div
class=
"modal"
id=
"signup"
style=
"z-index: 99999 !important;"
>
<div
class=
"modal-dialog modal-full"
>
<div
class=
"modal-content login_modal_wrapper"
>
<div
#
signupModal
class=
"modal_close"
data-dismiss=
"modal"
>
...
...
@@ -191,7 +191,7 @@
<!-- LOGIN-MODAL-STARTS-->
<div
class=
"modal"
id=
"login"
>
<div
class=
"modal"
id=
"login"
style=
"z-index: 99999 !important;"
>
<div
class=
"modal-dialog modal-full"
>
<div
class=
"modal-content login_modal_wrapper"
>
<div
#
loginModal
class=
"modal_close"
data-dismiss=
"modal"
(
click
)="
resetForm
()"
>
...
...
@@ -274,7 +274,7 @@
<!-- FORGOT-MODAL-STARTS-->
<div
class=
"modal"
id=
"forgot"
>
<div
class=
"modal"
id=
"forgot"
style=
"z-index: 99999 !important;"
>
<div
class=
"modal-dialog modal-full"
>
<div
class=
"modal-content login_modal_wrapper"
>
<div
class=
"modal_close"
data-dismiss=
"modal"
>
...
...
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