2019-01-18 18:03:45 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
2019-08-01 09:54:40 +02:00
|
|
|
import { GrantEditorComponent } from './editor/grant-editor.component';
|
|
|
|
import { GrantListingComponent } from './listing/grant-listing.component';
|
2018-01-30 10:35:26 +01:00
|
|
|
|
2019-01-18 18:03:45 +01:00
|
|
|
const routes: Routes = [
|
2018-10-05 17:00:54 +02:00
|
|
|
{
|
|
|
|
path: '',
|
2019-08-01 09:54:40 +02:00
|
|
|
component: GrantListingComponent,
|
2018-10-05 17:00:54 +02:00
|
|
|
data: {
|
|
|
|
breadcrumb: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'edit/:id',
|
2019-08-01 09:54:40 +02:00
|
|
|
component: GrantEditorComponent,
|
2018-10-05 17:00:54 +02:00
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.GRANT-EDIT'
|
2019-01-18 18:03:45 +01:00
|
|
|
}
|
2018-10-05 17:00:54 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'new',
|
2019-08-01 09:54:40 +02:00
|
|
|
component: GrantEditorComponent,
|
2018-10-05 17:00:54 +02:00
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.GRANT-NEW'
|
2018-10-05 17:00:54 +02:00
|
|
|
},
|
2019-01-18 18:03:45 +01:00
|
|
|
}
|
2018-01-30 10:35:26 +01:00
|
|
|
];
|
|
|
|
|
2019-01-18 18:03:45 +01:00
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
2019-08-01 09:54:40 +02:00
|
|
|
export class GrantRoutingModule { }
|