refractor: accounting module (#300)

* Refractor components.
* Add resolvers.
* Add relative router links.
* Replace mat-icons by font-awesome icons.
* Add comments.

Fixes: #298
This commit is contained in:
Abhay Chawla
2018-08-19 22:49:48 +05:30
committed by GitHub
parent 598f239251
commit 6e552d72eb
114 changed files with 3760 additions and 1432 deletions
@@ -1,5 +1,7 @@
<h1 mat-dialog-title>View Journal Entry</h1>
<div mat-dialog-content>
<table>
<tr>
@@ -102,7 +104,9 @@
</tr>
</table>
</div>
<mat-dialog-actions align="end">
<button mat-button mat-dialog-close>Close</button>
</mat-dialog-actions>
@@ -1,13 +1,16 @@
th {
text-align: left;
font-weight: 500;
}
table {
th {
text-align: left;
font-weight: 500;
padding: 0 0.4rem 0 0;
th, td {
padding: 0 0.4rem 0 0;
}
&.header {
text-align: center;
padding: 0.4rem 0.4rem 0 0;
}
}
.header {
text-align: center;
padding: 0.4rem 0.4rem 0 0;
td {
padding: 0 0.4rem 0 0;
}
}
@@ -1,6 +1,10 @@
/** Angular Imports */
import { Component, OnInit, Inject } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
/**
* View journal entry dialog component.
*/
@Component({
selector: 'mifosx-view-journal-entry',
templateUrl: './view-journal-entry.component.html',
@@ -8,6 +12,10 @@ import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
})
export class ViewJournalEntryComponent implements OnInit {
/**
* @param {MatDialogRef} dialogRef Component reference to dialog.
* @param {any} data Provides journal entry.
*/
constructor(public dialogRef: MatDialogRef<ViewJournalEntryComponent>,
@Inject(MAT_DIALOG_DATA) public data: any) { }