diff --git a/src/app/loan-edit/basicinfo/basicinfo.component.html b/src/app/loan-edit/basicinfo/basicinfo.component.html new file mode 100644 index 0000000..d0f696c --- /dev/null +++ b/src/app/loan-edit/basicinfo/basicinfo.component.html @@ -0,0 +1,79 @@ + +
+ + + + + + Unique transaction + ID from SuperCredit (Auto generated when save, cannot be changed) + Error: the ID is required + + +
+ + + + + + + Error: status is required + + +
+ + + + + + E.g. NAB Bank + Error: Lender is required + + +
+ + + + + + E.g. 8000 + Error: Limit should be between 100 ~ 1,000,000,000 + + +
+ + + + + + + Date Settled + + +
+ + + + + + + +
+ + +
+
diff --git a/src/app/loan-edit/basicinfo/basicinfo.component.scss b/src/app/loan-edit/basicinfo/basicinfo.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/loan-edit/basicinfo/basicinfo.component.spec.ts b/src/app/loan-edit/basicinfo/basicinfo.component.spec.ts new file mode 100644 index 0000000..6c632eb --- /dev/null +++ b/src/app/loan-edit/basicinfo/basicinfo.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { BasicinfoComponent } from './basicinfo.component'; + +describe('BasicinfoComponent', () => { + let component: BasicinfoComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ BasicinfoComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(BasicinfoComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/loan-edit/basicinfo/basicinfo.component.ts b/src/app/loan-edit/basicinfo/basicinfo.component.ts new file mode 100644 index 0000000..11097b5 --- /dev/null +++ b/src/app/loan-edit/basicinfo/basicinfo.component.ts @@ -0,0 +1,52 @@ +import {Component, Input, OnInit} from '@angular/core'; +import {FormGroup} from '@angular/forms'; + +@Component({ + selector: 'app-loan-basic-info', + templateUrl: './basicinfo.component.html', + styleUrls: ['./basicinfo.component.scss'] +}) +export class BasicinfoComponent implements OnInit { + + public minSettlement: Date = new Date(2015, 0, 1); + public maxSettlement: Date = new Date(2030, 4, 31); + + public value = ` +

Rich Text Editing

+ + + + + +
+
    +
  1. Text formatting
  2. +
  3. Bulleted and numbered lists
  4. +
  5. Hyperlinks
  6. +
  7. Cross-browser support
  8. +
  9. Identical HTML output across browsers
  10. +
+
+ +
+ click for more details +
+ `; + + constructor() { } + + ngOnInit(): void { + } + + public listLoanStatus: Array<{text: string, value: string}> = [ + {text: '1 - Processing:   Just received from Client', value: 'Processing'} , + {text: '2 - Valuation :   Valuating From Bank', value: 'Valuation'}, + {text: '3 - Application in Progress:   Application Submitted', value: 'Application in Progress'}, + {text: '4 - Approved :   Approved by lender', value: 'Approved' }, + {text: '5 - Settled :   Settlement date finalized.', value: 'Settled'}, + {text: '6 - Finished :   Fully paid, terminated, or switched)', value: 'Finished'}, + ]; + + @Input() public basicInfo: FormGroup; +} diff --git a/src/app/loan-edit/people-reward/people-reward.component.html b/src/app/loan-edit/people-reward/people-reward.component.html new file mode 100644 index 0000000..3bf05a2 --- /dev/null +++ b/src/app/loan-edit/people-reward/people-reward.component.html @@ -0,0 +1 @@ +

people-reward works!

diff --git a/src/app/loan-edit/people-reward/people-reward.component.scss b/src/app/loan-edit/people-reward/people-reward.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/loan-edit/people-reward/people-reward.component.spec.ts b/src/app/loan-edit/people-reward/people-reward.component.spec.ts new file mode 100644 index 0000000..075a79a --- /dev/null +++ b/src/app/loan-edit/people-reward/people-reward.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { PeopleRewardComponent } from './people-reward.component'; + +describe('PeopleRewardComponent', () => { + let component: PeopleRewardComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ PeopleRewardComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(PeopleRewardComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/loan-edit/people-reward/people-reward.component.ts b/src/app/loan-edit/people-reward/people-reward.component.ts new file mode 100644 index 0000000..46acc41 --- /dev/null +++ b/src/app/loan-edit/people-reward/people-reward.component.ts @@ -0,0 +1,16 @@ +import {Component, Input, OnInit} from '@angular/core'; +import {FormGroup} from '@angular/forms'; + +@Component({ + selector: 'app-loan-people-reward', + templateUrl: './people-reward.component.html', + styleUrls: ['./people-reward.component.scss'] +}) +export class PeopleRewardComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + } + @Input() public peopleReward: FormGroup; +} diff --git a/src/app/loan-edit/trail-income/trail-income.component.html b/src/app/loan-edit/trail-income/trail-income.component.html new file mode 100644 index 0000000..3ff51ff --- /dev/null +++ b/src/app/loan-edit/trail-income/trail-income.component.html @@ -0,0 +1 @@ +

trail-income works!

diff --git a/src/app/loan-edit/trail-income/trail-income.component.scss b/src/app/loan-edit/trail-income/trail-income.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/loan-edit/trail-income/trail-income.component.spec.ts b/src/app/loan-edit/trail-income/trail-income.component.spec.ts new file mode 100644 index 0000000..3477e48 --- /dev/null +++ b/src/app/loan-edit/trail-income/trail-income.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { TrailIncomeComponent } from './trail-income.component'; + +describe('TrailIncomeComponent', () => { + let component: TrailIncomeComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ TrailIncomeComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(TrailIncomeComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/loan-edit/trail-income/trail-income.component.ts b/src/app/loan-edit/trail-income/trail-income.component.ts new file mode 100644 index 0000000..01bb445 --- /dev/null +++ b/src/app/loan-edit/trail-income/trail-income.component.ts @@ -0,0 +1,16 @@ +import {Component, Input, OnInit} from '@angular/core'; +import {FormGroup} from '@angular/forms'; + +@Component({ + selector: 'app-loan-trail-income', + templateUrl: './trail-income.component.html', + styleUrls: ['./trail-income.component.scss'] +}) +export class TrailIncomeComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + } + @Input() public trailIncome: FormGroup; +}