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
c40a9ee1
Commit
c40a9ee1
authored
Jan 07, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
daily commit
parent
2fb57759
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
3 deletions
+22
-3
index.component.html
src/app/home/index/index.component.html
+5
-2
index.component.scss
src/app/home/index/index.component.scss
+4
-0
index.component.ts
src/app/home/index/index.component.ts
+13
-1
No files found.
src/app/home/index/index.component.html
View file @
c40a9ee1
...
@@ -248,6 +248,7 @@
...
@@ -248,6 +248,7 @@
</div>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<div
class=
"login_modal_content"
>
<div
class=
"login_modal_content"
>
<div
class=
"loader_overlay"
*
ngIf=
"loader"
></div>
<div
class=
"login_modal_inner"
>
<div
class=
"login_modal_inner"
>
<div
class=
"wizard_inner"
>
<div
class=
"wizard_inner"
>
<wizard>
<wizard>
...
@@ -299,7 +300,7 @@
...
@@ -299,7 +300,7 @@
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
<button
class=
"log_btn prev_btn floatLeft"
type=
"button"
data-dismiss=
"modal"
>
PREVIOUS
</button>
<button
class=
"log_btn prev_btn floatLeft"
type=
"button"
data-dismiss=
"modal"
>
PREVIOUS
</button>
<button
type=
"submit"
class=
"log_btn next_btn floatRight"
>
NEXT
</button>
<button
[
ngClass
]="{'
log_btn_diabled
'
:vehicleDataForm
.
invalid
}"
type=
"submit"
class=
"log_btn next_btn floatRight"
>
NEXT
</button>
<input
#
step2nextBtn
type=
"hidden"
nextStep
>
<input
#
step2nextBtn
type=
"hidden"
nextStep
>
</div>
</div>
</div>
</div>
...
@@ -339,7 +340,8 @@
...
@@ -339,7 +340,8 @@
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
<button
class=
"log_btn prev_btn floatLeft"
type=
"button"
previousStep
>
PREVIOUS
</button>
<button
class=
"log_btn prev_btn floatLeft"
type=
"button"
previousStep
>
PREVIOUS
</button>
<button
class=
"log_btn next_btn floatRight"
type=
"button"
nextStep
>
NEXT
</button>
<button
[
ngClass
]="{'
log_btn_diabled
'
:selectedIssues
.
length =
=
0
}"
class=
"log_btn next_btn floatRight"
type=
"button"
(
click
)="
jumpToStep3
()"
>
NEXT
</button>
<input
#
step3nextBtn
type=
"hidden"
nextStep
>
</div>
</div>
</div>
</div>
</wizard-step>
</wizard-step>
...
@@ -397,6 +399,7 @@
...
@@ -397,6 +399,7 @@
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
<h6
class=
"pt10 textLeft"
><a
goToStep=
"1"
>
Add more services
</a></h6>
<h6
class=
"pt10 textLeft"
><a
goToStep=
"1"
>
Add more services
</a></h6>
<input
#
goTostep1
type=
"hidden"
goToStep=
"1"
>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
...
...
src/app/home/index/index.component.scss
View file @
c40a9ee1
...
@@ -474,6 +474,10 @@
...
@@ -474,6 +474,10 @@
outline
:
none
;
outline
:
none
;
}
}
}
}
.log_btn_diabled
{
cursor
:
not
-
allowed
;
background
:
#929292
;
}
.wizard_signin
{
.wizard_signin
{
height
:
40px
;
height
:
40px
;
width
:
48%
;
width
:
48%
;
...
...
src/app/home/index/index.component.ts
View file @
c40a9ee1
...
@@ -31,7 +31,9 @@ export class IndexComponent implements OnInit {
...
@@ -31,7 +31,9 @@ export class IndexComponent implements OnInit {
//Basic Location Search: TAB 1
//Basic Location Search: TAB 1
autocomplete
:
any
;
autocomplete
:
any
;
searchLocError
:
boolean
;
searchLocError
:
boolean
;
@
ViewChild
(
"goTostep1"
)
public
goTostep1Ref
:
ElementRef
;
@
ViewChild
(
"step2nextBtn"
)
public
step2nextRef
:
ElementRef
;
@
ViewChild
(
"step2nextBtn"
)
public
step2nextRef
:
ElementRef
;
@
ViewChild
(
"step3nextBtn"
)
public
step3nextRef
:
ElementRef
;
@
ViewChild
(
"googleLocSearch"
)
public
searchElementRef
:
ElementRef
;
@
ViewChild
(
"googleLocSearch"
)
public
searchElementRef
:
ElementRef
;
//Vehicle Details: TAB 2
//Vehicle Details: TAB 2
...
@@ -52,7 +54,7 @@ export class IndexComponent implements OnInit {
...
@@ -52,7 +54,7 @@ export class IndexComponent implements OnInit {
public
ngZone
:
NgZone
,
public
ngZone
:
NgZone
,
public
webService
:
WebService
,
public
webService
:
WebService
,
public
mapsAPILoader
:
MapsAPILoader
,
public
mapsAPILoader
:
MapsAPILoader
,
public
subjectService
:
SubjectService
,
)
{
public
subjectService
:
SubjectService
)
{
this
.
loginDetails
=
false
;
this
.
loginDetails
=
false
;
this
.
searchLocError
=
false
;
this
.
searchLocError
=
false
;
this
.
vehicleDataFormSubmit
=
false
;
this
.
vehicleDataFormSubmit
=
false
;
...
@@ -123,12 +125,16 @@ export class IndexComponent implements OnInit {
...
@@ -123,12 +125,16 @@ export class IndexComponent implements OnInit {
}
}
removeSelectedItem
(
issue_id
,
sub_issue_id
){
removeSelectedItem
(
issue_id
,
sub_issue_id
){
console
.
log
(
this
.
selectedIssues
);
let
index
=
this
.
selectedIssues
.
findIndex
(
x
=>
x
.
sub_issue_id
==
sub_issue_id
);
let
index
=
this
.
selectedIssues
.
findIndex
(
x
=>
x
.
sub_issue_id
==
sub_issue_id
);
if
(
index
>
-
1
){
if
(
index
>
-
1
){
this
.
selectedIssues
.
splice
(
index
,
1
);
this
.
selectedIssues
.
splice
(
index
,
1
);
$
(
'[id="issue_'
+
issue_id
+
'_'
+
sub_issue_id
+
'"]'
).
prop
(
'checked'
,
false
);
$
(
'[id="issue_'
+
issue_id
+
'_'
+
sub_issue_id
+
'"]'
).
prop
(
'checked'
,
false
);
}
}
if
(
this
.
selectedIssues
.
length
==
0
){
this
.
goTostep1Ref
.
nativeElement
.
click
();
}
}
}
getVehicleLoc
(
lastLoc
){
getVehicleLoc
(
lastLoc
){
...
@@ -190,6 +196,12 @@ export class IndexComponent implements OnInit {
...
@@ -190,6 +196,12 @@ export class IndexComponent implements OnInit {
this
.
searchElementRef
.
nativeElement
.
value
=
''
;
this
.
searchElementRef
.
nativeElement
.
value
=
''
;
}
}
jumpToStep3
(){
if
(
this
.
selectedIssues
.
length
!=
0
){
this
.
step3nextRef
.
nativeElement
.
click
();
}
}
featuredOnLoad
()
{
return
''
;
}
featuredOnLoad
()
{
return
''
;
}
carouselTileLoad
(){
return
''
;
}
carouselTileLoad
(){
return
''
;
}
}
}
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