From aef7d63451c16586f045d2ef2da14f7a41ba1761 Mon Sep 17 00:00:00 2001 From: RoxanaElena09 Date: Fri, 12 Dec 2025 16:45:35 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20ajouter=5Fprestation=20valid=C3=A9e=20w?= =?UTF-8?q?3c=20validator=20et=20normalisee?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 15 +- prestations/html/ajouter_prestation.html | 235 +++++++++++++---------- prestations/html/prestation_accueil.html | 111 +++++++++-- prestations/js/ajouter_prestation.js | 5 +- template-header.html | 62 ++++++ 5 files changed, 302 insertions(+), 126 deletions(-) create mode 100644 template-header.html diff --git a/package-lock.json b/package-lock.json index 208cf30..1bfd43d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,6 @@ "version": "2.11.8", "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", - "license": "MIT", "peer": true, "funding": { "type": "opencollective", @@ -40,7 +39,6 @@ "url": "https://opencollective.com/bootstrap" } ], - "license": "MIT", "peerDependencies": { "@popperjs/core": "^2.11.8" } @@ -58,7 +56,6 @@ "version": "19.2.1", "resolved": "https://registry.npmjs.org/react/-/react-19.2.1.tgz", "integrity": "sha512-DGrYcCWK7tvYMnWh79yrPHt+vdx9tY+1gPZa7nJQtO/p8bLTDaHp4dzwEhQB7pZ4Xe3ok4XKuEPrVuc+wlpkmw==", - "license": "MIT", "peer": true, "engines": { "node": ">=0.10.0" @@ -68,7 +65,6 @@ "version": "19.2.1", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.1.tgz", "integrity": "sha512-ibrK8llX2a4eOskq1mXKu/TGZj9qzomO+sNfO98M6d9zIPOEhlBkMkBUBLd1vgS0gQsLDBzA+8jJBVXDnfHmJg==", - "license": "MIT", "peer": true, "dependencies": { "scheduler": "^0.27.0" @@ -81,20 +77,17 @@ "version": "0.27.0", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", - "license": "MIT", "peer": true }, "node_modules/tinymce": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/tinymce/-/tinymce-8.3.0.tgz", - "integrity": "sha512-9IjrEo8HD5mg9QP6/rKcPSIcyRNVSf5eiYTqapb/q1zAIoISRJgI2DJUs4CJgZvio0hmEH394xSHUJuoGf4Msw==", - "license": "SEE LICENSE IN license.md" + "version": "8.2.2", + "resolved": "https://registry.npmjs.org/tinymce/-/tinymce-8.2.2.tgz", + "integrity": "sha512-CFDSZwciMvFGW2czK/Xig1HcOGpXI0qcQMIqaIcG2F4RuuTdf+LQTreyEZunAJoFTQ9L0KAugOqL7OA5TJkoAA==" }, "node_modules/tinymce-i18n": { "version": "25.11.17", "resolved": "https://registry.npmjs.org/tinymce-i18n/-/tinymce-i18n-25.11.17.tgz", - "integrity": "sha512-Fi5hGRDL9o42VsdahgNgHRHO/4ClAAqIew45QMu8sa5LQT2wTaVPf/tAXnVDHxR7c6NWZQmZp/E18LosxLq42A==", - "license": "MIT" + "integrity": "sha512-Fi5hGRDL9o42VsdahgNgHRHO/4ClAAqIew45QMu8sa5LQT2wTaVPf/tAXnVDHxR7c6NWZQmZp/E18LosxLq42A==" } } } diff --git a/prestations/html/ajouter_prestation.html b/prestations/html/ajouter_prestation.html index d6903ec..a6bd614 100644 --- a/prestations/html/ajouter_prestation.html +++ b/prestations/html/ajouter_prestation.html @@ -3,115 +3,156 @@ - Ajouter une prestation - - - + Ajouter une préstation + + + +
-
- - +
+
+
+

Ajouter une prestation

+ +
Le titre est obligatoire.
+ + +
+ Cette prestation existe déjà. Veuillez en choisir une autre. +
+ + +
+ Prestation ajoutée avec succès ! +
+
+ +
+
+
+ + +
+ +
+ + +
+ + +
+ + +
+ + +
+ +
+ + +
+ +
+ + +
+
+ + +
+ +
+ + +
+
+ +
+ Annuler + +
+
- - +
-
-

Ajouter une prestation

- - -
- -
- -
- - -
- -
- - -
- -
- - -
- -
- -
- - -
-
- -
- Annuler - -
-
-
- - - - - - + + - - \ No newline at end of file diff --git a/prestations/js/ajouter_prestation.js b/prestations/js/ajouter_prestation.js index b3aec96..e571c69 100644 --- a/prestations/js/ajouter_prestation.js +++ b/prestations/js/ajouter_prestation.js @@ -52,6 +52,7 @@ form.addEventListener("submit", function (e) { // Redirection setTimeout(() => { - window.location.href = "../liste_prestation/liste_prestation.html"; - }, 1500); + + window.location.href = "../html/prestation_accueil.html"; +}, 1500); }); diff --git a/template-header.html b/template-header.html new file mode 100644 index 0000000..6a8b4df --- /dev/null +++ b/template-header.html @@ -0,0 +1,62 @@ +
+ + +
\ No newline at end of file