diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts
index 4a07133..1dc53f8 100644
--- a/src/app/app-routing.module.ts
+++ b/src/app/app-routing.module.ts
@@ -8,7 +8,7 @@ import { HomeComponent } from './home/';
import { AuthGuard } from '@shared/auth/auth.guard';
import { paths_collaborateurs, paths_demandes_delegation, paths_demandes_formation,
- paths_ep, paths_saisie_ep, paths_formation, paths_home, paths_referents, paths_engagements } from '@shared/utils/paths';
+ paths_ep, paths_saisie_ep, paths_formation, paths_home, paths_referents, paths_engagements, paths_notes } from '@shared/utils/paths';
import { Role } from '@shared/utils/roles';
@@ -69,6 +69,10 @@ const routes: Routes = [
{
path: paths_engagements.path,
loadChildren: () => import('./engagements/engagements.module').then(m => m.EngagementsModule)
+ },
+ {
+ path: paths_notes.path,
+ loadChildren: () => import('./notes/notes.module').then( m => m.NotesModule)
}
];
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index b36ec41..0475665 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -26,6 +26,7 @@ import { AuthModule } from '@shared/auth/auth.module';
import { MatTablesModule } from "@shared/mat-tables/mat-tables.module";
import { EngagementsModule } from './engagements';
+import { NotesModule } from './notes';
@NgModule({
declarations: [
@@ -39,7 +40,8 @@ import { EngagementsModule } from './engagements';
ReferentsModule, FormationsModule,
DemandesFormationModule, DemandesDelegationModule,
EpSaisieModule, EpModule, MatTablesModule,
- AffichageDetailsCollaborateurModule, EngagementsModule
+ AffichageDetailsCollaborateurModule, EngagementsModule,
+ NotesModule
],
providers: [],
diff --git a/src/app/notes/index.ts b/src/app/notes/index.ts
new file mode 100644
index 0000000..9a875e0
--- /dev/null
+++ b/src/app/notes/index.ts
@@ -0,0 +1,2 @@
+export * from "./notes.component";
+export * from "./notes.module"
\ No newline at end of file
diff --git a/src/app/notes/notes.component.html b/src/app/notes/notes.component.html
new file mode 100644
index 0000000..bc6b716
--- /dev/null
+++ b/src/app/notes/notes.component.html
@@ -0,0 +1 @@
+
Liste de vos notes
\ No newline at end of file
diff --git a/src/app/notes/notes.component.ts b/src/app/notes/notes.component.ts
new file mode 100644
index 0000000..5bbcd31
--- /dev/null
+++ b/src/app/notes/notes.component.ts
@@ -0,0 +1,17 @@
+import { Component, OnInit } from "@angular/core";
+import { NotesService } from "@shared/api-swagger";
+
+@Component({
+ selector: "app-notes",
+ templateUrl: "./notes.component.html"
+})
+export class NotesComponent implements OnInit {
+
+
+
+ constructor(private notesService: NotesService) {
+
+ }
+
+ ngOnInit() {}
+}
\ No newline at end of file
diff --git a/src/app/notes/notes.module.ts b/src/app/notes/notes.module.ts
new file mode 100644
index 0000000..d3662b9
--- /dev/null
+++ b/src/app/notes/notes.module.ts
@@ -0,0 +1,23 @@
+import { NgModule } from "@angular/core";
+import { CommonModule } from "@angular/common";
+import { RouterModule } from '@angular/router';
+import { NotesRoutingModule } from "./notes.routing.module";
+import { MaterialModule } from "@shared/angular-material/angular-material.module";
+
+import {NavMenuModule} from '@shared/nav-menu/nav-menu.module';
+import { NotesComponent } from "./notes.component";
+
+@NgModule({
+ declarations: [
+ NotesComponent
+ ],
+ imports: [
+ CommonModule,
+ MaterialModule,
+ NavMenuModule,
+ RouterModule,
+ NotesRoutingModule,
+
+ ],
+ })
+ export class NotesModule {}
\ No newline at end of file
diff --git a/src/app/notes/notes.routing.module.ts b/src/app/notes/notes.routing.module.ts
new file mode 100644
index 0000000..3ce4ddc
--- /dev/null
+++ b/src/app/notes/notes.routing.module.ts
@@ -0,0 +1,20 @@
+import { NgModule } from '@angular/core';
+import { Routes, RouterModule } from '@angular/router';
+
+import { NotesComponent } from "./notes.component";
+
+import { AuthGuard } from "@shared/auth/auth.guard";
+
+
+import { paths_notes } from "@shared/utils/paths";
+
+const routes: Routes = [
+ {path: paths_notes.notesAuteur, component: NotesComponent, canActivate: [AuthGuard]},
+]
+
+
+@NgModule({
+ imports: [RouterModule.forChild(routes)],
+ exports: [RouterModule]
+ })
+ export class NotesRoutingModule {}
\ No newline at end of file
diff --git a/src/app/shared/utils/paths.ts b/src/app/shared/utils/paths.ts
index a9577ac..c8927b2 100644
--- a/src/app/shared/utils/paths.ts
+++ b/src/app/shared/utils/paths.ts
@@ -98,6 +98,18 @@ const paths_engagements = {
path: "engagements"
}
+/**
+ * Chemin de la navigation du module notes
+ */
+const paths_notes = {
+ base: "/notes",
+ path: "notes",
+ notesAuteur: "auteur/:id",
+ ajoutNote: "nouvellenote",
+ get: ":id",
+ edit: ":id/edit"
+}
export { paths_collaborateurs, paths_demandes_delegation, paths_demandes_formation,
- paths_ep, paths_saisie_ep, paths_formation, paths_home, paths_referents, paths_engagements};
+ paths_ep, paths_saisie_ep, paths_formation, paths_home, paths_referents, paths_engagements,
+ paths_notes };