From 8a6460d587ac0bf0747212352c23d2e53aa3d458 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 2 Mar 2021 17:54:17 -0500 Subject: [PATCH] LP#1904244: consolidate claiming administration into single page This patch consolidates the following acquisitions administration interfaces into a single tabbed page for managing claiming policies: - Claim Policies - Claim Policy Actions - Claim Types - Claim Event Types Signed-off-by: Galen Charlton Signed-off-by: Ruth Frasur Signed-off-by: Bill Erickson --- .../admin/acq/admin-acq-splash.component.html | 10 ++---- .../src/app/staff/admin/acq/admin-acq.module.ts | 4 ++- .../staff/admin/acq/claiming-admin.component.html | 40 ++++++++++++++++++++++ .../staff/admin/acq/claiming-admin.component.ts | 10 ++++++ .../eg2/src/app/staff/admin/acq/routing.module.ts | 16 +++++++++ 5 files changed, 71 insertions(+), 9 deletions(-) create mode 100644 Open-ILS/src/eg2/src/app/staff/admin/acq/claiming-admin.component.html create mode 100644 Open-ILS/src/eg2/src/app/staff/admin/acq/claiming-admin.component.ts 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 c0f8961313..3efdf6ce35 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 @@ -7,14 +7,8 @@ - - - - + + + + + + +
diff --git a/Open-ILS/src/eg2/src/app/staff/admin/acq/claiming-admin.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/acq/claiming-admin.component.ts new file mode 100644 index 0000000000..92b9a86a7c --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/admin/acq/claiming-admin.component.ts @@ -0,0 +1,10 @@ +import {Component, OnInit, Input, ViewChild} from '@angular/core'; + +@Component({ + templateUrl: './claiming-admin.component.html' +}) +export class ClaimingAdminComponent implements OnInit { + + ngOnInit() { + } +} 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 013fb824f0..ff1a05adf2 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 @@ -2,6 +2,7 @@ import {NgModule} from '@angular/core'; import {RouterModule, Routes} from '@angular/router'; import {AdminAcqSplashComponent} from './admin-acq-splash.component'; import {BasicAdminPageComponent} from '@eg/staff/admin/basic-admin-page.component'; +import {ClaimingAdminComponent} from './claiming-admin.component'; const routes: Routes = [{ path: 'splash', @@ -16,6 +17,21 @@ const routes: Routes = [{ readonlyFields: 'last_activity' }] }, { + path: 'claiming', + component: ClaimingAdminComponent +}, { + path: 'claim_event_type', + redirectTo: 'claiming' // from legacy auto-generated admin page +}, { + path: 'claim_policy', + redirectTo: 'claiming' // from legacy auto-generated admin page +}, { + path: 'claim_policy_action', + redirectTo: 'claiming' // from legacy auto-generated admin page +}, { + path: 'claim_type', + redirectTo: 'claiming' // from legacy auto-generated admin page +}, { path: ':table', component: BasicAdminPageComponent, // All ACQ admin pages cover data in the acq.* schema. No need to -- 2.11.0