Ajout d'un composant pour gérer l'assignation de référents EP aux collaborateurs

develop
Yanaël GRETTE 4 years ago
parent 4166a9edcf
commit f42748a5f9
  1. 2
      src/app/home/home-assistante/home-assistante.component.ts
  2. 2
      src/app/referents/assignation-referent/assignation-referent.component.html
  3. 14
      src/app/referents/assignation-referent/assignation-referent.component.ts
  4. 3
      src/app/referents/referents.module.ts
  5. 9
      src/app/referents/referents.routing.module.ts
  6. 10
      src/app/shared/nav-menu/nav-menu-assistante/nav-menu-assistante.component.html
  7. 1
      src/app/shared/utils/paths.ts

@ -103,7 +103,7 @@ export class HomeAssistanteComponent implements OnInit, AfterViewInit {
* Récupérer la liste des EP Disponibles dès l'initialisation. * Récupérer la liste des EP Disponibles dès l'initialisation.
*/ */
ngOnInit() { ngOnInit() {
this.updateDataSource(); //this.updateDataSource();
} }

@ -0,0 +1,2 @@
<app-nav-menu></app-nav-menu>
<h1>Assignation référent</h1>

@ -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() {
}
}

@ -10,10 +10,11 @@ import { MatTablesModule } from "@shared/mat-tables/mat-tables.module";
import { ReferentsComponent } from './referents.component'; import { ReferentsComponent } from './referents.component';
import { DetailsReferentComponent } from './details-referent/details-referent.component'; import { DetailsReferentComponent } from './details-referent/details-referent.component';
import { ReferentsRoutingModule } from './referents.routing.module'; import { ReferentsRoutingModule } from './referents.routing.module';
import { AssignationReferentComponent } from "./assignation-referent/assignation-referent.component";
@NgModule({ @NgModule({
declarations: [ DetailsReferentComponent, declarations: [ DetailsReferentComponent,
ReferentsComponent ReferentsComponent, AssignationReferentComponent
], ],
exports: [ ReferentsComponent exports: [ ReferentsComponent
], ],

@ -8,17 +8,22 @@ import { DetailsReferentComponent } from "./details-referent/details-referent.co
import { paths_referents } from "@shared/utils/paths"; import { paths_referents } from "@shared/utils/paths";
import { AuthGuard } from '@shared/auth/auth.guard'; import { AuthGuard } from '@shared/auth/auth.guard';
import { AssignationReferentComponent } from './assignation-referent/assignation-referent.component';
/** /**
* Routes du module référents * Routes du module référents
*/ */
const routes: Routes = [ const routes: Routes = [
{ { path:'',
path:'',
component: ReferentsComponent, component: ReferentsComponent,
pathMatch: 'full', pathMatch: 'full',
canActivate: [AuthGuard] canActivate: [AuthGuard]
}, },
{
path:paths_referents.assignation,
component: AssignationReferentComponent,
canActivate: [AuthGuard]
},
{ {
path:paths_referents.get, path:paths_referents.get,
component: DetailsReferentComponent, component: DetailsReferentComponent,

@ -6,4 +6,12 @@
<button mat-menu-item routerLink="/collaborateurs" routerLinkActive>Liste des collaborateurs</button> <button mat-menu-item routerLink="/collaborateurs" routerLinkActive>Liste des collaborateurs</button>
<button mat-menu-item routerLink="/ep">Liste des EP</button> <button mat-menu-item routerLink="/ep">Liste des EP</button>
</mat-menu> </mat-menu>
<button mat-button routerLink="/referents">Liste des référents</button>
<button mat-button [matMenuTriggerFor]="menuReferents">
<span>Référent</span>
<mat-icon>more_vert</mat-icon>
</button>
<mat-menu #menuReferents="matMenu">
<button mat-menu-item routerLink="/referents">Liste des référents</button>
<button mat-menu-item routerLink="/referents/assignations">Assignation EP</button>
</mat-menu>

@ -89,6 +89,7 @@ const paths_home = {
const paths_referents = { const paths_referents = {
base: "/referents", base: "/referents",
path: "referents", path: "referents",
assignation: "assignations",
get: ":id" get: ":id"
}; };

Loading…
Cancel
Save