From afa8572b6b79245f13f9cfb615e66312b05b4c4a Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 16 Apr 2019 16:22:39 -0400 Subject: [PATCH] server template : angular admin ui Signed-off-by: Bill Erickson --- .../server/admin-server-splash.component.html | 3 ++ .../app/staff/admin/server/admin-server.module.ts | 4 +- .../staff/admin/server/print-template.component.ts | 52 ++++++++++++++++++++++ .../src/app/staff/admin/server/routing.module.ts | 4 ++ 4 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/src/eg2/src/app/staff/admin/server/print-template.component.ts diff --git a/Open-ILS/src/eg2/src/app/staff/admin/server/admin-server-splash.component.html b/Open-ILS/src/eg2/src/app/staff/admin/server/admin-server-splash.component.html index 5e6058da9c..b3da87355b 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/server/admin-server-splash.component.html +++ b/Open-ILS/src/eg2/src/app/staff/admin/server/admin-server-splash.component.html @@ -81,6 +81,9 @@ url="/eg/staff/admin/server/legacy/permission/grp_tree"> + + + + + + + + + ` +}) + +export class PrintTemplateComponent implements OnInit { + + idlClass: string; + classLabel: string; + persistKeyPfx: string; + fieldOptions: {[field: string]: FmFieldOptions}; + + @ViewChild('templateTemplate') templateTemplate: TemplateRef; + + constructor( + private route: ActivatedRoute, + private idl: IdlService) {} + + ngOnInit() { + + this.fieldOptions = { + template: { + customTemplate: { + template: this.templateTemplate + } + } + }; + + this.idlClass = 'cpt'; + const classDef = this.idl.classes[this.idlClass]; + this.classLabel = classDef.label; + } +} + + diff --git a/Open-ILS/src/eg2/src/app/staff/admin/server/routing.module.ts b/Open-ILS/src/eg2/src/app/staff/admin/server/routing.module.ts index ceb60f27f4..a38cae05e7 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/server/routing.module.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/server/routing.module.ts @@ -2,11 +2,15 @@ import {NgModule} from '@angular/core'; import {RouterModule, Routes} from '@angular/router'; import {AdminServerSplashComponent} from './admin-server-splash.component'; import {BasicAdminPageComponent} from '@eg/staff/admin/basic-admin-page.component'; +import {PrintTemplateComponent} from './print-template.component'; const routes: Routes = [{ path: 'splash', component: AdminServerSplashComponent }, { + path: 'config/print_template', + component: PrintTemplateComponent +}, { path: ':schema/:table', component: BasicAdminPageComponent }]; -- 2.11.0