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,14 +1,16 @@
<div class="container m-b-20" fxLayout="row" fxLayoutAlign="end" fxLayoutGap="20px">
<button mat-raised-button color="primary" [routerLink]="['/accounting/provisioning-entries/create']">
<mat-icon>add</mat-icon>&nbsp;&nbsp;Create Provisioning Entry
<button mat-raised-button color="primary" [routerLink]="['create']">
<fa-icon icon="plus"></fa-icon>&nbsp;&nbsp;
Create Provisioning Entry
</button>
</div>
<div class="container">
<div fxLayout="row" fxLayoutGap="20px">
<div fxLayout="row">
<mat-form-field fxFlex>
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
<mat-label>Filter</mat-label>
<input matInput (keyup)="applyFilter($event.target.value)">
</mat-form-field>
</div>
@@ -36,9 +38,8 @@
<ng-container matColumnDef="viewReport">
<th mat-header-cell *matHeaderCellDef> View Report </th>
<td mat-cell *matCellDef="let provisioningEntry">
<button mat-button (click)="viewReport($event, provisioningEntry.id)" [disabled]="true" color="primary">
<!-- Tenant Customizable -->
<mat-icon>remove_red_eye</mat-icon>&nbsp;&nbsp;View
<button mat-button color="primary" [routerLink]="['view', provisioningEntry.id]">
<fa-icon icon="eye"></fa-icon>&nbsp;&nbsp;View
</button>
</td>
</ng-container>
@@ -47,7 +48,7 @@
<th mat-header-cell *matHeaderCellDef> Recreate Provisioning </th>
<td mat-cell *matCellDef="let provisioningEntry">
<button mat-button (click)="recreateProvisioning($event, provisioningEntry.id)" [disabled]="provisioningEntry.journalEntry" color="primary">
<mat-icon>edit</mat-icon>&nbsp;&nbsp;Recreate
<fa-icon icon="edit"></fa-icon>&nbsp;&nbsp;Recreate
</button>
</td>
</ng-container>
@@ -56,13 +57,13 @@
<th mat-header-cell *matHeaderCellDef> View Journal Entry </th>
<td mat-cell *matCellDef="let provisioningEntry">
<button mat-button (click)="viewJournalEntry($event, provisioningEntry.id)" [disabled]="!provisioningEntry.journalEntry" color="primary">
<mat-icon>remove_red_eye</mat-icon>&nbsp;&nbsp;View
<fa-icon icon="eye"></fa-icon>&nbsp;&nbsp;View
</button>
</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;" [routerLink]="['/accounting/provisioning-entries/view', row.id]"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table>