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:
@@ -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> Create Provisioning Entry
|
||||
<button mat-raised-button color="primary" [routerLink]="['create']">
|
||||
<fa-icon icon="plus"></fa-icon>
|
||||
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> View
|
||||
<button mat-button color="primary" [routerLink]="['view', provisioningEntry.id]">
|
||||
<fa-icon icon="eye"></fa-icon> 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> Recreate
|
||||
<fa-icon icon="edit"></fa-icon> 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> View
|
||||
<fa-icon icon="eye"></fa-icon> 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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user