|
|
@@ -3,15 +3,17 @@ import { Routes } from '@angular/router';
|
|
|
import { DashboardComponent } from '../../components/dashboard/dashboard.component';
|
|
|
import { ProfileComponent } from '../../components/profile/profile.component';
|
|
|
import { AssetsComponent } from '@app/components/assets/assets.component';
|
|
|
+import { PlantsComponent } from '@app/components/plants/plants.component';
|
|
|
+
|
|
|
import { OrganizationsComponent } from '@app/components/organizations/organizations.component';
|
|
|
+import { OrganizationComponent } from '@app/components/organizations/organization/organization.component';
|
|
|
+import { NewOrganizationComponent } from '@app/components/organizations/new-organization/new-organization.component';
|
|
|
+import { EditOrganizationComponent } from '@app/components/organizations/edit-organization/edit-organization.component';
|
|
|
+import { EditPlantComponent } from '@app/components/plants/edit-plant/edit-plant.component';
|
|
|
+import { NewPlantComponent } from '@app/components/plants/new-plant/new-plant.component';
|
|
|
+import { UsersComponent } from '@app/components/users/users.component';
|
|
|
+import { NewUserComponent } from '@app/components/users/new-user/new-user.component';
|
|
|
|
|
|
-/*
|
|
|
-import { TableListComponent } from '../../table-list/table-list.component';
|
|
|
-import { TypographyComponent } from '../../typography/typography.component';
|
|
|
-import { IconsComponent } from '../../icons/icons.component';
|
|
|
-import { MapsComponent } from '../../maps/maps.component';
|
|
|
-import { NotificationsComponent } from '../../notifications/notifications.component';
|
|
|
-import { UpgradeComponent } from '../../upgrade/upgrade.component';*/
|
|
|
|
|
|
export const AdminLayoutRoutes: Routes = [
|
|
|
{ path: 'dashboard',
|
|
|
@@ -26,15 +28,75 @@ export const AdminLayoutRoutes: Routes = [
|
|
|
component: AssetsComponent,
|
|
|
data: {title: "Listado de plantas"}
|
|
|
},
|
|
|
+ // General management
|
|
|
+ { path: 'plants',
|
|
|
+ component: PlantsComponent,
|
|
|
+ data: {
|
|
|
+ title: "Listado de plantas",
|
|
|
+ breadcrumb: "Plantas"
|
|
|
+ },
|
|
|
+ },
|
|
|
+ { path: 'plants/new',
|
|
|
+ component: NewPlantComponent,
|
|
|
+ data: {
|
|
|
+ title: "Nueva planta",
|
|
|
+ breadcrumb: "Nueva planta"
|
|
|
+ },
|
|
|
+ },
|
|
|
+ { path: 'plant/:id/edit',
|
|
|
+ component: EditPlantComponent,
|
|
|
+ data: {
|
|
|
+ title: "Editar planta",
|
|
|
+ breadcrumb: "Editar planta"
|
|
|
+ },
|
|
|
+ },
|
|
|
+
|
|
|
+ { path: 'users',
|
|
|
+ component: UsersComponent,
|
|
|
+ data: {
|
|
|
+ title: "Listado de usuarios",
|
|
|
+ breadcrumb: "Usuarios"
|
|
|
+ },
|
|
|
+ },
|
|
|
+
|
|
|
+ { path: 'users/new',
|
|
|
+ component: NewUserComponent,
|
|
|
+ data: {
|
|
|
+ title: "Nuevo usuario",
|
|
|
+ breadcrumb: "Nuevo usuario"
|
|
|
+ },
|
|
|
+ },
|
|
|
+
|
|
|
+ // Organizations actions
|
|
|
{ path: 'organizations',
|
|
|
component: OrganizationsComponent,
|
|
|
- data: {title: "Listado de organizaciones"}
|
|
|
- }
|
|
|
- /*
|
|
|
- { path: 'table-list', component: TableListComponent },
|
|
|
- { path: 'typography', component: TypographyComponent },
|
|
|
- { path: 'icons', component: IconsComponent },
|
|
|
- { path: 'maps', component: MapsComponent },
|
|
|
- { path: 'notifications', component: NotificationsComponent },
|
|
|
- { path: 'upgrade', component: UpgradeComponent },*/
|
|
|
+ data: {
|
|
|
+ title: "Listado de organizaciones",
|
|
|
+ breadcrumb: "Organizaciones"
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'organizations/new',
|
|
|
+ component: NewOrganizationComponent,
|
|
|
+ data: {
|
|
|
+ title: 'Nueva organización',
|
|
|
+ breadcrumb:'Nueva organización'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'organization/:id',
|
|
|
+ component: OrganizationComponent,
|
|
|
+ data: {
|
|
|
+ title: 'Organización'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'organization/:id/edit',
|
|
|
+ component: EditOrganizationComponent,
|
|
|
+ data: {
|
|
|
+ title: 'Editar organización',
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
];
|