From f42748a5f939036f8219d39ae9df28527d33a5d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yana=C3=ABl=20GRETTE?= Date: Wed, 10 Feb 2021 10:51:49 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20d'un=20composant=20pour=20g=C3=A9rer=20?= =?UTF-8?q?l'assignation=20de=20r=C3=A9f=C3=A9rents=20EP=20aux=20collabora?= =?UTF-8?q?teurs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home-assistante/home-assistante.component.ts | 2 +- .../assignation-referent.component.html | 2 ++ .../assignation-referent.component.ts | 14 ++++++++++++++ src/app/referents/referents.module.ts | 3 ++- src/app/referents/referents.routing.module.ts | 9 +++++++-- .../nav-menu-assistante.component.html | 10 +++++++++- src/app/shared/utils/paths.ts | 1 + 7 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 src/app/referents/assignation-referent/assignation-referent.component.html create mode 100644 src/app/referents/assignation-referent/assignation-referent.component.ts diff --git a/src/app/home/home-assistante/home-assistante.component.ts b/src/app/home/home-assistante/home-assistante.component.ts index 9f2aa73..2fc7111 100644 --- a/src/app/home/home-assistante/home-assistante.component.ts +++ b/src/app/home/home-assistante/home-assistante.component.ts @@ -103,7 +103,7 @@ export class HomeAssistanteComponent implements OnInit, AfterViewInit { * Récupérer la liste des EP Disponibles dès l'initialisation. */ ngOnInit() { - this.updateDataSource(); + //this.updateDataSource(); } diff --git a/src/app/referents/assignation-referent/assignation-referent.component.html b/src/app/referents/assignation-referent/assignation-referent.component.html new file mode 100644 index 0000000..6fcb867 --- /dev/null +++ b/src/app/referents/assignation-referent/assignation-referent.component.html @@ -0,0 +1,2 @@ + +

Assignation référent

diff --git a/src/app/referents/assignation-referent/assignation-referent.component.ts b/src/app/referents/assignation-referent/assignation-referent.component.ts new file mode 100644 index 0000000..9b27e63 --- /dev/null +++ b/src/app/referents/assignation-referent/assignation-referent.component.ts @@ -0,0 +1,14 @@ +import { Component, OnInit } from "@angular/core"; + +@Component({ + selector: 'assignation-referent', + templateUrl: './assignation-referent.component.html' +}) +export class AssignationReferentComponent implements OnInit { + + constructor() {} + + ngOnInit() { + + } +} \ No newline at end of file diff --git a/src/app/referents/referents.module.ts b/src/app/referents/referents.module.ts index 9a368d6..4aa108e 100644 --- a/src/app/referents/referents.module.ts +++ b/src/app/referents/referents.module.ts @@ -10,10 +10,11 @@ import { MatTablesModule } from "@shared/mat-tables/mat-tables.module"; import { ReferentsComponent } from './referents.component'; import { DetailsReferentComponent } from './details-referent/details-referent.component'; import { ReferentsRoutingModule } from './referents.routing.module'; +import { AssignationReferentComponent } from "./assignation-referent/assignation-referent.component"; @NgModule({ declarations: [ DetailsReferentComponent, - ReferentsComponent + ReferentsComponent, AssignationReferentComponent ], exports: [ ReferentsComponent ], diff --git a/src/app/referents/referents.routing.module.ts b/src/app/referents/referents.routing.module.ts index 35af0e6..135d8d8 100644 --- a/src/app/referents/referents.routing.module.ts +++ b/src/app/referents/referents.routing.module.ts @@ -8,17 +8,22 @@ import { DetailsReferentComponent } from "./details-referent/details-referent.co import { paths_referents } from "@shared/utils/paths"; import { AuthGuard } from '@shared/auth/auth.guard'; +import { AssignationReferentComponent } from './assignation-referent/assignation-referent.component'; /** * Routes du module référents */ const routes: Routes = [ - { - path:'', + { path:'', component: ReferentsComponent, pathMatch: 'full', canActivate: [AuthGuard] }, + { + path:paths_referents.assignation, + component: AssignationReferentComponent, + canActivate: [AuthGuard] + }, { path:paths_referents.get, component: DetailsReferentComponent, diff --git a/src/app/shared/nav-menu/nav-menu-assistante/nav-menu-assistante.component.html b/src/app/shared/nav-menu/nav-menu-assistante/nav-menu-assistante.component.html index 31e0c68..d616202 100644 --- a/src/app/shared/nav-menu/nav-menu-assistante/nav-menu-assistante.component.html +++ b/src/app/shared/nav-menu/nav-menu-assistante/nav-menu-assistante.component.html @@ -6,4 +6,12 @@ - + + + + + + diff --git a/src/app/shared/utils/paths.ts b/src/app/shared/utils/paths.ts index c237e9d..0c8b5ea 100644 --- a/src/app/shared/utils/paths.ts +++ b/src/app/shared/utils/paths.ts @@ -89,6 +89,7 @@ const paths_home = { const paths_referents = { base: "/referents", path: "referents", + assignation: "assignations", get: ":id" };