From 5297dcbcc329d9368e5637e177001b0a42cb6914 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 10 Dec 2025 16:48:28 +0100 Subject: [PATCH] ajout de la page accueil blog + page liste categorie_article regroupant les pages articles et categorie --- blog/html/accueil_blog.html | 2 +- blog/html/ajouter_article.html | 2 +- blog/html/ajouter_categorie.html | 2 +- blog/html/liste_categorie_article.html | 185 +++++++++++++++++++++++++ blog/html/modifier_article.html | 2 +- blog/html/modifier_categorie.html | 2 +- blog/js/ajouter_article.js | 2 +- blog/js/ajouter_categorie.js | 2 +- blog/js/modifier_article.js | 2 +- blog/js/modifier_categorie.js | 2 +- 10 files changed, 194 insertions(+), 9 deletions(-) create mode 100644 blog/html/liste_categorie_article.html diff --git a/blog/html/accueil_blog.html b/blog/html/accueil_blog.html index 2f74913..5c5b14b 100644 --- a/blog/html/accueil_blog.html +++ b/blog/html/accueil_blog.html @@ -94,7 +94,7 @@
- +
- Annuler + Annuler
diff --git a/blog/html/liste_categorie_article.html b/blog/html/liste_categorie_article.html new file mode 100644 index 0000000..2fbacb0 --- /dev/null +++ b/blog/html/liste_categorie_article.html @@ -0,0 +1,185 @@ + + + + + + Blog – Catégories & Articles + + + + + + + + + + + + + +
+ +
+ + +
+ + + + +
+

Liste des catégories

+ + +
+ + + + + + + + + + + + + + + +
NomActions
+
+ + + + + +
+

Liste des articles

+ + +
+ + + + + + + + + + + + + + + + + + + + + + + +
TitreActions
Mon premier article + Modifier + +
Mon deuxième article + Modifier + +
+
+ +
+ + + + + + + + diff --git a/blog/html/modifier_article.html b/blog/html/modifier_article.html index 4d2fc41..091bbff 100644 --- a/blog/html/modifier_article.html +++ b/blog/html/modifier_article.html @@ -157,7 +157,7 @@
- Annuler + Annuler
diff --git a/blog/html/modifier_categorie.html b/blog/html/modifier_categorie.html index e3adf30..30c86e1 100644 --- a/blog/html/modifier_categorie.html +++ b/blog/html/modifier_categorie.html @@ -95,7 +95,7 @@
- Annuler + Annuler
diff --git a/blog/js/ajouter_article.js b/blog/js/ajouter_article.js index 181b008..70c5f93 100644 --- a/blog/js/ajouter_article.js +++ b/blog/js/ajouter_article.js @@ -54,6 +54,6 @@ form.addEventListener('submit', function(e) { // Redirection après 1 seconde setTimeout(() => { - window.location.href = "../html/liste_article.html"; + window.location.href = "../html/liste_categorie_article.html"; }, 1000); }); diff --git a/blog/js/ajouter_categorie.js b/blog/js/ajouter_categorie.js index c904fdc..8c4189c 100644 --- a/blog/js/ajouter_categorie.js +++ b/blog/js/ajouter_categorie.js @@ -40,7 +40,7 @@ existingCategories.push(nom); // Redirection après 1 seconde setTimeout(() => { - window.location.href = "../html/liste_categorie.html"; + window.location.href = "../html/liste_categorie_article.html"; }, 1000); diff --git a/blog/js/modifier_article.js b/blog/js/modifier_article.js index e87ce17..a5a930d 100644 --- a/blog/js/modifier_article.js +++ b/blog/js/modifier_article.js @@ -55,6 +55,6 @@ form.addEventListener("submit", function (e) { // Redirection après succès setTimeout(() => { - window.location.href = "../html/liste_article.html"; + window.location.href = "../../blog/html/liste_categorie_article.html"; }, 1500); }); diff --git a/blog/js/modifier_categorie.js b/blog/js/modifier_categorie.js index 7642c4d..97f8b1a 100644 --- a/blog/js/modifier_categorie.js +++ b/blog/js/modifier_categorie.js @@ -21,6 +21,6 @@ form.addEventListener("submit", function (e) { // Redirection après succès setTimeout(() => { - window.location.href = "../html/liste_categorie.html"; + window.location.href = "../html/liste_categorie_article.html"; }, 1500); });