feat: add savings charge form (#726)

Fixes: #250
This commit is contained in:
Abhijeet Singh
2020-06-07 22:57:18 +05:30
committed by GitHub
parent 5d77a9c676
commit 347e84f366
9 changed files with 362 additions and 28 deletions
+38 -24
View File
@@ -7,38 +7,52 @@ import { extract } from '../core/i18n/i18n.service';
/** Custom Components */
import { SavingAccountActionsComponent } from './saving-account-actions/saving-account-actions.component';
import { AddSavingsChargeComponent } from './add-savings-charge/add-savings-charge.component';
/** Custom Resolvers */
import { SavingAccountTransactionTemplateResolver } from './common-resolvers/saving-transaction-template.resolver';
import { SavingsChargeTemplateResolver } from './common-resolvers/savings-charge-template.resolver';
const routes: Routes = [
{
path: '',
data: { title: extract('All Savings'), breadcrumb: 'Savings', routeParamBreadcrumb: false },
// Component to view all saving accounts Comes Here
{
path: '',
data: { title: extract('All Savings'), breadcrumb: 'Savings', routeParamBreadcrumb: false },
// Component to view all saving accounts Comes Here
children: [
{
path: ':savingAccountId',
data: { title: extract('Saving Account View'), routeParamBreadcrumb: 'savingAccountId' },
// Component For Saving Account View Comes Here
children: [
{
path: ':savingAccountId',
data: { title: extract('Saving Account View'), routeParamBreadcrumb: 'savingAccountId' },
// Component For Saving Account View Comes Here
children: [
{
path: ':action',
component: SavingAccountActionsComponent,
data: { title: extract('Saving Account Actions'), routeParamBreadcrumb: 'action' },
resolve: {
savingAccountTransactionTemplate: SavingAccountTransactionTemplateResolver
}
}
]
{
path: 'add-savings-charge',
component: AddSavingsChargeComponent,
data: {
title: extract('Add Savings Charge'),
breadcrumb: 'Add Savings Charge',
routeParamBreadcrumb: false
},
resolve: {
savingsChargeTemplate: SavingsChargeTemplateResolver
}
},
{
path: ':action',
component: SavingAccountActionsComponent,
data: { title: extract('Saving Account Actions'), routeParamBreadcrumb: 'action' },
resolve: {
savingAccountTransactionTemplate: SavingAccountTransactionTemplateResolver
}
}
]
}
}
]
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
declarations: [],
providers: [SavingAccountTransactionTemplateResolver]
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
declarations: [],
providers: [SavingAccountTransactionTemplateResolver, SavingsChargeTemplateResolver]
})
export class SavingsRoutingModule { }
export class SavingsRoutingModule {}