From b824b45b0f56f05740dac55fd62e57522cfebf07 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 17 Jul 2019 18:03:31 -0400 Subject: [PATCH] LP1837059 Angular local admin page Links to the following pages now refer to their auto-generated Angular equivalent: actor/address_alert config/barcode_completion actor/copy_alert_suppress asset/copy_location asset/copy_tag permission/grp_penalty_threshold config/hold_matrix_matchpoint config/non_cataloged_type rating/badge Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- .../local/admin-local-splash.component.html | 69 +++++++++++++++++++ .../local/admin-local-splash.component.ts | 10 +++ .../staff/admin/local/admin-local.module.ts | 26 +++++++ .../app/staff/admin/local/routing.module.ts | 23 +++++++ .../eg2/src/app/staff/admin/routing.module.ts | 3 + .../src/eg2/src/app/staff/nav.component.html | 2 +- Open-ILS/src/templates/staff/navbar.tt2 | 2 +- 7 files changed, 133 insertions(+), 2 deletions(-) create mode 100644 Open-ILS/src/eg2/src/app/staff/admin/local/admin-local-splash.component.html create mode 100644 Open-ILS/src/eg2/src/app/staff/admin/local/admin-local-splash.component.ts create mode 100644 Open-ILS/src/eg2/src/app/staff/admin/local/admin-local.module.ts create mode 100644 Open-ILS/src/eg2/src/app/staff/admin/local/routing.module.ts diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/admin-local-splash.component.html b/Open-ILS/src/eg2/src/app/staff/admin/local/admin-local-splash.component.html new file mode 100644 index 0000000000..edbb68f7ed --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/admin-local-splash.component.html @@ -0,0 +1,69 @@ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/admin-local-splash.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/local/admin-local-splash.component.ts new file mode 100644 index 0000000000..7f071741b1 --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/admin-local-splash.component.ts @@ -0,0 +1,10 @@ +import {Component} from '@angular/core'; + +@Component({ + templateUrl: './admin-local-splash.component.html' +}) + +export class AdminLocalSplashComponent { +} + + diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/admin-local.module.ts b/Open-ILS/src/eg2/src/app/staff/admin/local/admin-local.module.ts new file mode 100644 index 0000000000..a18d3e6de6 --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/admin-local.module.ts @@ -0,0 +1,26 @@ +import {NgModule} from '@angular/core'; +import {TreeModule} from '@eg/share/tree/tree.module'; +import {StaffCommonModule} from '@eg/staff/common.module'; +import {AdminLocalRoutingModule} from './routing.module'; +import {AdminCommonModule} from '@eg/staff/admin/common.module'; +import {AdminLocalSplashComponent} from './admin-local-splash.component'; + +@NgModule({ + declarations: [ + AdminLocalSplashComponent + ], + imports: [ + AdminCommonModule, + AdminLocalRoutingModule, + TreeModule + ], + exports: [ + ], + providers: [ + ] +}) + +export class AdminLocalModule { +} + + diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/routing.module.ts b/Open-ILS/src/eg2/src/app/staff/admin/local/routing.module.ts new file mode 100644 index 0000000000..c46dec9431 --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/routing.module.ts @@ -0,0 +1,23 @@ +import {NgModule} from '@angular/core'; +import {RouterModule, Routes} from '@angular/router'; +import {AdminLocalSplashComponent} from './admin-local-splash.component'; +import {BasicAdminPageComponent} from '@eg/staff/admin/basic-admin-page.component'; + +const routes: Routes = [{ + path: 'splash', + component: AdminLocalSplashComponent +}, { + path: 'config/hold_matrix_matchpoint', + component: BasicAdminPageComponent, + data: [{schema: 'config', table: 'hold_matrix_matchpoint', disableOrgFilter: true}] +}, { + path: ':schema/:table', + component: BasicAdminPageComponent +}]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) + +export class AdminLocalRoutingModule {} diff --git a/Open-ILS/src/eg2/src/app/staff/admin/routing.module.ts b/Open-ILS/src/eg2/src/app/staff/admin/routing.module.ts index 29df72cbf0..a0df70e070 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/routing.module.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/routing.module.ts @@ -9,6 +9,9 @@ const routes: Routes = [{ }, { path: 'server', loadChildren: '@eg/staff/admin/server/admin-server.module#AdminServerModule' + }, { + path: 'local', + loadChildren: '@eg/staff/admin/local/admin-local.module#AdminLocalModule' }, { path: 'acq', loadChildren: '@eg/staff/admin/acq/admin-acq.module#AdminAcqModule' diff --git a/Open-ILS/src/eg2/src/app/staff/nav.component.html b/Open-ILS/src/eg2/src/app/staff/nav.component.html index 99c1a27ff9..3595b3c9be 100644 --- a/Open-ILS/src/eg2/src/app/staff/nav.component.html +++ b/Open-ILS/src/eg2/src/app/staff/nav.component.html @@ -361,7 +361,7 @@ account_balance Server Administration - + landscape Local Administration diff --git a/Open-ILS/src/templates/staff/navbar.tt2 b/Open-ILS/src/templates/staff/navbar.tt2 index 0c325c759f..a9208c8d04 100644 --- a/Open-ILS/src/templates/staff/navbar.tt2 +++ b/Open-ILS/src/templates/staff/navbar.tt2 @@ -494,7 +494,7 @@
  • - + [% l('Local Administration') %] -- 2.43.2