Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
24 changed files
with
414 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -8,4 +8,17 @@ | ||
.input { | ||
width: 100%; | ||
} | ||
.debit-card,.credit-card{ | ||
|
||
display: inline-block; | ||
|
||
width: 395px; | ||
|
||
|
||
|
||
} | ||
|
||
.button{ | ||
margin-left: 260px; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
<div class="my-div mat-elevation-z2"> | ||
<h3 class="heading">General Ledger</h3> | ||
<div class="main-div mat-elevation-z2"> | ||
<h3 class="heading">Add transaction Type</h3> | ||
<mat-divider></mat-divider> | ||
<br/> | ||
<span>Transaction Type</span> | ||
|
||
<form class="fineract-form"> | ||
<mat-form-field> | ||
<input matInput placeholder="Code"> | ||
</mat-form-field> | ||
|
||
<br/> | ||
<mat-form-field> | ||
<input matInput placeholder="Name"> | ||
</mat-form-field> | ||
|
||
<br/> | ||
<mat-form-field> | ||
<textarea matInput placeholder="Description(optional)"></textarea> | ||
</mat-form-field> | ||
|
||
<button mat-raise-button>Submit</button> | ||
<button mat-raise-button>Cancel</button> | ||
</form> | ||
<div> | ||
<button mat-raised-button class="button1" color="primary">Submit</button> | ||
<button mat-raised-button class="button2" color="warn">Cancel</button> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.fineract-form { | ||
min-width: 150px; | ||
max-width: 500px; | ||
width: 100%; | ||
} | ||
.button1{ | ||
margin-left: 50%; | ||
|
||
} | ||
.button1, .button2{ | ||
width:20px; | ||
display: inline-block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<div class="main-div mat-elevation-z2"> | ||
<h3 class="heading">Transaction Types</h3> | ||
<mat-divider></mat-divider> | ||
<div class="fineract-button"> | ||
<a mat-raised-button color="primary" [routerLink]="['/navbar/managereport/create']"> | ||
<mat-icon>add</mat-icon>Add Transaction Type</a> | ||
</div> | ||
<mat-form-field> | ||
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter by name/code"> | ||
</mat-form-field> | ||
|
||
<br> | ||
<mat-divider></mat-divider> | ||
|
||
<mat-table #table [dataSource]="dataSource"> | ||
|
||
<!-- Position Column --> | ||
<ng-container matColumnDef="code"> | ||
<mat-header-cell *matHeaderCellDef>Code</mat-header-cell> | ||
<mat-cell *matCellDef="let element"> | ||
<a routerLink="{{element.code}}">{{element.code}}</a> | ||
</mat-cell> | ||
</ng-container> | ||
|
||
<!-- Name Column --> | ||
<ng-container matColumnDef="name"> | ||
<mat-header-cell *matHeaderCellDef>Name</mat-header-cell> | ||
<mat-cell *matCellDef="let element"> {{element.name}} </mat-cell> | ||
</ng-container> | ||
|
||
<ng-container matColumnDef="description"> | ||
<mat-header-cell *matHeaderCellDef>Description</mat-header-cell> | ||
<mat-cell *matCellDef="let element"> {{element.description}} </mat-cell> | ||
</ng-container> | ||
|
||
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row> | ||
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row> | ||
</mat-table> | ||
|
||
|
||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.my-div{ | ||
margin-left: 2%; | ||
margin-right:2%; | ||
border-radius: 5px 5px 5px 5px; | ||
background-color: #e6e6ff; | ||
min-height: 100%; | ||
|
||
} | ||
table { | ||
width: 100%; | ||
} | ||
|
||
.mat-form-field { | ||
font-size: 14px; | ||
width: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { TransactionTypeComponent } from './transaction-type.component'; | ||
|
||
describe('TransactionTypeComponent', () => { | ||
let component: TransactionTypeComponent; | ||
let fixture: ComponentFixture<TransactionTypeComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ TransactionTypeComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(TransactionTypeComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import {MatTableDataSource} from '@angular/material'; | ||
|
||
@Component({ | ||
selector: 'app-transaction-type', | ||
templateUrl: './transaction-type.component.html', | ||
styleUrls: ['./transaction-type.component.scss'] | ||
}) | ||
export class TransactionTypeComponent implements OnInit { | ||
displayedColumns = ['code','name','description']; | ||
dataSource = new MatTableDataSource(ELEMENT_DATA); | ||
|
||
applyFilter(filterValue: string) { | ||
filterValue = filterValue.trim(); // Remove whitespace | ||
filterValue = filterValue.toLowerCase(); // MatTableDataSource defaults to lowercase matches | ||
this.dataSource.filter = filterValue; | ||
} | ||
|
||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} | ||
export interface Element { | ||
code: string; | ||
name: string; | ||
description: string; | ||
|
||
} | ||
|
||
const ELEMENT_DATA: Element[] = [ | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.