]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/eg2/src/app/staff/admin/server/routing.module.ts
LP1839878 Max Fine Rule Field Order
[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 {CustomOrgUnitTreesComponent} from './custom-org-unit-trees.component';
7 import {PrintTemplateComponent} from './print-template.component';
8 import {PermGroupTreeComponent} from './perm-group-tree.component';
9
10 const routes: Routes = [{
11     path: 'splash',
12     component: AdminServerSplashComponent
13 }, {
14     path: 'actor/org_unit_type',
15     component: OrgUnitTypeComponent
16 }, {
17     path: 'actor/custom_org_unit_trees',
18     component: CustomOrgUnitTreesComponent
19 }, {
20     path: 'config/coded_value_map',
21     loadChildren: () =>
22         import('./coded-value-maps/coded-value-maps.module').then(m => m.CodedValueMapsModule)
23 }, {
24     path: 'config/record_attr_definition',
25     loadChildren: () =>
26         import('./record-attr-definitions/record-attr-definitions.module').then(m => m.RecordAttrDefinitionsModule)
27 }, {
28     path: 'authority/control_set_authority_field',
29     loadChildren: () =>
30         import('./control-set-authority-fields/control-set-authority-fields.module').then(m => m.CSAuthorityFieldsModule)
31 }, {
32     path: 'config/floating_group',
33     loadChildren: () =>
34         import('./floating-group/floating-group.module').then(m => m.FloatingGroupModule)
35 }, {
36     path: 'config/hard_due_date',
37     component: BasicAdminPageComponent,
38     data: [{
39         schema: 'config',
40         table: 'hard_due_date',
41         fieldOrder: 'name,owner,ceiling_date,forceto'
42     }]
43 }, {
44     path: 'config/print_template',
45     component: PrintTemplateComponent
46 }, {
47     path: 'config/rule_max_fine',
48     component: BasicAdminPageComponent,
49     data: [{
50         schema: 'config',
51         table: 'rule_max_fine',
52         fieldOrder: 'name,amount,is_percent,id'
53     }]
54 }, {
55     path: 'config/rule_recurring_fine',
56     component: BasicAdminPageComponent,
57     data: [{
58         schema: 'config',
59         table: 'rule_recurring_fine',
60         fieldOrder: 'name,low,normal,high,recurrence_interval,grace_period'
61     }]
62 }, {
63     path: 'config/z3950_source',
64     component: BasicAdminPageComponent,
65     data: [{
66         schema: 'config',
67         table: 'z3950_source',
68         fieldOrder: 'name,label,host,port,db,record_format,transmission_format,auth,use_perm'
69     }]
70 }, {
71     path: 'permission/grp_tree',
72     component: PermGroupTreeComponent
73 }, {
74     path: 'actor/org_unit',
75     loadChildren: () =>
76         import('./org-unit.module').then(m => m.OrgUnitModule)
77 }, {
78     path: 'actor/org_unit_proximity_adjustment',
79     component: BasicAdminPageComponent,
80     data: [{schema: 'actor',
81         table: 'org_unit_proximity_adjustment', disableOrgFilter: true}]
82 }, {
83     path: 'asset/call_number_prefix',
84     component: BasicAdminPageComponent,
85     data: [{schema: 'asset',
86         table: 'call_number_prefix', readonlyFields: 'label_sortkey'}]
87 }, {
88     path: 'asset/call_number_suffix',
89     component: BasicAdminPageComponent,
90     data: [{schema: 'asset',
91         table: 'call_number_suffix', readonlyFields: 'label_sortkey'}]
92 }, {
93     path: ':schema/:table',
94     component: BasicAdminPageComponent
95 }];
96
97 @NgModule({
98     imports: [RouterModule.forChild(routes)],
99     exports: [RouterModule]
100 })
101
102 export class AdminServerRoutingModule {}