@@ -0,0 +1,58 @@
|
||||
<mat-card-header fxLayout="row" fxLayoutGap="5%" class="header">
|
||||
<fa-icon class="main-icon" icon="user" size="3x"></fa-icon>
|
||||
<mat-card-title-group>
|
||||
<div class="mat-typography">
|
||||
<mat-card-title>
|
||||
<h2>
|
||||
{{ employeeData.displayName }}
|
||||
<span [className]="employeeData.isActive === true ? 'true' : 'false'">
|
||||
<fa-icon matTooltip="{{ employeeData.isActive === true ? 'Active' : 'Inactive' }}" matTooltipPosition="right" icon="circle" size="lg"></fa-icon>
|
||||
</span>
|
||||
</h2>
|
||||
</mat-card-title>
|
||||
<mat-card-subtitle>
|
||||
<p>
|
||||
Associated Office: {{ employeeData.officeName }}
|
||||
</p>
|
||||
</mat-card-subtitle>
|
||||
</div>
|
||||
</mat-card-title-group>
|
||||
</mat-card-header>
|
||||
|
||||
<mat-card-content>
|
||||
<div fxLayout="row wrap" class="content">
|
||||
|
||||
<div fxFlex="50%" class="mat-body-strong">
|
||||
Joined On
|
||||
</div>
|
||||
|
||||
<div fxFlex="50%">
|
||||
{{ employeeData.joiningDate | date }}
|
||||
</div>
|
||||
|
||||
<div fxFlex="50%" class="mat-body-strong">
|
||||
Loan Officer
|
||||
</div>
|
||||
|
||||
<div fxFlex="50%">
|
||||
{{ employeeData.isLoanOfficer ? 'Yes' : 'No' }}
|
||||
</div>
|
||||
|
||||
<div fxFlex="50%" class="mat-body-strong" *ngIf="employeeData.mobileNo">
|
||||
Mobile Number
|
||||
</div>
|
||||
|
||||
<div fxFlex="50%" *ngIf="employeeData.mobileNo">
|
||||
{{ employeeData.mobileNo }}
|
||||
</div>
|
||||
|
||||
<div fxFlex="50%" class="mat-body-strong">
|
||||
Number of Centers
|
||||
</div>
|
||||
|
||||
<div fxFlex="50%">
|
||||
{{ centerData ? centerData.length : '' }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</mat-card-content>
|
||||
@@ -0,0 +1,22 @@
|
||||
.main-icon {
|
||||
margin: 7px 0 0 0;
|
||||
}
|
||||
|
||||
.true {
|
||||
color: #32cd32;
|
||||
}
|
||||
|
||||
.false {
|
||||
color: #f44366;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.content {
|
||||
div {
|
||||
margin: 1rem 0;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { StaffNavigationComponent } from './staff-navigation.component';
|
||||
|
||||
describe('StaffNavigationComponent', () => {
|
||||
let component: StaffNavigationComponent;
|
||||
let fixture: ComponentFixture<StaffNavigationComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ StaffNavigationComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(StaffNavigationComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
/** Angular Imports */
|
||||
import { Component, OnInit, Input } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'mifosx-staff-navigation',
|
||||
templateUrl: './staff-navigation.component.html',
|
||||
styleUrls: ['./staff-navigation.component.scss']
|
||||
})
|
||||
export class StaffNavigationComponent implements OnInit {
|
||||
|
||||
@Input() employeeData: any;
|
||||
@Input() centerData: any;
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user