@@ -0,0 +1,47 @@
|
||||
<mat-card-header fxLayout="row" fxLayoutGap="5%" class="header">
|
||||
<fa-icon class="main-icon" icon="building" size="3x"></fa-icon>
|
||||
<mat-card-title-group>
|
||||
<div class="mat-typography">
|
||||
<mat-card-title>
|
||||
<h2>
|
||||
{{ officeData.name }}
|
||||
</h2>
|
||||
</mat-card-title>
|
||||
<mat-card-subtitle>
|
||||
<p>
|
||||
{{ officeData.externalId ? 'External ID: ' + officeData.externalId : '' }}
|
||||
</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">
|
||||
Opened On
|
||||
</div>
|
||||
|
||||
<div fxFlex="50%">
|
||||
{{ officeData.openingDate | date }}
|
||||
</div>
|
||||
|
||||
<div fxFlex="50%" class="mat-body-strong" *ngIf="officeData.parentName">
|
||||
Parent officeData
|
||||
</div>
|
||||
|
||||
<div fxFlex="50%" *ngIf="officeData.parentName">
|
||||
{{ officeData.parentName }}
|
||||
</div>
|
||||
|
||||
<div fxFlex="50%" class="mat-body-strong">
|
||||
Number of Staff
|
||||
</div>
|
||||
|
||||
<div fxFlex="50%">
|
||||
{{ employeeData ? employeeData.length : '' }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</mat-card-content>
|
||||
@@ -0,0 +1,14 @@
|
||||
h2 {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.content {
|
||||
div {
|
||||
margin: 1rem 0;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
}
|
||||
|
||||
.main-icon {
|
||||
margin: 7px 0 0 0;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { OfficeNavigationComponent } from './office-navigation.component';
|
||||
|
||||
describe('OfficeNavigationComponent', () => {
|
||||
let component: OfficeNavigationComponent;
|
||||
let fixture: ComponentFixture<OfficeNavigationComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ OfficeNavigationComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(OfficeNavigationComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,20 @@
|
||||
|
||||
/** Angular Imports */
|
||||
import { Component, OnInit, Input } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'mifosx-office-navigation',
|
||||
templateUrl: './office-navigation.component.html',
|
||||
styleUrls: ['./office-navigation.component.scss']
|
||||
})
|
||||
export class OfficeNavigationComponent implements OnInit {
|
||||
|
||||
@Input() officeData: any;
|
||||
@Input() employeeData: any;
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user