Matches the backend change that stopped auto-depositing money at activation: removes the opening-balance field from every Activate screen (Savings, Current, FD, RD) since funding now happens as a separate deposit afterward, and removes the Digital-Facility step from every Create wizard since every facility starts disabled by default and gets turned on later through Edit Nominee & Features. Also merges Approve+Activate into a single action for Savings, Current, FD and RD accounts -- one click takes the account straight to Active instead of two separate screens.
121 lines
4.5 KiB
HTML
121 lines
4.5 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="cca-container">
|
|
<!-- Hero -->
|
|
<div class="cca-header">
|
|
<fa-icon icon="university" class="cca-header__icon"></fa-icon>
|
|
<div>
|
|
<h2 class="cca-header__title">Create Current Account</h2>
|
|
<div class="cca-header__sub">Pick a product, confirm currency and review before submit.</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Wizard tabs -->
|
|
<mat-tab-group
|
|
class="cca-tabs"
|
|
animationDuration="200ms"
|
|
[preserveContent]="true"
|
|
[(selectedIndex)]="selectedTabIndex"
|
|
>
|
|
<!-- Tab 1: Product Classification + Details -->
|
|
<mat-tab>
|
|
<ng-template mat-tab-label>
|
|
<fa-icon icon="check-square" class="cca-tab__icon"></fa-icon>
|
|
Product
|
|
</ng-template>
|
|
<div class="cca-tab-body">
|
|
<mifosx-current-account-details-step
|
|
[currentAccountTemplate]="currentAccountTemplate"
|
|
[hideButtons]="true"
|
|
(currentAccountProductTemplate)="setTemplate($event)"
|
|
>
|
|
</mifosx-current-account-details-step>
|
|
|
|
<div class="cca-actions">
|
|
<span class="cca-actions__spacer"></span>
|
|
<button mat-raised-button color="primary" [disabled]="!currentAccountProductTemplate" (click)="next()">
|
|
{{ 'labels.buttons.Next' | translate }}
|
|
<fa-icon icon="arrow-right" class="m-l-10"></fa-icon>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</mat-tab>
|
|
|
|
<!-- Tab 2: Currency -->
|
|
<mat-tab [disabled]="!currentAccountProductTemplate">
|
|
<ng-template mat-tab-label>
|
|
<fa-icon icon="dollar-sign" class="cca-tab__icon"></fa-icon>
|
|
Currency
|
|
</ng-template>
|
|
<div class="cca-tab-body">
|
|
@if (currentAccountProductTemplate) {
|
|
<mifosx-current-account-currency-step
|
|
[currentAccountProductTemplate]="currentAccountProductTemplate"
|
|
[primaryClientId]="currentAccountTemplate?.clientId ?? null"
|
|
[isNonIndividualClient]="currentAccountDetailsStep.isNonIndividualClient"
|
|
></mifosx-current-account-currency-step>
|
|
}
|
|
|
|
<div class="cca-actions">
|
|
<button mat-stroked-button (click)="prev()">
|
|
<fa-icon icon="arrow-left" class="m-r-10"></fa-icon>
|
|
{{ 'labels.buttons.Previous' | translate }}
|
|
</button>
|
|
<span class="cca-actions__spacer"></span>
|
|
<button mat-raised-button color="primary" (click)="next()">
|
|
{{ 'labels.buttons.Next' | translate }}
|
|
<fa-icon icon="arrow-right" class="m-l-10"></fa-icon>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</mat-tab>
|
|
|
|
<!-- Tab 3: Preview -->
|
|
<mat-tab [disabled]="!currentAccountProductTemplate">
|
|
<ng-template mat-tab-label>
|
|
<fa-icon icon="eye" class="cca-tab__icon"></fa-icon>
|
|
{{ 'labels.inputs.PREVIEW' | translate }}
|
|
</ng-template>
|
|
<div class="cca-tab-body">
|
|
@if (currentAccountProductTemplate) {
|
|
<mifosx-current-account-preview-step
|
|
[currentAccountProductTemplate]="currentAccountProductTemplate"
|
|
[currentAccountTemplate]="currentAccountTemplate"
|
|
[currentAccountTermForm]="currentAccountTermForm"
|
|
[currentAccountSettingsForm]="currentAccountSettingsForm"
|
|
[currentAccountTermsForm]="currentAccountTermsForm"
|
|
[currentAccount]="currentAccount"
|
|
[currentAccountDigital]="currentAccountDigital"
|
|
[currentAccountNominees]="currentAccountCurrencyStep?.nominees ?? []"
|
|
[currentAccountCurrencyFlags]="currentAccountCurrencyFlags"
|
|
[hideButtons]="true"
|
|
(submitEvent)="submit()"
|
|
>
|
|
</mifosx-current-account-preview-step>
|
|
}
|
|
|
|
<div class="cca-actions">
|
|
<button mat-stroked-button (click)="prev()">
|
|
<fa-icon icon="arrow-left" class="m-r-10"></fa-icon>
|
|
{{ 'labels.buttons.Previous' | translate }}
|
|
</button>
|
|
<span class="cca-actions__spacer"></span>
|
|
<button mat-stroked-button [routerLink]="['../..']">
|
|
{{ 'labels.buttons.Cancel' | translate }}
|
|
</button>
|
|
<button mat-raised-button color="primary" class="preview-submit-row__primary" (click)="submit()">
|
|
<fa-icon icon="check" class="m-r-10"></fa-icon>
|
|
{{ 'labels.buttons.Submit' | translate }}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</mat-tab>
|
|
</mat-tab-group>
|
|
</div>
|