Jibs details

This commit is contained in:
CHIEFSOFT\ameye
2023-12-05 09:33:47 -05:00
parent adcc52ecdb
commit 9efe591311
13 changed files with 168 additions and 21 deletions
@@ -0,0 +1,21 @@
<div style="padding: 13px; width: 100%;" class="job-detail">
<ion-label class="head_text">{{jobData.offer_code}}</ion-label>
<div class="mentor">
<div class="left">
<div class="bg_image men_image" [style.backgroundImage]="'url('+session_image_server+'/'+curr_session+'/job/'+jobData.job_uid+')'"></div>
<div style="margin-left: 10px;">
<ion-label class="bold" style="color: red;">Expires</ion-label>
<ion-label class="grey">{{jobData.delivery_date |date}}</ion-label>
</div>
</div>
<!-- <ion-icon name="chatbubble-ellipses-outline" color="primary"></ion-icon>-->
</div>
<ion-label class="head_text">Description</ion-label>
<ion-label class="description">{{jobData.job_description}}
</ion-label>
<ion-label class="head_text">Delivery Details</ion-label>
<ion-label class="description">{{jobData.description}}
</ion-label>
</div>
@@ -0,0 +1,50 @@
.job-detail {
background-color: #f2f6fa;
border-radius: 10px;
margin-top: 10px;
.head_text {
font-size: 16px;
font-family: 'semi-bold';
margin-bottom: 10px;
}
.mentor {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
.left {
display: flex;
font-size: 14px;
.men_image {
height: 50px;
width: 50px;
border-radius: 100%;
}
.bold {
font-family: 'semi-bold';
}
.grey {
color: grey;
font-size: 14px;
}
}
ion-icon {
font-size: 25px;
}
}
.description {
color: grey;
margin-bottom: 5px;
margin-left: 10px;
}
}
@@ -0,0 +1,24 @@
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';
import { JobDetailsComponent } from './job-details.component';
describe('JobDetailsComponent', () => {
let component: JobDetailsComponent;
let fixture: ComponentFixture<JobDetailsComponent>;
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ JobDetailsComponent ],
imports: [IonicModule.forRoot()]
}).compileComponents();
fixture = TestBed.createComponent(JobDetailsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
}));
it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -0,0 +1,28 @@
import {Component, Input, OnInit} from '@angular/core';
import {Router} from "@angular/router";
import {SessionDataProviderService} from "../../store/session-data-provider.service";
@Component({
selector: 'app-job-details',
templateUrl: './job-details.component.html',
styleUrls: ['./job-details.component.scss'],
})
export class JobDetailsComponent implements OnInit {
@Input('jobData') jobData:any;
session_image_server:string='';
curr_session:string='';
constructor(private router: Router, public sessionDataProviderService: SessionDataProviderService) {
// debugger;
//this.jobData = this.router.getCurrentNavigation().extras.state;
// if (this.jobData==undefined){
// return;
// }
}
ngOnInit() {
console.log("jobData => ", this.jobData);
this.session_image_server = this.sessionDataProviderService.session_image_server;
this.curr_session=this.sessionDataProviderService.session;
}
}