113 lines
4.4 KiB
HTML
113 lines
4.4 KiB
HTML
<!--
|
|
Copyright since 2025 Mifos Initiative
|
|
|
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
-->
|
|
|
|
<div class="tab-container mat-typography">
|
|
<div class="content-container">
|
|
<h2>{{ 'labels.heading.GSIM Account Overview' | translate }}</h2>
|
|
|
|
<table mat-table [dataSource]="dataSource">
|
|
<ng-container matColumnDef="clientDetails">
|
|
<th mat-header-cell *matHeaderCellDef>
|
|
{{ 'labels.inputs.Client' | translate }} {{ 'labels.inputs.Details' | translate }}
|
|
</th>
|
|
<td mat-cell *matCellDef="let element">
|
|
{{ element.displayName }}
|
|
</td>
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="savingsAccount">
|
|
<th mat-header-cell *matHeaderCellDef>{{ 'labels.inputs.Saving Account' | translate }}</th>
|
|
<td mat-cell *matCellDef="let element">
|
|
<i class="fa fa-stop" [ngClass]="element.status.code | statusLookup" [matTooltip]="element.status.value"></i>
|
|
{{ element.accountNo }}
|
|
</td>
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="products">
|
|
<th mat-header-cell *matHeaderCellDef>{{ 'labels.menus.Products' | translate }}</th>
|
|
<td mat-cell *matCellDef="let element">{{ element.productName }}</td>
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="balance">
|
|
<th mat-header-cell *matHeaderCellDef>{{ 'labels.inputs.Balance' | translate }}</th>
|
|
<td mat-cell *matCellDef="let element"></td>
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="Actions">
|
|
<th mat-header-cell *matHeaderCellDef>{{ 'labels.inputs.Actions' | translate }}</th>
|
|
<td mat-cell *matCellDef="let element">
|
|
@if (element.status.active) {
|
|
<button
|
|
class="account-action-button"
|
|
mat-raised-button
|
|
color="primary"
|
|
(click)="routeEdit($event)"
|
|
[routerLink]="['../', 'savings-accounts', element.id, 'actions', 'Deposit']"
|
|
>
|
|
<i class="fa fa-arrow-up" matTooltip="{{ 'tooltips.Deposit' | translate }}"></i>
|
|
</button>
|
|
}
|
|
@if (element.status.active) {
|
|
<button
|
|
class="account-action-button"
|
|
mat-raised-button
|
|
color="primary"
|
|
(click)="routeEdit($event)"
|
|
[routerLink]="['../', 'savings-accounts', element.id, 'actions', 'Withdrawal']"
|
|
>
|
|
<i class="fa fa-arrow-down" matTooltip="{{ 'tooltips.Withdraw' | translate }}"></i>
|
|
</button>
|
|
}
|
|
@if (element.status.submittedAndPendingApproval) {
|
|
<button
|
|
class="account-action-button"
|
|
mat-raised-button
|
|
color="primary"
|
|
(click)="routeEdit($event)"
|
|
[routerLink]="['../../../', 'savings-accounts', element.id, 'actions', 'Approve']"
|
|
>
|
|
<i class="fa fa-check" matTooltip="{{ 'tooltips.Approve' | translate }}"></i>
|
|
</button>
|
|
}
|
|
@if (!element.status.submittedAndPendingApproval && !element.status.active) {
|
|
<button
|
|
class="account-action-button"
|
|
mat-raised-button
|
|
color="primary"
|
|
(click)="routeEdit($event)"
|
|
[routerLink]="['../../../', 'savings-accounts', element.id, 'actions', 'Undo Approval']"
|
|
>
|
|
<i class="fa fa-undo" matTooltip="{{ 'tooltips.Undo Approval' | translate }}"></i>
|
|
</button>
|
|
}
|
|
@if (!element.status.submittedAndPendingApproval && !element.status.active) {
|
|
<button
|
|
class="account-action-button"
|
|
mat-raised-button
|
|
color="primary"
|
|
(click)="routeEdit($event)"
|
|
[routerLink]="['../../', element.id, 'actions', 'Activate']"
|
|
>
|
|
<i class="fa fa-check-circle" matTooltip="{{ 'tooltips.Activate' | translate }}"></i>
|
|
</button>
|
|
}
|
|
</td>
|
|
</ng-container>
|
|
|
|
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
<tr
|
|
mat-row
|
|
[routerLink]="['../../', row.id, 'transactions']"
|
|
*matRowDef="let row; columns: displayedColumns"
|
|
></tr>
|
|
</table>
|
|
|
|
<mat-paginator [pageSizeOptions]="[10, 20, 25]" showFirstLastButtons></mat-paginator>
|
|
</div>
|
|
</div>
|