66 lines
2.7 KiB
HTML
66 lines
2.7 KiB
HTML
<div class="container m-b-20" fxLayout="row" fxLayoutAlign="end" fxLayoutGap="20px">
|
|
|
|
<button mat-raised-button color="primary" [routerLink]="['create']" *mifosxHasPermission="'CREATE_CASHIERS_FOR_TELLER'">
|
|
<fa-icon icon="plus"></fa-icon>
|
|
New Cashier
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="container">
|
|
|
|
<div fxLayout="row" fxLayoutGap="20px">
|
|
<mat-form-field fxFlex>
|
|
<mat-label>Filter</mat-label>
|
|
<input matInput (keyup)="applyFilter($event.target.value)">
|
|
</mat-form-field>
|
|
</div>
|
|
|
|
<div class="mat-elevation-z8">
|
|
|
|
<table mat-table [dataSource]="dataSource" matSort>
|
|
|
|
<ng-container matColumnDef="period">
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header> Period </th>
|
|
<td mat-cell *matCellDef="let cashier"> {{ cashier.startDate | dateFormat }} - {{ cashier.endDate | dateFormat }}</td>
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="staffName">
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header> Cashier/Staff </th>
|
|
<td mat-cell *matCellDef="let cashier"> {{ cashier.staffName }} </td>
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="isFullDay">
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header> Full Day/Time </th>
|
|
<td mat-cell *matCellDef="let cashier"> {{ cashier.isFullDay ? 'Yes' : 'No' }} </td>
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="vaultActions">
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header> Vault Actions </th>
|
|
<td mat-cell *matCellDef="let cashier">
|
|
<button class="cashier-action-button" mat-raised-button color="accent" matTooltip="Allocate Cash"
|
|
(click)="routeEdit($event)" [routerLink]="[cashier.id, 'allocate']" *mifosxHasPermission="'ALLOCATECASHIER_TELLER'">
|
|
<i class="fa fa-arrow-up"></i>
|
|
</button>
|
|
<button class="cashier-action-button" mat-raised-button color="warn" matTooltip="Settle Cash"
|
|
(click)="routeEdit($event)" [routerLink]="[cashier.id, 'settle']" *mifosxHasPermission="'SETTLECASHIER_TELLER'">
|
|
<i class="fa fa-arrow-down"></i>
|
|
</button>
|
|
<button class="cashier-action-button" mat-raised-button color="primary" matTooltip="View Transactions"
|
|
(click)="routeEdit($event)" [routerLink]="[cashier.id, 'transactions']" *mifosxHasPermission="'ALLOCATECASHIER_TELLER'">
|
|
<i class="fa fa-eye"></i>
|
|
</button>
|
|
</td>
|
|
</ng-container>
|
|
|
|
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
<tr mat-row *matRowDef="let row; columns: displayedColumns;" class="select-row" [routerLink]="[row.id]"></tr>
|
|
|
|
</table>
|
|
|
|
<mat-paginator [pageSizeOptions]="[10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
|
|
|
|
</div>
|
|
|
|
</div>
|