From: Galen Charlton Date: Wed, 3 Mar 2021 23:25:40 +0000 (-0500) Subject: LP#XXX: (funds) start work on Angular funds interface X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=09e0ea2640e40f151b949f570fbb9edc782e5792;p=working%2FEvergreen.git LP#XXX: (funds) start work on Angular funds interface Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/admin/acq/admin-acq-splash.component.html b/Open-ILS/src/eg2/src/app/staff/admin/acq/admin-acq-splash.component.html index 3efdf6ce35..600539a3c6 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/acq/admin-acq-splash.component.html +++ b/Open-ILS/src/eg2/src/app/staff/admin/acq/admin-acq-splash.component.html @@ -37,7 +37,8 @@ - + + + + + + +
diff --git a/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds.component.ts new file mode 100644 index 0000000000..1462b3630f --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds.component.ts @@ -0,0 +1,10 @@ +import {Component, OnInit, Input, ViewChild} from '@angular/core'; + +@Component({ + templateUrl: './funds.component.html' +}) +export class FundsComponent implements OnInit { + + ngOnInit() { + } +} diff --git a/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds.module.ts b/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds.module.ts new file mode 100644 index 0000000000..e7f01f4299 --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds.module.ts @@ -0,0 +1,23 @@ +import {NgModule} from '@angular/core'; +import {StaffCommonModule} from '@eg/staff/common.module'; +import {AdminCommonModule} from '@eg/staff/admin/common.module'; +import {FundsComponent} from './funds.component'; +import {FundsRoutingModule} from './routing.module'; + +@NgModule({ + declarations: [ + FundsComponent + ], + imports: [ + StaffCommonModule, + AdminCommonModule, + FundsRoutingModule + ], + exports: [ + ], + providers: [ + ] +}) + +export class FundsModule { +} diff --git a/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/routing.module.ts b/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/routing.module.ts new file mode 100644 index 0000000000..e2ab968769 --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/routing.module.ts @@ -0,0 +1,15 @@ +import {NgModule} from '@angular/core'; +import {RouterModule, Routes} from '@angular/router'; +import {FundsComponent} from './funds.component'; + +const routes: Routes = [{ + path: '', + component: FundsComponent +}]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) + +export class FundsRoutingModule {} diff --git a/Open-ILS/src/eg2/src/app/staff/admin/acq/routing.module.ts b/Open-ILS/src/eg2/src/app/staff/admin/acq/routing.module.ts index ff1a05adf2..00d83a4d45 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/acq/routing.module.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/acq/routing.module.ts @@ -32,6 +32,37 @@ const routes: Routes = [{ path: 'claim_type', redirectTo: 'claiming' // from legacy auto-generated admin page }, { + path: 'funds', + loadChildren: () => + import('./funds/funds.module').then(m => m.FundsModule) +}, { + path: 'fund', + redirectTo: 'funds' // from auto-generated admin page +}, { + path: 'fund_allocation', + redirectTo: 'funds' // from auto-generated admin page +}, { + path: 'fund_allocation_percent', + redirectTo: 'funds' // from auto-generated admin page +}, { + path: 'fund_debit', + redirectTo: 'funds' // from auto-generated admin page +}, { + path: 'funding_source', + redirectTo: 'funds' // from auto-generated admin page +}, { + path: 'funding_source_credit', + redirectTo: 'funds' // from auto-generated admin page +}, { + path: 'fund_tag', + redirectTo: 'funds' // from auto-generated admin page +}, { + path: 'fund_tag_map', + redirectTo: 'funds' // from auto-generated admin page +}, { + path: 'fund_transfer', + redirectTo: 'funds' // from auto-generated admin page +}, { path: ':table', component: BasicAdminPageComponent, // All ACQ admin pages cover data in the acq.* schema. No need to