Ajout et affichage du module engagement

develop
Yanaël GRETTE 4 years ago
parent e7516a2188
commit b340fd26ff
  1. 7
      src/app/app-routing.module.ts
  2. 3
      src/app/app.module.ts
  3. 13
      src/app/engagements/engagements.component.ts
  4. 3
      src/app/engagements/engagements.html
  5. 25
      src/app/engagements/engagements.module.ts
  6. 19
      src/app/engagements/engagements.routing.module.ts
  7. 2
      src/app/engagements/index.ts
  8. 2
      src/app/shared/mat-tables/engagements-table/engagements-table.ts
  9. 2
      src/app/shared/nav-menu/nav-menu-rh/nav-menu-rh.component.html
  10. 8
      src/app/shared/utils/paths.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 } from '@shared/utils/paths';
paths_ep, paths_saisie_ep, paths_formation, paths_home, paths_referents, paths_engagements } from '@shared/utils/paths';
import { Role } from '@shared/utils/roles';
@ -64,6 +64,11 @@ const routes: Routes = [
{
path: paths_referents.path,
loadChildren: () => import('./referents/referents.module').then(m=> m.ReferentsModule)
},
//chargement des chemin du module engagement à partir du routing de ce module
{
path: paths_engagements.path,
loadChildren: () => import('./engagements/engagements.module').then(m => m.EngagementsModule)
}
];

@ -25,6 +25,7 @@ import { EpModule } from "./ep"
import { AuthModule } from '@shared/auth/auth.module';
import { MatTablesModule } from "@shared/mat-tables/mat-tables.module";
import { EngagementsModule } from './engagements';
@NgModule({
declarations: [
@ -38,7 +39,7 @@ import { MatTablesModule } from "@shared/mat-tables/mat-tables.module";
ReferentsModule, FormationsModule,
DemandesFormationModule, DemandesDelegationModule,
EpSaisieModule, EpModule, MatTablesModule,
AffichageDetailsCollaborateurModule
AffichageDetailsCollaborateurModule, EngagementsModule
],
providers: [],

@ -0,0 +1,13 @@
import { Component } from "@angular/core";
@Component({
selector: "app-engagements",
templateUrl: "./engagements.html"
})
export class EngagementsComponent {
constructor() {}
}

@ -0,0 +1,3 @@
<app-nav-menu></app-nav-menu>
<h2>Liste des engagements</h2>

@ -0,0 +1,25 @@
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { RouterModule } from '@angular/router';
import { MaterialModule } from "@shared/angular-material/angular-material.module";
import {NavMenuModule} from '@shared/nav-menu/nav-menu.module';
import { EngagementsComponent } from "./engagements.component";
import { EngagementsRoutingModule } from "./engagements.routing.module";
@NgModule({
declarations: [
EngagementsComponent
],
exports: [],
imports: [
CommonModule,
RouterModule,
NavMenuModule,
EngagementsRoutingModule
],
})
export class EngagementsModule {}

@ -0,0 +1,19 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { EngagementsComponent } from "./engagements.component";
import { AuthGuard } from '@shared/auth/auth.guard';
const routes: Routes = [
{ path: '', component: EngagementsComponent, pathMatch: 'full', canActivate: [AuthGuard]}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class EngagementsRoutingModule {}

@ -0,0 +1,2 @@
export * from './engagements.component';
export * from './engagements.module';

@ -178,7 +178,7 @@ export class EngagementTableComponent implements OnInit {
}
this.numPage = 1;
this.updateDataSource();
}
}
ngOnDestroy() {
if(this.engagementSubscription != undefined) {

@ -20,6 +20,6 @@
</button>
<mat-menu #menuCollaborateurs="matMenu">
<button mat-button routerLink="/collaborateurs">Liste des collaborateurs</button>
<button mat-button>Liste des engagements</button>
<button mat-button routerLink="/engagements">Liste des engagements</button>
</mat-menu>
<!--<button mat-button routerLink="/referents">Liste des référents</button>-->

@ -93,5 +93,11 @@ const paths_referents = {
get: ":id"
};
const paths_engagements = {
base: "/engagements",
path: "engagements"
}
export { paths_collaborateurs, paths_demandes_delegation, paths_demandes_formation,
paths_ep, paths_saisie_ep, paths_formation, paths_home, paths_referents};
paths_ep, paths_saisie_ep, paths_formation, paths_home, paths_referents, paths_engagements};

Loading…
Cancel
Save