Commit 067d4d4a by Muhammad Usman

work history ui updates

parent c4b83938
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<div class="col-md-4" *ngIf="experience.Employer"> <div class="col-md-4" *ngIf="experience.Employer">
<div class="row"> <div class="row">
<div class="col-md-6 form-group"> <div class="col-md-6 form-group">
<label>Start</label> <label>Start month</label>
<app-form-control> <app-form-control>
<p-calendar [maxDate]="experience.EndMonthField" placeholder="MM/YYYY" dateFormat="mm/yy" view="month" [icon]="true" [(ngModel)]="experience.StartMonthField" required name="StartMonth{{i}}"> <p-calendar [maxDate]="experience.EndMonthField" placeholder="MM/YYYY" dateFormat="mm/yy" view="month" [icon]="true" [(ngModel)]="experience.StartMonthField" required name="StartMonth{{i}}">
</p-calendar> </p-calendar>
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</div> </div>
<div class="col-md-6 form-group" *ngIf="!experience.StillInRole"> <div class="col-md-6 form-group" *ngIf="!experience.StillInRole">
<label>End</label> <label>End month</label>
<app-form-control> <app-form-control>
<p-calendar [minDate]="experience.StartMonthField" placeholder="MM/YYYY" dateFormat="mm/yy" view="month" [icon]="true" [(ngModel)]="experience.EndMonthField" required name="EndMonth{{i}}"> <p-calendar [minDate]="experience.StartMonthField" placeholder="MM/YYYY" dateFormat="mm/yy" view="month" [icon]="true" [(ngModel)]="experience.EndMonthField" required name="EndMonth{{i}}">
</p-calendar> </p-calendar>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div class="row mt-3"> <div class="row mt-3">
<div class="col-md-6 form-group"> <div class="col-md-6 form-group">
<label>Job Title</label> <label>Job Title</label>
<app-form-control> <app-form-control>`
<input type="text" class="form-control" placeholder="Enter job title" required name="JobTitle" <input type="text" class="form-control" placeholder="Enter job title" required name="JobTitle"
[(ngModel)]="applicantJob.JobTitle"> [(ngModel)]="applicantJob.JobTitle">
</app-form-control> </app-form-control>
......
import { Component, OnInit, ViewChild } from '@angular/core'; import { Component, OnInit, ViewChild } from '@angular/core';
import { BaseComponent } from '../../base/base.component'; import { BaseComponent } from '../../../base/base.component';
import { ApplicantJobModel } from '../../models/applicant-job.model'; import { ApplicantJobModel } from '../../../models/applicant-job.model';
import { JobService } from '../../services/job.service'; import { JobService } from '../../../services/job.service';
import { takeUntil } from 'rxjs/operators'; import { takeUntil } from 'rxjs/operators';
import { UtilsService } from '../../../oneit/services/utils.service'; import { UtilsService } from '../../../../oneit/services/utils.service';
import { ActivatedRoute, Router } from '@angular/router'; import { ActivatedRoute, Router } from '@angular/router';
import { NgForm } from '@angular/forms'; import { NgForm } from '@angular/forms';
import { HelperService } from '../../services/helper.service'; import { HelperService } from '../../../services/helper.service';
import { ToasterService } from '../../services/toaster.service'; import { ToasterService } from '../../../services/toaster.service';
@Component({ @Component({
selector: 'app-job', selector: 'app-job',
templateUrl: './job.component.html', templateUrl: './job-details.component.html',
styleUrls: ['./job.component.scss'] styleUrls: ['./job-details.component.scss']
}) })
export class JobComponent extends BaseComponent implements OnInit { export class JobDetailsComponent extends BaseComponent implements OnInit {
applicantJob: ApplicantJobModel = new ApplicantJobModel(); applicantJob: ApplicantJobModel = new ApplicantJobModel();
applicantJobId; applicantJobId;
......
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-job-profile',
templateUrl: './job-profile.component.html',
styleUrls: ['./job-profile.component.scss']
})
export class JobProfileComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
...@@ -3,8 +3,9 @@ import { CommonModule } from '@angular/common'; ...@@ -3,8 +3,9 @@ import { CommonModule } from '@angular/common';
import { JobsRouting } from './jobs.routing'; import { JobsRouting } from './jobs.routing';
import { JobsComponent } from './jobs/jobs.component'; import { JobsComponent } from './jobs/jobs.component';
import { JobComponent } from './job/job.component';
import { McSharedModule } from '../mc-shared/mc-shared.module'; import { McSharedModule } from '../mc-shared/mc-shared.module';
import { JobDetailsComponent } from './job/job-details/job-details.component';
import { JobProfileComponent } from './job/job-profile/job-profile.component';
@NgModule({ @NgModule({
imports: [ imports: [
...@@ -14,7 +15,8 @@ import { McSharedModule } from '../mc-shared/mc-shared.module'; ...@@ -14,7 +15,8 @@ import { McSharedModule } from '../mc-shared/mc-shared.module';
], ],
declarations: [ declarations: [
JobsComponent, JobsComponent,
JobComponent JobDetailsComponent,
JobProfileComponent
] ]
}) })
export class JobsModule { export class JobsModule {
......
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router'; import { Routes, RouterModule } from '@angular/router';
import { JobsComponent } from './jobs/jobs.component'; import { JobsComponent } from './jobs/jobs.component';
import { JobComponent } from './job/job.component'; import { JobDetailsComponent } from './job/job-details/job-details.component';
const routes: Routes = [ const routes: Routes = [
{ {
...@@ -10,11 +10,11 @@ const routes: Routes = [ ...@@ -10,11 +10,11 @@ const routes: Routes = [
}, },
{ {
path: 'new', path: 'new',
component: JobComponent component: JobDetailsComponent
}, },
{ {
path: ':id', path: ':id',
component: JobComponent component: JobDetailsComponent
} }
]; ];
......
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