LP#XXX: (funds) start work on Angular funds interface
authorGalen Charlton <gmc@equinoxinitiative.org>
Wed, 3 Mar 2021 23:25:40 +0000 (18:25 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 25 Mar 2021 17:56:26 +0000 (13:56 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/admin/acq/admin-acq-splash.component.html
Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds.component.html [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds.component.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds.module.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/admin/acq/funds/routing.module.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/admin/acq/routing.module.ts

index 3efdf6c..600539a 100644 (file)
@@ -37,7 +37,8 @@
     <!-- TODO fund admin page w/ year filter and rollover -->
     <eg-link-table-link i18n-label label="Funds"
       url="/eg/staff/admin/acq/fund/list"></eg-link-table-link>
-      <!-- routerLink="/staff/admin/acq/fund" -->
+    <eg-link-table-link i18n-label label="Funds (new)"
+      routerLink="/staff/admin/acq/funds"></eg-link-table-link>
     <eg-link-table-link i18n-label label="Invoice Item Types"
       routerLink="/staff/admin/acq/invoice_item_type"></eg-link-table-link>
     <eg-link-table-link i18n-label label="Invoice Payment Method"
diff --git a/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds.component.html b/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds.component.html
new file mode 100644 (file)
index 0000000..edbfd79
--- /dev/null
@@ -0,0 +1,32 @@
+<eg-staff-banner bannerText="Funds" i18n-bannerText>
+</eg-staff-banner>
+
+<eg-title i18n-prefix prefix="Funds"></eg-title>
+
+<ul ngbNav #claimingAdminNav="ngbNav" class="nav-tabs">
+  <li ngbNavItem>
+    <a ngbNavLink i18n>Funds</a>
+    <ng-template ngbNavContent>
+      <div class="mt-2">
+        <eg-admin-page idlClass="acqf"></eg-admin-page>
+       </div>
+    </ng-template>
+  </li>
+  <li ngbNavItem>
+    <a ngbNavLink i18n>Funding Sources</a>
+    <ng-template ngbNavContent>
+      <div class="mt-2">
+        <eg-admin-page idlClass="acqfs"></eg-admin-page>
+       </div>
+    </ng-template>
+  </li>
+  <li ngbNavItem>
+    <a ngbNavLink i18n>Fund Tags</a>
+    <ng-template ngbNavContent>
+      <div class="mt-2">
+        <eg-admin-page idlClass="acqft"></eg-admin-page>
+       </div>
+    </ng-template>
+  </li>
+</ul>
+<div [ngbNavOutlet]="claimingAdminNav"></div>
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 (file)
index 0000000..1462b36
--- /dev/null
@@ -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 (file)
index 0000000..e7f01f4
--- /dev/null
@@ -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 (file)
index 0000000..e2ab968
--- /dev/null
@@ -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 {}
index ff1a05a..00d83a4 100644 (file)
@@ -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