retouche des redirections de page
This commit is contained in:
@@ -7,22 +7,14 @@
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css">
|
||||
<script src="https://cdn.ckeditor.com/ckeditor5/39.0.1/classic/ckeditor.js"></script>
|
||||
<script src="https://cdn.ckeditor.com/ckeditor5/39.0.1/classic/translations/fr.js"></script>
|
||||
<link rel="stylesheet" href="../../css/blog.css">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
body {
|
||||
background: #f4f6f9;
|
||||
}
|
||||
.container {
|
||||
|
||||
margin: 40px auto;
|
||||
}
|
||||
.ck-editor__editable {
|
||||
min-height: 350px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -144,7 +136,7 @@
|
||||
|
||||
<!--Boutons-->
|
||||
<div class="d-flex gap-3 mt-4">
|
||||
<a href="../html/liste_categorie_article.html" class="btn btn-secondary w-50">Annuler</a>
|
||||
<a href="../html/accueil_blog.html" class="btn btn-secondary w-50">Annuler</a>
|
||||
<button type="submit" class="btn btn-primary w-50">Ajouter</button>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
</div>
|
||||
|
||||
<div class="d-flex gap-3 mt-4">
|
||||
<a href="../html/liste_categorie_article.html" class="btn btn-secondary w-50">Annuler</a>
|
||||
<a href="../html/accueil_blog.html" class="btn btn-secondary w-50">Annuler</a>
|
||||
<button type="submit" class="btn btn-primary w-50">Ajouter</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -157,7 +157,7 @@
|
||||
|
||||
<!--Boutons-->
|
||||
<div class="d-flex gap-3 mt-4">
|
||||
<a href="../../blog/html/liste_categorie_article.html" class="btn btn-secondary w-50">Annuler</a>
|
||||
<a href="../../blog/html/accueil_blog.html" class="btn btn-secondary w-50">Annuler</a>
|
||||
<button type="submit" class="btn btn-primary w-50">Enregistrer</button>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
</div>
|
||||
|
||||
<div class="d-flex gap-3 mt-4">
|
||||
<a href="../html/liste_categorie_article.html" class="btn btn-secondary w-50">Annuler</a>
|
||||
<a href="../html/accueil_blog.html" class="btn btn-secondary w-50">Annuler</a>
|
||||
<button type="submit" class="btn btn-primary w-50">Enregistrer</button>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ existingCategories.push(nom);
|
||||
|
||||
// Redirection après 1 seconde
|
||||
setTimeout(() => {
|
||||
window.location.href = "../html/liste_categorie_article.html";
|
||||
window.location.href = "../html/accueil_blog.html";
|
||||
}, 1000);
|
||||
|
||||
|
||||
|
||||
@@ -55,6 +55,6 @@ form.addEventListener("submit", function (e) {
|
||||
|
||||
// Redirection après succès
|
||||
setTimeout(() => {
|
||||
window.location.href = "../../blog/html/liste_categorie_article.html";
|
||||
window.location.href = "../../blog/html/accueil_blog.html";
|
||||
}, 1500);
|
||||
});
|
||||
|
||||
@@ -21,6 +21,6 @@ form.addEventListener("submit", function (e) {
|
||||
|
||||
// Redirection après succès
|
||||
setTimeout(() => {
|
||||
window.location.href = "../html/liste_categorie_article.html";
|
||||
window.location.href = "../html/accueil_blog.html";
|
||||
}, 1500);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user