Commit 9af740e7 by Muhammad Usman

templates carousel ui issues, job create view

parent 35f6d6d0
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
.template-img-wrapper { .template-img-wrapper {
.template-img { .template-img {
height: auto !important; height: auto !important;
min-height: 300px; min-height: 56vh;
} }
} }
} }
......
<p> <div class="mc-page">
job works!
</p> <div class="mc-page-header">
<div class="mc-page-header-logo">
<img src="assets/my-career-web/images/MATCHD_LOGO.jpg" alt="">
</div>
</div>
<div class="mc-page-body container">
<div class="mc-card">
<app-overlay [isActive]="isLoading"></app-overlay>
<div class="mc-page-body-heading">{{isEditMode ? 'Update' : 'Enter'}} Job Details </div>
<div class="row">
<div class="col-md-6 form-group">
<label>Job Title</label>
<app-form-control>
<input type="text" class="form-control" placeholder="Enter job title" required name="JobTitle"
[(ngModel)]="applicantJob.JobTitle">
</app-form-control>
</div>
<div class="col-md-6 form-group">
<label>Employer</label>
<app-form-control>
<input type="text" class="form-control" placeholder="Enter Employer" required name="Employer"
[(ngModel)]="applicantJob.Employer">
</app-form-control>
</div>
<div class="col-md-6 form-group">
<label>Contact Name</label>
<app-form-control>
<input type="text" class="form-control" placeholder="Enter contact name" required name="ContactName"
[(ngModel)]="applicantJob.ContactName">
</app-form-control>
</div>
<div class="col-md-6 form-group">
<label>Where was Job Posted?</label>
<app-form-control>
<p-dropdown placeholder="Select job post location" [options]="jobPostLocations"
[dropdownIcon]="isLoadingJobLocations ? 'pi pi-spin pi-spinner' : 'pi pi-chevron-down'"
optionLabel="Description" name="JobPostedLocation" dataKey="Value"
[(ngModel)]="applicantJob.JobPostedLocation">
</p-dropdown>
</app-form-control>
</div>
</div>
</div>
</div>
</div>
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { BaseComponent } from '../../base/base.component';
import { ApplicantJobModel } from '../../models/applicant-job.model';
import { JobService } from '../../services/job.service';
import { takeUntil } from 'rxjs/operators';
import { UtilsService } from '../../../oneit/services/utils.service';
@Component({ @Component({
selector: 'app-job', selector: 'app-job',
templateUrl: './job.component.html', templateUrl: './job.component.html',
styleUrls: ['./job.component.scss'] styleUrls: ['./job.component.scss']
}) })
export class JobComponent implements OnInit { export class JobComponent extends BaseComponent implements OnInit {
constructor() { } applicantJob: ApplicantJobModel = new ApplicantJobModel();
isLoadingJobLocations = false;
jobPostLocations = [];
constructor(
private jobService: JobService,
private utilsService: UtilsService
) {
super();
}
ngOnInit() { ngOnInit() {
this.getJobPostLocations();
}
getJobPostLocations(): void {
this.isLoadingJobLocations = true;
this.jobService.getJobPostedLocation()
.pipe(takeUntil(this.componentInView))
.subscribe(response => {
this.isLoadingJobLocations = false;
this.jobPostLocations = response;
}, err => {
this.isLoadingJobLocations = false;
this.utilsService.handleError(err);
})
} }
} }
...@@ -5,6 +5,8 @@ export class ApplicantJobModel extends BaseModel { ...@@ -5,6 +5,8 @@ export class ApplicantJobModel extends BaseModel {
ObjectClass = CLASSES.Job; ObjectClass = CLASSES.Job;
JobTitle: string; JobTitle: string;
Employer: string; Employer: string;
ContactName: string;
ApplicantJobStatus: string; ApplicantJobStatus: string;
JobPostedLocation: any;
JobStatus: any; JobStatus: any;
} }
...@@ -29,4 +29,9 @@ export class JobService { ...@@ -29,4 +29,9 @@ export class JobService {
} }
getJobPostedLocation(): Observable<any> {
return this.enumService.getEnums('JobPostedLocations', true);
}
} }
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
.ui-carousel-viewport { .ui-carousel-viewport {
width: 75%; width: 75%;
max-height: 90vh; max-height: 90vh;
overflow: auto !important;
} }
.ui-carousel-item { .ui-carousel-item {
...@@ -87,3 +88,12 @@ ...@@ -87,3 +88,12 @@
} }
} }
} }
.pi-arrow-circle-right:before {
content: 'chevron_right' !important;
}
.pi-arrow-circle-left:before {
content: 'chevron_right' !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