diff --git a/package-lock.json b/package-lock.json index 7272556..765cad0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14184,6 +14184,11 @@ "resolved": "https://registry.npmjs.org/bootstrap-icons/-/bootstrap-icons-1.8.1.tgz", "integrity": "sha512-IXUqislddPJfwq6H+2nTkHyr9epO9h6u1AG0OZCx616w+TgzeoCjfmI3qJMQqt1J586gN2IxzB4M99Ip4sTZ1w==" }, + "bootstrap-icons": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/bootstrap-icons/-/bootstrap-icons-1.8.1.tgz", + "integrity": "sha512-IXUqislddPJfwq6H+2nTkHyr9epO9h6u1AG0OZCx616w+TgzeoCjfmI3qJMQqt1J586gN2IxzB4M99Ip4sTZ1w==" + }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 4587264..86990f8 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -7,6 +7,7 @@ import { PageAgendaComponent } from './pages/page-agenda/page-agenda.component'; import { PageAjoutContactComponent } from './pages/page-ajout-contact/page-ajout-contact.component'; import { PageCreationTeamComponent } from './pages/page-creation-team/page-creation-team.component'; import { PageDashboardComponent } from './pages/page-dashboard/page-dashboard.component'; +import { PageDeleteAccountComponent } from './pages/page-delete-account/page-delete-account.component'; import { PageDeleteMemberComponent } from './pages/page-delete-member/page-delete-member.component'; import { PageForgotPasswordComponent } from './pages/page-forgot-password/page-forgot-password.component'; import { PageMenuSemaineComponent } from './pages/page-menu-semaine/page-menu-semaine.component'; @@ -16,6 +17,7 @@ import { PageRepertoireComponent } from './pages/page-repertoire/page-repertoire import { PageResetPasswordComponent } from './pages/page-reset-password/page-reset-password.component'; import { PageSignupComponent } from './pages/page-signup/page-signup.component'; import { PageToDoListComponent } from './pages/page-to-do-list/page-to-do-list.component'; +import { PageUpdateAccountComponent } from './pages/page-update-account/page-update-account.component'; import { PageUpdateMemberComponent } from './pages/page-update-member/page-update-member.component'; const routes: Routes = [ @@ -27,6 +29,7 @@ const routes: Routes = [ { path: 'agenda', component: PageAgendaComponent }, { path: 'tableau-de-bord', component: PageDashboardComponent }, { path: 'supprimer-membre', component: PageDeleteMemberComponent }, + { path: 'supprimer-compte', component: PageDeleteAccountComponent }, { path: 'password-oublie', component: PageForgotPasswordComponent }, { path: 'menu', component: PageMenuSemaineComponent }, { path: 'repertoire', component: PageRepertoireComponent }, @@ -34,6 +37,7 @@ const routes: Routes = [ { path: 'creation-compte', component: PageSignupComponent }, { path: 'to-do-list', component: PageToDoListComponent }, { path: 'modifier-membre', component: PageUpdateMemberComponent }, + { path: 'modifier-compte', component: PageUpdateAccountComponent }, { path: 'ajouter-contact', component: PageAjoutContactComponent }, { path: 'creation-team', component: PageCreationTeamComponent }, { path: '**', component: PageNotFoundComponent }, diff --git a/src/app/app.module.ts b/src/app/app.module.ts index d94d1cd..acaba73 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -37,6 +37,8 @@ import { PageAjoutContactComponent } from './pages/page-ajout-contact/page-ajout import { PageModifierContactComponent } from './pages/page-modifier-contact/page-modifier-contact.component'; import { PageCreationTeamComponent } from './pages/page-creation-team/page-creation-team.component'; import { AutofocusFixModule } from 'ngx-autofocus-fix'; +import { PageDeleteAccountComponent } from './pages/page-delete-account/page-delete-account.component'; +import { PageUpdateAccountComponent } from './pages/page-update-account/page-update-account.component'; import { EmoticonComponent } from './emoticon/emoticon.component'; @@ -75,6 +77,8 @@ import { EmoticonComponent } from './emoticon/emoticon.component'; PageAjoutContactComponent, PageModifierContactComponent, PageCreationTeamComponent, + PageDeleteAccountComponent, + PageUpdateAccountComponent, EmoticonComponent, ], imports: [ diff --git a/src/app/components/fiche-contact/fiche-contact.component.html b/src/app/components/fiche-contact/fiche-contact.component.html index 1d4eb48..bbbdbef 100644 --- a/src/app/components/fiche-contact/fiche-contact.component.html +++ b/src/app/components/fiche-contact/fiche-contact.component.html @@ -6,7 +6,7 @@
-
diff --git a/src/app/components/fiche-contact/fiche-contact.component.ts b/src/app/components/fiche-contact/fiche-contact.component.ts index 25ae576..cc46263 100644 --- a/src/app/components/fiche-contact/fiche-contact.component.ts +++ b/src/app/components/fiche-contact/fiche-contact.component.ts @@ -1,4 +1,4 @@ -import { Component, Input, OnInit } from '@angular/core'; +import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; @Component({ selector: 'app-fiche-contact', @@ -7,8 +7,13 @@ import { Component, Input, OnInit } from '@angular/core'; }) export class FicheContactComponent implements OnInit { @Input() personne: any; + @Output() clickDelete = new EventEmitter(); constructor() {} ngOnInit(): void {} + + onClickDelete(numPerson: number){ + this.clickDelete.emit(numPerson); + } } diff --git a/src/app/components/side-bar/side-bar.component.html b/src/app/components/side-bar/side-bar.component.html index 2d7f65e..65f221d 100644 --- a/src/app/components/side-bar/side-bar.component.html +++ b/src/app/components/side-bar/side-bar.component.html @@ -1,11 +1,29 @@ -