Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
Muhammad Usman
PERFORMA_REPLICA
Commits
c5fd9b7f
Commit
c5fd9b7f
authored
Jul 24, 2020
by
Muhammad Usman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
studied suggestions
parent
3c75de96
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
8 deletions
+38
-8
education.component.html
...history/career-history/education/education.component.html
+2
-1
education.component.ts
...r-history/career-history/education/education.component.ts
+15
-0
work-history.component.html
...y/career-history/work-history/work-history.component.html
+1
-1
work-history.component.ts
...ory/career-history/work-history/work-history.component.ts
+10
-6
constants.ts
frontend/angular/src/app/my-career-web/config/constants.ts
+1
-0
personal-details.service.ts
...rc/app/my-career-web/services/personal-details.service.ts
+9
-0
No files found.
frontend/angular/src/app/my-career-web/career-history/career-history/education/education.component.html
View file @
c5fd9b7f
...
...
@@ -40,7 +40,8 @@
<div
class=
"col-md-6 form-group"
>
<label>
Where Studied
</label>
<app-form-control>
<input
type=
"text"
class=
"form-control"
placeholder=
"Where studied"
name=
"WhereStudied{{i}}"
[(
ngModel
)]="
education
.
WhereStudied
"
>
<p-autoComplete
[
suggestions
]="
filterStudied
"
(
completeMethod
)="
suggestedStudiedAt
($
event
)"
placeholder=
"Where studied"
name=
"WhereStudied{{i}}"
[(
ngModel
)]="
education
.
WhereStudied
"
required
>
</p-autoComplete>
</app-form-control>
</div>
...
...
frontend/angular/src/app/my-career-web/career-history/career-history/education/education.component.ts
View file @
c5fd9b7f
...
...
@@ -24,6 +24,8 @@ export class EducationComponent extends BaseComponent implements OnInit {
apiUrl
=
environment
.
baseUrl
;
uploadingFile
=
false
;
certifications
=
[];
studied
:
string
[]
=
[];
filterStudied
=
[];
@
ViewChild
(
'form'
)
form
:
NgForm
;
@
Output
()
educationSaved
=
new
EventEmitter
();
...
...
@@ -41,6 +43,13 @@ export class EducationComponent extends BaseComponent implements OnInit {
ngOnInit
()
{
this
.
getCareerProfile
();
this
.
personalDetailsService
.
getStudied
()
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(
response
=>
{
this
.
studied
=
response
.
filter
(
s
=>
!!
s
);
},
err
=>
{
this
.
utilsService
.
handleError
(
err
);
});
}
getCareerProfile
():
void
{
...
...
@@ -65,6 +74,12 @@ export class EducationComponent extends BaseComponent implements OnInit {
})
}
suggestedStudiedAt
(
$event
):
void
{
setTimeout
(()
=>
{
this
.
filterStudied
=
$event
.
query
?
this
.
studied
.
filter
(
s
=>
s
.
startsWith
(
$event
.
query
))
:
this
.
studied
.
slice
();
});
}
addEducation
(
initLoad
=
false
):
void
{
const
newModel
=
new
EducationModel
();
newModel
.
CareerProfile
=
this
.
careerProfile
.
ObjectID
;
...
...
frontend/angular/src/app/my-career-web/career-history/career-history/work-history/work-history.component.html
View file @
c5fd9b7f
...
...
@@ -25,7 +25,7 @@
<div
class=
"col-md-6 form-group"
>
<label>
Employer
</label>
<app-form-control>
<p-autoComplete
[
suggestions
]="
e
mployers
"
(
completeMethod
)="
suggestedEmployer
($
event
)"
placeholder=
"Employeer name"
name=
"Employer{{i}}"
[(
ngModel
)]="
experience
.
Employer
"
required
>
<p-autoComplete
[
suggestions
]="
filteredE
mployers
"
(
completeMethod
)="
suggestedEmployer
($
event
)"
placeholder=
"Employeer name"
name=
"Employer{{i}}"
[(
ngModel
)]="
experience
.
Employer
"
required
>
</p-autoComplete>
</app-form-control>
</div>
...
...
frontend/angular/src/app/my-career-web/career-history/career-history/work-history/work-history.component.ts
View file @
c5fd9b7f
...
...
@@ -23,6 +23,7 @@ export class WorkHistoryComponent extends BaseComponent implements OnInit {
careerProfile
=
new
CareerProfileModel
();
jobTitles
=
[];
employers
=
[];
filteredEmployers
=
[];
@
ViewChild
(
'form'
)
form
:
NgForm
;
@
Output
()
workSaved
=
new
EventEmitter
();
...
...
@@ -41,6 +42,13 @@ export class WorkHistoryComponent extends BaseComponent implements OnInit {
ngOnInit
()
{
this
.
getCareerProfile
();
this
.
personalDetailsService
.
getEmployers
()
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(
response
=>
{
this
.
employers
=
response
.
filter
(
s
=>
!!
s
);
},
err
=>
{
this
.
utilsService
.
handleError
(
err
);
});
}
getCareerProfile
():
void
{
...
...
@@ -67,12 +75,8 @@ export class WorkHistoryComponent extends BaseComponent implements OnInit {
}
suggestedEmployer
(
$event
):
void
{
this
.
personalDetailsService
.
getEmployers
({
Details
:
$event
.
query
})
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(
response
=>
{
this
.
employers
=
response
;
},
err
=>
{
this
.
utilsService
.
handleError
(
err
);
setTimeout
(()
=>
{
this
.
filteredEmployers
=
$event
.
query
?
this
.
employers
.
filter
(
s
=>
s
.
startsWith
(
$event
.
query
))
:
this
.
employers
.
slice
();
});
}
...
...
frontend/angular/src/app/my-career-web/config/constants.ts
View file @
c5fd9b7f
...
...
@@ -49,6 +49,7 @@ export const SERVICES = {
LOGIN_GOOGLE
:
'LoginWithGoogle'
,
INTRODUCTION_LETTERS
:
'IntroductionLetters'
,
APPLICANT_TALENT_JOBS
:
'ApplicantTalentJobs'
,
STUDIED
:
'Studied'
};
export
const
SEARCH
=
{
...
...
frontend/angular/src/app/my-career-web/services/personal-details.service.ts
View file @
c5fd9b7f
...
...
@@ -74,6 +74,15 @@ export class PersonalDetailsService {
)
}
getStudied
(
queryParams
=
{},
assocs
=
[]):
Observable
<
any
>
{
return
this
.
searchService
.
getObjects
(
SERVICES
.
STUDIED
,
'All'
,
queryParams
,
assocs
,
null
,
null
,
null
,
null
)
.
map
(
data
=>
{
return
data
.
Studied
;
}
)
}
getCertifications
(
queryParams
=
{},
assocs
=
[]):
Observable
<
any
>
{
return
this
.
searchService
.
getObjects
(
SERVICES
.
CERTIFICATIONS
,
'All'
,
queryParams
,
assocs
,
'Autocomplete'
,
null
,
null
,
null
)
.
map
(
...
...
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