+
diff --git a/src/app/components/profil-form/profil-form.css b/src/app/components/profil-form/profil-form.css
new file mode 100644
index 0000000..e69de29
diff --git a/src/app/components/profil-form/profil-form.html b/src/app/components/profil-form/profil-form.html
new file mode 100644
index 0000000..434fe71
--- /dev/null
+++ b/src/app/components/profil-form/profil-form.html
@@ -0,0 +1,38 @@
+
\ No newline at end of file
diff --git a/src/app/components/profil-form/profil-form.ts b/src/app/components/profil-form/profil-form.ts
new file mode 100644
index 0000000..c6abd55
--- /dev/null
+++ b/src/app/components/profil-form/profil-form.ts
@@ -0,0 +1,42 @@
+import { Component } from '@angular/core';
+import {FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators} from "@angular/forms";
+import {NzColDirective} from "ng-zorro-antd/grid";
+import {NzFlexDirective} from "ng-zorro-antd/flex";
+import {NzFormControlComponent, NzFormDirective, NzFormItemComponent, NzFormLabelComponent} from "ng-zorro-antd/form";
+import {NzInputDirective} from "ng-zorro-antd/input";
+
+@Component({
+ selector: 'app-profil-form',
+ imports: [
+ FormsModule,
+ NzColDirective,
+ NzFlexDirective,
+ NzFormControlComponent,
+ NzFormDirective,
+ NzFormItemComponent,
+ NzFormLabelComponent,
+ NzInputDirective,
+ ReactiveFormsModule
+ ],
+ templateUrl: './profil-form.html',
+ styleUrl: './profil-form.css',
+})
+export class ProfilForm {
+ profilForm: FormGroup = new FormGroup({
+ newName: new FormControl
(null, [Validators.required]),
+ newEmail: new FormControl(null, [Validators.required]),
+ newFonction: new FormControl(null, [Validators.required]),
+ newPassword: new FormControl(null, [Validators.required])
+ })
+
+ submitForm() {
+ // Pour annuler si le formulaire est invalide
+ if (this.profilForm.invalid) return;
+
+ // Pour obtenir la valeur du formulaire
+ console.log(this.profilForm.getRawValue())
+
+ // Pour vider le formulaire
+ this.profilForm.reset()
+ }
+}
diff --git a/src/app/components/profil/profil.html b/src/app/components/profil/profil.html
index 1528c91..c15b623 100644
--- a/src/app/components/profil/profil.html
+++ b/src/app/components/profil/profil.html
@@ -1,3 +1,9 @@
+
+
{{ getInitial(data.name) }}
@@ -6,5 +12,4 @@
{{data.name}}
{{data.email}}
{{data.fonction}}
-
diff --git a/src/app/components/profil/profil.ts b/src/app/components/profil/profil.ts
index 3bf6e62..f1f3e31 100644
--- a/src/app/components/profil/profil.ts
+++ b/src/app/components/profil/profil.ts
@@ -1,11 +1,13 @@
import { Component } from '@angular/core';
import {UserInfo} from "../../interfaces/user.interface";
-import {NzButtonComponent} from "ng-zorro-antd/button";
+import {ProfilForm} from "../profil-form/profil-form";
+import {ModalNav} from "../modal-nav/modal-nav";
@Component({
selector: 'app-profil',
imports: [
- NzButtonComponent
+ ProfilForm,
+ ModalNav
],
templateUrl: './profil.html',
styleUrl: './profil.css',
diff --git a/src/app/components/stock-table/stock-table.html b/src/app/components/stock-table/stock-table.html
index 2cf3c02..6b41a86 100644
--- a/src/app/components/stock-table/stock-table.html
+++ b/src/app/components/stock-table/stock-table.html
@@ -1,13 +1,13 @@
-