From 90a294909d41f3cbc8744d4ba128ef8199e7d86a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Garnier?= Date: Wed, 18 Jan 2023 12:22:45 +0100 Subject: [PATCH] Ajout d'un boutton tester dans detailEnigme --- View/src/JS/Admin2.js | 2 +- View/src/pages/Admin/DetailEnigme.php | 4 ++++ View/src/pages/Admin/ModifEnigmeSolo.php | 3 --- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/View/src/JS/Admin2.js b/View/src/JS/Admin2.js index a5c4a097..4d4ee137 100644 --- a/View/src/JS/Admin2.js +++ b/View/src/JS/Admin2.js @@ -90,7 +90,7 @@ function exec(code, id) { */ function check() { if (retourSolution == "ERROR") { - alert("Il semblerait qu'il y a une erreur de python dans le code" + " Le terminal affiche : " + terminal); + alert("Il semblerait qu'il y a une erreur de python dans le code : " + terminal); } else{ alert("Aucune erreur détectée"); } diff --git a/View/src/pages/Admin/DetailEnigme.php b/View/src/pages/Admin/DetailEnigme.php index 277dd43f..57dcbef6 100644 --- a/View/src/pages/Admin/DetailEnigme.php +++ b/View/src/pages/Admin/DetailEnigme.php @@ -96,6 +96,10 @@ Supprimer Supprimer' ?> + + Tester + Tester' ?> + diff --git a/View/src/pages/Admin/ModifEnigmeSolo.php b/View/src/pages/Admin/ModifEnigmeSolo.php index bed01f8f..2838453e 100644 --- a/View/src/pages/Admin/ModifEnigmeSolo.php +++ b/View/src/pages/Admin/ModifEnigmeSolo.php @@ -79,9 +79,6 @@ -