]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/eg2/src/app/staff/admin/server/routing.module.ts
LP 1857351: fix field order for Recurring Fine Rules admin interface
[working/Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / admin / server / routing.module.ts
1 import {NgModule} from '@angular/core';
2 import {RouterModule, Routes} from '@angular/router';
3 import {AdminServerSplashComponent} from './admin-server-splash.component';
4 import {BasicAdminPageComponent} from '@eg/staff/admin/basic-admin-page.component';
5 import {OrgUnitTypeComponent} from './org-unit-type.component';
6 import {PrintTemplateComponent} from './print-template.component';
7 import {PermGroupTreeComponent} from './perm-group-tree.component';
8
9 const routes: Routes = [{
10     path: 'splash',
11     component: AdminServerSplashComponent
12 }, {
13     path: 'actor/org_unit_type',
14     component: OrgUnitTypeComponent
15 }, {
16     path: 'config/floating_group',
17     loadChildren: () =>
18       import('./floating-group/floating-group.module').then(m => m.FloatingGroupModule)
19 }, {
20     path: 'config/hard_due_date',
21     component: BasicAdminPageComponent,
22     data: [{
23         schema: 'config',
24         table: 'hard_due_date',
25         fieldOrder: 'name,owner,ceiling_date,forceto'
26     }]
27 }, {
28     path: 'config/print_template',
29     component: PrintTemplateComponent
30 }, {
31     path: 'config/rule_recurring_fine',
32     component: BasicAdminPageComponent,
33     data: [{
34         schema: 'config',
35         table: 'rule_recurring_fine',
36         fieldOrder: 'name,low,normal,high,recurrence_interval,grace_period'
37     }]
38 }, {
39     path: 'config/z3950_source',
40     component: BasicAdminPageComponent,
41     data: [{
42         schema: 'config',
43         table: 'z3950_source',
44         fieldOrder: 'name,label,host,port,db,record_format,transmission_format,auth,use_perm'
45     }]
46 }, {
47     path: 'permission/grp_tree',
48     component: PermGroupTreeComponent
49 }, {
50     path: 'actor/org_unit',
51     loadChildren: () =>
52       import('./org-unit.module').then(m => m.OrgUnitModule)
53 }, {
54     path: 'actor/org_unit_proximity_adjustment',
55     component: BasicAdminPageComponent,
56     data: [{schema: 'actor',
57         table: 'org_unit_proximity_adjustment', disableOrgFilter: true}]
58 }, {
59     path: 'asset/call_number_prefix',
60     component: BasicAdminPageComponent,
61     data: [{schema: 'asset',
62         table: 'call_number_prefix', readonlyFields: 'label_sortkey'}]
63 }, {
64     path: 'asset/call_number_suffix',
65     component: BasicAdminPageComponent,
66     data: [{schema: 'asset',
67         table: 'call_number_suffix', readonlyFields: 'label_sortkey'}]
68 }, {
69     path: ':schema/:table',
70     component: BasicAdminPageComponent
71 }];
72
73 @NgModule({
74   imports: [RouterModule.forChild(routes)],
75   exports: [RouterModule]
76 })
77
78 export class AdminServerRoutingModule {}