Commit 601c3af5 by Muhammad Usman

personal details help text

parent f983f5f2
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
button { button {
margin-left: 24px; margin-left: 24px;
white-space: nowrap;
} }
} }
} }
...@@ -106,6 +107,7 @@ ...@@ -106,6 +107,7 @@
color: $darkColor; color: $darkColor;
font-family: $bodyFont; font-family: $bodyFont;
cursor: pointer; cursor: pointer;
display: flex;
::ng-deep { ::ng-deep {
label { label {
......
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
@media only screen and (max-width: 768px) { @media only screen and (max-width: 1024px) {
.header-actions { .header-actions {
display: flex; display: flex;
...@@ -170,6 +170,10 @@ ...@@ -170,6 +170,10 @@
align-items: center; align-items: center;
padding: 0 12px; padding: 0 12px;
width: 100%; width: 100%;
button {
white-space: nowrap;
}
} }
...@@ -248,6 +252,10 @@ ...@@ -248,6 +252,10 @@
height: unset; height: unset;
border: none !important; border: none !important;
margin: 0 !important; margin: 0 !important;
&:hover {
background: transparent;
}
} }
} }
} }
......
...@@ -55,9 +55,11 @@ export class WorkStyleComponent extends BaseComponent implements OnInit, OnDestr ...@@ -55,9 +55,11 @@ export class WorkStyleComponent extends BaseComponent implements OnInit, OnDestr
setAnswerScales(): void { setAnswerScales(): void {
this.answerScales = []; this.answerScales = [];
for (let i = 1; i <= (this.workStyleQuestion.Scalar || 1); i++) { setTimeout(() => {
this.answerScales.push(i); for (let i = 1; i <= (this.workStyleQuestion.Scalar || 1); i++) {
} this.answerScales.push(i);
}
});
} }
submitAnswer(scale): void { submitAnswer(scale): void {
......
...@@ -25,6 +25,7 @@ import { FileUploadModule } from 'primeng/fileupload'; ...@@ -25,6 +25,7 @@ import { FileUploadModule } from 'primeng/fileupload';
import { SelectButtonModule } from 'primeng/selectbutton'; import { SelectButtonModule } from 'primeng/selectbutton';
import { PersonalDetailsComponent } from './personal-details/personal-details.component'; import { PersonalDetailsComponent } from './personal-details/personal-details.component';
import { ConfirmDialogModule } from 'primeng/confirmdialog'; import { ConfirmDialogModule } from 'primeng/confirmdialog';
import { TooltipModule } from 'primeng/tooltip';
const MODULES = [ const MODULES = [
ReactiveFormsModule, ReactiveFormsModule,
...@@ -43,7 +44,8 @@ const MODULES = [ ...@@ -43,7 +44,8 @@ const MODULES = [
CalendarModule, CalendarModule,
FileUploadModule, FileUploadModule,
SelectButtonModule, SelectButtonModule,
ConfirmDialogModule ConfirmDialogModule,
TooltipModule
]; ];
const COMPONENTS = [ const COMPONENTS = [
......
...@@ -17,21 +17,23 @@ ...@@ -17,21 +17,23 @@
<div class="col-md-6 form-group"> <div class="col-md-6 form-group">
<label>First Name</label> <label>First Name</label>
<app-form-control> <app-form-control>
<input type="text" class="form-control" placeholder="First Name" required name="FirstName" [(ngModel)]="careerProfile.Candidate.User.FirstName"> <input type="text" class="form-control" placeholder="First Name" required name="FirstName"
[(ngModel)]="careerProfile.Candidate.User.FirstName">
</app-form-control> </app-form-control>
</div> </div>
<div class="col-md-6 form-group"> <div class="col-md-6 form-group">
<label>Last Name</label> <label>Last Name</label>
<app-form-control> <app-form-control>
<input type="text" class="form-control" placeholder="Last Name" required name="LastName" [(ngModel)]="careerProfile.Candidate.User.LastName"> <input type="text" class="form-control" placeholder="Last Name" required name="LastName"
[(ngModel)]="careerProfile.Candidate.User.LastName">
</app-form-control> </app-form-control>
</div> </div>
<div class="col-md-6 form-group"> <div class="col-md-6 form-group">
<label>Email</label> <label>Email</label>
<app-form-control> <app-form-control>
<input type="email" email="" class="form-control" placeholder="Email Address" required name="Email" <input type="email" email="" class="form-control" placeholder="Email Address" required name="Email"
[(ngModel)]="careerProfile.Candidate.User.Email"> [(ngModel)]="careerProfile.Candidate.User.Email">
</app-form-control> </app-form-control>
</div> </div>
...@@ -39,8 +41,10 @@ ...@@ -39,8 +41,10 @@
<div class="col-md-6 form-group"> <div class="col-md-6 form-group">
<label>Mobile</label> <label>Mobile</label>
<app-form-control> <app-form-control>
<p-inputMask (focusout)="checkMobilePattern()" slotChar="-" [unmask]="true" [autoClear]="true" mask="9999 999 9999" <p-inputMask (focusout)="checkMobilePattern()" slotChar="-" [unmask]="true" [autoClear]="true"
styleClass="form-control" placeholder="Mobile No" [(ngModel)]="careerProfile.Mobile" name="Mobile"> mask="9999 999 9999"
styleClass="form-control" placeholder="Mobile No" [(ngModel)]="careerProfile.Mobile"
name="Mobile">
</p-inputMask> </p-inputMask>
</app-form-control> </app-form-control>
<div class="mobile-no-msg" *ngIf="!careerProfile.Mobile || careerProfile.Mobile.length < 11"> <div class="mobile-no-msg" *ngIf="!careerProfile.Mobile || careerProfile.Mobile.length < 11">
...@@ -51,8 +55,10 @@ ...@@ -51,8 +55,10 @@
<div class="col-md-12 form-group"> <div class="col-md-12 form-group">
<label>Address</label> <label>Address</label>
<app-form-control> <app-form-control>
<input type="text" appGooglePlacesAutocomplete (change)="changedAddress()" (addressSelected)="updateAddress($event)" <input type="text" appGooglePlacesAutocomplete (change)="changedAddress()"
class="form-control" placeholder="Address" required [(ngModel)]="careerProfile.GoogleAddress" name="Address"> (addressSelected)="updateAddress($event)"
class="form-control" placeholder="Address" required [(ngModel)]="careerProfile.GoogleAddress"
name="Address">
</app-form-control> </app-form-control>
</div> </div>
...@@ -60,14 +66,17 @@ ...@@ -60,14 +66,17 @@
<div class="col-md-6 form-group"> <div class="col-md-6 form-group">
<label>Skype</label> <label>Skype</label>
<app-form-control> <app-form-control>
<input type="text" class="form-control" placeholder="Skype" [(ngModel)]="careerProfile.Skype" name="Skype"> <input type="text" class="form-control" placeholder="Skype" [(ngModel)]="careerProfile.Skype"
name="Skype">
</app-form-control> </app-form-control>
</div> </div>
<div class="col-md-6 form-group" *ngIf="!asChildComponent"> <div class="col-md-6 form-group" *ngIf="!asChildComponent">
<label>Occupation Preference</label> <label>Occupation Preference</label>
<p-autoComplete placeholder="Occupation Preference" (completeMethod)="getJobTitles($event)" [forceSelection]="true" field="JobTitle" <p-autoComplete placeholder="Occupation Preference" (completeMethod)="getJobTitles($event)"
[suggestions]="jobTitles" name="OccupationPreference" [(ngModel)]="careerProfile.Candidate.OccupationPreference" dataKey="ObjectID"> [forceSelection]="true" field="JobTitle"
[suggestions]="jobTitles" name="OccupationPreference"
[(ngModel)]="careerProfile.Candidate.OccupationPreference" dataKey="ObjectID">
</p-autoComplete> </p-autoComplete>
</div> </div>
...@@ -76,7 +85,8 @@ ...@@ -76,7 +85,8 @@
<div class="row"> <div class="row">
<div class="col-sm-12" *ngIf="isLoadingPreferences"><i class="pi pi-spin pi-spinner"></i></div> <div class="col-sm-12" *ngIf="isLoadingPreferences"><i class="pi pi-spin pi-spinner"></i></div>
<div class="col-sm-6" *ngFor="let preference of employmentPreferences; let i = index;"> <div class="col-sm-6" *ngFor="let preference of employmentPreferences; let i = index;">
<p-checkbox [label]="preference.Description" [value]="preference.Value" [(ngModel)]="careerProfile.Candidate.EmploymentPreference" <p-checkbox [label]="preference.Description" [value]="preference.Value"
[(ngModel)]="careerProfile.Candidate.EmploymentPreference"
name="pref-{{i}}"> name="pref-{{i}}">
</p-checkbox> </p-checkbox>
</div> </div>
...@@ -88,7 +98,8 @@ ...@@ -88,7 +98,8 @@
<label>Employment Status</label> <label>Employment Status</label>
<p-dropdown placeholder="Employment Status" [options]="employmentStatuses" <p-dropdown placeholder="Employment Status" [options]="employmentStatuses"
[dropdownIcon]="isLoadingStatuses ? 'pi pi-spin pi-spinner' : 'pi pi-chevron-down'" [dropdownIcon]="isLoadingStatuses ? 'pi pi-spin pi-spinner' : 'pi pi-chevron-down'"
optionLabel="Description" name="EmploymentStatus" [(ngModel)]="careerProfile.Candidate.EmploymentStatus" dataKey="Value"> optionLabel="Description" name="EmploymentStatus"
[(ngModel)]="careerProfile.Candidate.EmploymentStatus" dataKey="Value">
</p-dropdown> </p-dropdown>
</div> </div>
...@@ -104,33 +115,38 @@ ...@@ -104,33 +115,38 @@
<div class="col-md-12 form-group" *ngIf="asChildComponent"> <div class="col-md-12 form-group" *ngIf="asChildComponent">
<label>Personal Statement</label> <label class="with-help-text">Personal Statement <span class="help-text"><i class="fa fa-question" pTooltip="Your Personal Statement will appear on your Career Profile. It describes the type of work you are looking for, your career plans and what makes you unique. You don’t need to add a Personal Statement now (or at all) … you can add it later via the Career Profile editor. If you want more help with creating a Personal Statement, see the article on our Knowledgebase." tooltipStyleClass="t-w300"></i></span></label>
<app-form-control> <app-form-control>
<textarea class="form-control" [(ngModel)]="careerProfile.PersonalStatement" name="PersonalStatement"></textarea> <textarea class="form-control" [(ngModel)]="careerProfile.PersonalStatement"
name="PersonalStatement"></textarea>
</app-form-control> </app-form-control>
</div> </div>
<div class="col-md-12 form-group" *ngIf="asChildComponent"> <div class="col-md-12 form-group" *ngIf="asChildComponent">
<label>Achievements</label> <label class="with-help-text">Achievements <span class="help-text"><i class="fa fa-question" tooltipStyleClass="t-w300" pTooltip="Your Achievements will appear on your Career Profile. It describes the significant events in your work career. This can include projects you worked on, awards, recognition or just activities you have performed well. You don’t need to add Achievements now (or at all) … you can add it later via the Career Profile editor. If you want more help with describing your Achievements, see the article on our Knowledgebase."></i></span></label>
<app-form-control> <app-form-control>
<textarea class="form-control" [(ngModel)]="careerProfile.Achievements" name="Achievements"></textarea> <textarea class="form-control" [(ngModel)]="careerProfile.Achievements" name="Achievements"></textarea>
</app-form-control> </app-form-control>
</div> </div>
<div class="col-md-6 mt-4 d-flex justify-content-center" *ngIf="!asChildComponent"> <div class="col-md-6 mt-4 d-flex justify-content-center" *ngIf="!asChildComponent">
<button type="button" pButton label="Connect With Google" class="ui-button-google" (click)="connectWithSocial('Google')" <button type="button" pButton label="Connect With Google" class="ui-button-google"
(click)="connectWithSocial('Google')"
*ngIf="!careerProfile.IsGoogleConnected"></button> *ngIf="!careerProfile.IsGoogleConnected"></button>
</div> </div>
<div class="col-md-6 mt-4 d-flex justify-content-center" *ngIf="!asChildComponent"> <div class="col-md-6 mt-4 d-flex justify-content-center" *ngIf="!asChildComponent">
<button type="button" pButton label="Connect With LinkedIn" class="ui-button-facebook" (click)="connectWithSocial('linkedIn')" <button type="button" pButton label="Connect With LinkedIn" class="ui-button-facebook"
(click)="connectWithSocial('linkedIn')"
*ngIf="!careerProfile.IsLinkedInConnected"></button> *ngIf="!careerProfile.IsLinkedInConnected"></button>
</div> </div>
<div class="col-md-12 d-flex justify-content-end mt-5" *ngIf="!asChildComponent"> <div class="col-md-12 d-flex justify-content-end mt-5" *ngIf="!asChildComponent">
<button (click)="updateProfile()" pButton [icon]="isSaving ? 'pi pi-spin pi-spinner' : 'pi pi-save'" label="Update Information" <button (click)="updateProfile()" pButton [icon]="isSaving ? 'pi pi-spin pi-spinner' : 'pi pi-save'"
label="Update Information"
class="ui-button-info update-info" [disabled]="isLoading || isSaving"> class="ui-button-info update-info" [disabled]="isLoading || isSaving">
</button> </button>
</div> </div>
...@@ -138,7 +154,8 @@ ...@@ -138,7 +154,8 @@
<div class="col-md-12" style="margin-top: 48px;" *ngIf="asChildComponent"> <div class="col-md-12" style="margin-top: 48px;" *ngIf="asChildComponent">
<div class="d-flex justify-content-center"> <div class="d-flex justify-content-center">
<button pButton label="Next Section" (click)="updateProfile()" class="ui-button-info next-section" [disabled]="isLoading || isSaving"> <button pButton label="Next Section" (click)="updateProfile()" class="ui-button-info next-section"
[disabled]="isLoading || isSaving">
</button> </button>
</div> </div>
</div> </div>
......
...@@ -49,6 +49,29 @@ ...@@ -49,6 +49,29 @@
} }
} }
label.with-help-text {
position: relative;
.help-text {
width: 16px;
height: 16px;
font-weight: bold;
color: $white;
background: $primaryColor;
border-radius: 50%;
display: flex;
position: absolute;
right: -25px;
top: 2px;
justify-content: center;
padding: 1px;
cursor: pointer;
}
}
@media only screen and (max-width: 768px) { @media only screen and (max-width: 768px) {
......
...@@ -26,3 +26,8 @@ ...@@ -26,3 +26,8 @@
@import "primeng/upload"; @import "primeng/upload";
} }
.ui-tooltip.t-w300 {
min-width: 300px !important;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment