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
f4950a68
Commit
f4950a68
authored
Jun 24, 2020
by
Muhammad Usman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
toaster sisues
parent
c3f8d252
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
177 additions
and
23 deletions
+177
-23
work-preference.component.ts
...b/assessment/work-preference/work-preference.component.ts
+1
-0
work-style.component.ts
...-career-web/assessment/work-style/work-style.component.ts
+1
-0
education.component.html
...history/career-history/education/education.component.html
+47
-18
education.component.ts
...r-history/career-history/education/education.component.ts
+86
-3
work-history.component.ts
...ory/career-history/work-history/work-history.component.ts
+0
-1
constants.ts
...ular/src/app/components/my-career-web/config/constants.ts
+2
-0
career-profile.model.ts
...p/components/my-career-web/models/career-profile.model.ts
+3
-0
education.model.ts
...rc/app/components/my-career-web/models/education.model.ts
+21
-0
toaster.service.ts
.../app/components/my-career-web/services/toaster.service.ts
+1
-1
_profile-builder.scss
...angular/src/styles/my-career-styles/_profile-builder.scss
+13
-0
_toast.scss
...d/angular/src/styles/my-career-styles/primeng/_toast.scss
+2
-0
No files found.
frontend/angular/src/app/components/my-career-web/assessment/work-preference/work-preference.component.ts
View file @
f4950a68
...
...
@@ -42,6 +42,7 @@ export class WorkPreferenceComponent extends BaseComponent implements OnInit, On
.
subscribe
(
response
=>
{
this
.
isLoading
=
false
;
this
.
autoSavedOn
=
new
Date
();
this
.
autoSave
();
if
(
response
.
length
>
0
)
{
this
.
workPreferenceQuestion
=
response
[
0
];
}
else
{
...
...
frontend/angular/src/app/components/my-career-web/assessment/work-style/work-style.component.ts
View file @
f4950a68
...
...
@@ -41,6 +41,7 @@ export class WorkStyleComponent extends BaseComponent implements OnInit, OnDestr
.
subscribe
(
response
=>
{
this
.
isLoading
=
false
;
this
.
autoSavedOn
=
new
Date
();
this
.
autoSave
();
if
(
response
.
length
>
0
)
{
this
.
workStyleQuestion
=
response
[
0
];
}
...
...
frontend/angular/src/app/components/my-career-web/career-history/career-history/education/education.component.html
View file @
f4950a68
<h4
class=
"tab-heading"
>
Tell us about your education, qualifications and certifications
</h4>
<div
class=
"position-relative"
>
<app-overlay
[
isActive
]="
isLoading
"
></app-overlay>
<div
class=
"row"
style=
"margin-top: 24px;"
>
<h4
class=
"tab-heading"
>
Tell us about your education, qualifications and certifications
</h4>
<div
class=
"row"
style=
"margin-top: 24px;"
*
ngIf=
"!careerProfile?.EducationCertificates[0]?.Certification && careerProfile?.EducationCertificates?.length <= 1"
>
<div
class=
"col-md-12 form-group"
>
<p-checkbox
label=
"I don't have any education qualification or certificates to record"
></p-checkbox>
<p-checkbox
label=
"I don't have any education qualification or certificates to record"
[
binary
]="
true
"
[(
ngModel
)]="
careerProfile
.
NoEducationQualification
"
>
</p-checkbox>
</div>
</div>
</div>
<form
#
form=
"ngForm"
*
ngIf=
"!careerProfile.NoEducationQualification"
>
<div
class=
"row education-wrapper"
>
<div
class=
"row education-wrapper"
*
ngFor=
"let education of careerProfile.EducationCertificates; let i = index;"
>
<div
class=
"remove-record"
>
<i
class=
"fa fa-remove"
(
click
)="
removeEducation
(
education
)"
></i>
</div>
<div
class=
"col-md-9"
>
<div
class=
"row"
>
<div
class=
"col-md-6 form-group"
>
<label>
Course or Certification
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"Employeer name"
name=
"Skype"
>
<app-form-control>
<input
type=
"text"
class=
"form-control"
placeholder=
"Certification"
name=
"Certification"
[(
ngModel
)]="
education
.
Certification
"
>
</app-form-control>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-md-6 form-group"
>
<label>
Where Studied
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"Where studied"
name=
"Skype"
>
<app-form-control>
<input
type=
"text"
class=
"form-control"
placeholder=
"Where studied"
name=
"WhereStudied"
[(
ngModel
)]="
education
.
WhereStudied
"
>
</app-form-control>
</div>
<div
class=
"col-md-6 form-group"
>
<label>
Where Issued
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"Where issued"
name=
"Skype"
>
<app-form-control>
<input
type=
"text"
class=
"form-control"
placeholder=
"Where issued"
name=
"WhereIssued"
[(
ngModel
)]="
education
.
WhereIssued
"
>
</app-form-control>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-md-3 form-group"
>
<label>
GPA or Outcome
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"Where studied"
name=
"Skype"
>
<app-form-control>
<input
type=
"text"
class=
"form-control"
placeholder=
"Outcome"
name=
"Outcome"
[(
ngModel
)]="
education
.
Outcome
"
>
</app-form-control>
</div>
<div
class=
"col-md-6 col-md-offset-3 form-group"
>
<label>
When Completed
</label>
<p-calendar></p-calendar>
<app-form-control>
<p-calendar
[(
ngModel
)]="
education
.
WhenCompletedField
"
name=
"WhenCompletedField"
>
</p-calendar>
</app-form-control>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-md-4 form-group"
>
<label>
Upload Certificate
</label>
<p-fileUpload
mode=
"basic"
name=
"Upload your Cover Letter"
withCredentials=
"true"
auto=
"true"
chooseLabel=
"Browse"
></p-fileUpload>
<p-fileUpload
mode=
"basic"
name=
"Upload your Cover Letter"
withCredentials=
"true"
auto=
"true"
chooseLabel=
"Browse"
></p-fileUpload>
</div>
</div>
</div>
</div>
</div>
</form>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<button
pButton
class=
"btn btn-info-outline add-more"
label=
"Add Education +
"
></button>
<button
pButton
class=
"btn btn-info-outline add-more"
label=
"Add Education +"
(
click
)="
addEducation
()
"
></button>
</div>
</div>
</div>
<div
class=
"d-flex justify-content-center"
style=
"margin-top: 48px;"
>
<button
pButton
label=
"Next Section"
class=
"ui-button-info next-section"
(
click
)="
saveEducation
()"
></button>
</div>
<div
class=
"d-flex justify-content-center"
style=
"margin-top: 48px;"
>
<button
pButton
label=
"Next Section"
class=
"ui-button-info next-section"
></button>
</div>
frontend/angular/src/app/components/my-career-web/career-history/career-history/education/education.component.ts
View file @
f4950a68
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
EventEmitter
,
OnInit
,
Output
,
ViewChild
}
from
'@angular/core'
;
import
{
PersonalDetailsService
}
from
'../../../services/personal-details.service'
;
import
{
CareerProfileModel
}
from
'../../../models/career-profile.model'
;
import
{
HelperService
}
from
'../../../services/helper.service'
;
import
{
UtilsService
}
from
'../../../../../oneit/services/utils.service'
;
import
{
ConfirmationService
}
from
'primeng/api'
;
import
{
NgForm
}
from
'@angular/forms'
;
import
{
BaseComponent
}
from
'../../../base/base.component'
;
import
{
takeUntil
}
from
'rxjs/operators'
;
import
{
EducationModel
}
from
'../../../models/education.model'
;
@
Component
({
selector
:
'app-education'
,
templateUrl
:
'./education.component.html'
,
styleUrls
:
[
'./education.component.scss'
]
})
export
class
EducationComponent
implements
OnInit
{
export
class
EducationComponent
extends
BaseComponent
implements
OnInit
{
constructor
()
{
assocs
=
[
'EducationCertificates'
];
careerProfile
=
new
CareerProfileModel
();
@
ViewChild
(
'form'
)
form
:
NgForm
;
@
Output
()
workSaved
=
new
EventEmitter
();
constructor
(
private
ps
:
PersonalDetailsService
,
private
us
:
UtilsService
,
private
cs
:
ConfirmationService
,
private
hs
:
HelperService
)
{
super
();
}
ngOnInit
()
{
this
.
getCareerProfile
();
}
getCareerProfile
():
void
{
this
.
isLoading
=
true
;
this
.
ps
.
getCareerProfile
(
this
.
assocs
)
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(
response
=>
{
this
.
isLoading
=
false
;
this
.
careerProfile
=
response
;
if
(
this
.
careerProfile
.
EducationCertificates
)
{
this
.
careerProfile
.
EducationCertificates
.
forEach
(
edu
=>
{
edu
.
WhenCompletedField
=
UtilsService
.
convertStringToDate
(
edu
.
WhenCompleted
);
})
}
this
.
us
.
addObjsToJSONByObjectID
(
this
.
updatedObjs
,
this
.
careerProfile
.
EducationCertificates
);
this
.
addEducation
(
true
);
this
.
isLoading
=
false
;
},
err
=>
{
this
.
hs
.
handleHttpError
(
err
);
this
.
isLoading
=
false
;
})
}
addEducation
(
initLoad
=
false
):
void
{
const
newModel
=
new
EducationModel
();
newModel
.
CareerProfile
=
this
.
careerProfile
.
ObjectID
;
if
(
initLoad
&&
(
!
this
.
careerProfile
.
EducationCertificates
||
this
.
careerProfile
.
EducationCertificates
.
length
===
0
))
{
this
.
us
.
addMultiRefObject
(
newModel
,
this
.
careerProfile
,
'EducationCertificates'
,
this
.
createdObjs
);
}
else
if
(
!
initLoad
)
{
this
.
us
.
addMultiRefObject
(
newModel
,
this
.
careerProfile
,
'EducationCertificates'
,
this
.
createdObjs
);
}
}
removeEducation
(
exp
):
void
{
this
.
cs
.
confirm
({
message
:
'Are you sure you want to remove this education?'
,
accept
:
()
=>
{
this
.
us
.
removeMultiRefObject
(
exp
,
this
.
careerProfile
,
'EducationCertificates'
,
this
.
createdObjs
,
this
.
updatedObjs
,
this
.
deletedObjs
);
}
})
}
saveEducation
():
void
{
this
.
hs
.
validateAllFormFields
(
this
.
form
);
if
(
this
.
form
.
invalid
)
{
return
;
}
this
.
careerProfile
.
EducationCertificates
.
forEach
(
exp
=>
{
exp
.
WhenCompleted
=
UtilsService
.
convertDateToString
(
exp
.
WhenCompletedField
);
});
this
.
isSaving
=
true
;
this
.
ps
.
saveProfile
(
this
.
createdObjs
,
this
.
updatedObjs
,
this
.
deletedObjs
)
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(
res
=>
{
this
.
isSaving
=
false
;
this
.
hs
.
oneItHttpResponse
(
res
);
this
.
workSaved
.
emit
();
},
err
=>
{
this
.
hs
.
handleHttpError
(
err
);
this
.
isSaving
=
false
;
})
}
}
frontend/angular/src/app/components/my-career-web/career-history/career-history/work-history/work-history.component.ts
View file @
f4950a68
...
...
@@ -102,7 +102,6 @@ export class WorkHistoryComponent extends BaseComponent implements OnInit {
this
.
isSaving
=
false
;
this
.
hs
.
oneItHttpResponse
(
res
);
this
.
workSaved
.
emit
();
console
.
log
(
'SENT'
);
},
err
=>
{
this
.
hs
.
handleHttpError
(
err
);
this
.
isSaving
=
false
;
...
...
frontend/angular/src/app/components/my-career-web/config/constants.ts
View file @
f4950a68
...
...
@@ -20,6 +20,8 @@ export const CLASSES = {
DIVERSITY_QUESTION
:
'performa.orm.DiversityQuestion'
,
DIVERSITY_ANSWER
:
'performa.orm.DiversityAnswer'
,
WORK_EXPERIENCE
:
'performa.orm.WorkExperience'
,
CERTIFICATION
:
'performa.orm.Certification'
,
EDUCATION
:
'performa.orm.EducationCertificate'
,
QUESTION
:
'performa.orm.Question'
};
...
...
frontend/angular/src/app/components/my-career-web/models/career-profile.model.ts
View file @
f4950a68
...
...
@@ -2,6 +2,7 @@ import { BaseModel } from './base.model';
import
{
CandidateModel
}
from
'./candidate.model'
;
import
{
CLASSES
}
from
'../config/constants'
;
import
{
WorkExperienceModel
}
from
'./work-experience.model'
;
import
{
EducationModel
}
from
'./education.model'
;
export
class
CareerProfileModel
extends
BaseModel
{
ObjectClass
=
CLASSES
.
CAREER_PROFILE
;
...
...
@@ -15,5 +16,7 @@ export class CareerProfileModel extends BaseModel {
IsGoogleConnected
:
boolean
;
IsLinkedInConnected
:
boolean
;
WorkExperiences
:
WorkExperienceModel
[]
=
[];
EducationCertificates
:
EducationModel
[]
=
[];
NoWorkExperience
:
boolean
;
NoEducationQualification
:
boolean
;
}
frontend/angular/src/app/components/my-career-web/models/education.model.ts
0 → 100644
View file @
f4950a68
import
{
BaseModel
}
from
'./base.model'
;
import
{
CLASSES
}
from
'../config/constants'
;
export
class
EducationModel
extends
BaseModel
{
ObjectClass
=
CLASSES
.
EDUCATION
;
IsIncluded
:
boolean
;
WhereStudied
:
string
;
WhereIssued
:
string
;
Outcome
:
string
;
WhenCompleted
:
string
;
WhenCompletedField
:
Date
;
Certificate
:
any
;
CareerProfile
:
string
;
Certification
:
Certification
;
}
class
Certification
extends
BaseModel
{
ObjectClass
=
CLASSES
.
CERTIFICATION
;
CertificateName
:
string
;
}
frontend/angular/src/app/components/my-career-web/services/toaster.service.ts
View file @
f4950a68
...
...
@@ -10,7 +10,7 @@ export class ToasterService {
)
{
}
error
(
txt
,
title
=
'Error'
):
void
{
this
.
ms
.
add
({
severity
:
'error'
,
summary
:
title
,
detail
:
txt
,
life
:
3000
});
this
.
ms
.
add
({
severity
:
'error'
,
summary
:
title
,
detail
:
txt
,
life
:
3000
00
});
}
success
(
txt
,
title
=
'Success'
):
void
{
...
...
frontend/angular/src/styles/my-career-styles/_profile-builder.scss
View file @
f4950a68
...
...
@@ -25,6 +25,19 @@
.experience-wrapper
,
.education-wrapper
,
.skill-wrapper
,
.reference-wrapper
{
margin-bottom
:
32px
;
border-bottom
:
1px
solid
#f2f2f2
;
position
:
relative
;
.remove-record
{
padding
:
3px
6px
;
border-radius
:
3px
;
background
:
#e62a10
;
color
:
#fff
;
position
:
absolute
;
right
:
0
;
cursor
:
pointer
;
top
:
0
;
}
}
.add-more
{
...
...
frontend/angular/src/styles/my-career-styles/primeng/_toast.scss
View file @
f4950a68
...
...
@@ -4,10 +4,12 @@
left
:
20%
;
display
:
flex
;
align-items
:
center
;
flex-direction
:
column
;
p-toastItem
{
width
:
100%
;
font-family
:
$bodyFont
;
margin-bottom
:
10px
;
}
.ui-toast-message
{
...
...
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