From 7bf7d8af14ef47d6a18d65c16ed929037992dc0e Mon Sep 17 00:00:00 2001 From: "yvan.calatayud" Date: Tue, 24 Oct 2023 00:37:39 +0200 Subject: [PATCH] feat: Pop up ajout autre question + verif champs vide + Page choixThemeSolo --- Website/js/script.js | 21 ++++++++++++ Website/vues/Ajout.php | 43 ++++++++++++++++++++---- Website/vues/Previsualisation.php | 23 ++++++++++++- Website/vues/choixThemeSolo.php | 55 +++++++++++++++++++++++++++++++ 4 files changed, 135 insertions(+), 7 deletions(-) create mode 100755 Website/js/script.js mode change 100644 => 100755 Website/vues/Ajout.php mode change 100644 => 100755 Website/vues/Previsualisation.php create mode 100755 Website/vues/choixThemeSolo.php diff --git a/Website/js/script.js b/Website/js/script.js new file mode 100755 index 0000000..5739c6a --- /dev/null +++ b/Website/js/script.js @@ -0,0 +1,21 @@ +// Example starter JavaScript for disabling form submissions if there are invalid fields +(() => { + 'use strict' + + // Fetch all the forms we want to apply custom Bootstrap validation styles to + const forms = document.querySelectorAll('.needs-validation') + + // Loop over them and prevent submission + Array.from(forms).forEach(form => { + form.addEventListener('submit', event => { + if (!form.checkValidity()) { + event.preventDefault() + event.stopPropagation() + } + form.classList.add('was-validated') + }, false) + }) + +})() + + diff --git a/Website/vues/Ajout.php b/Website/vues/Ajout.php old mode 100644 new mode 100755 index b0f1706..c6a9b95 --- a/Website/vues/Ajout.php +++ b/Website/vues/Ajout.php @@ -7,6 +7,7 @@ Math'Educ + + + + + + +
+

Difficulte :

+ + + + + + + + + +
+ + + + +
+ +
+ + + \ No newline at end of file