diff --git a/server_files/controllers/ajouter_admin.php b/server_files/controllers/ajouter_admin.php index c991f0f..395349c 100644 --- a/server_files/controllers/ajouter_admin.php +++ b/server_files/controllers/ajouter_admin.php @@ -6,7 +6,7 @@ if (!isset($_SESSION["role"]) || $_SESSION["role"] != Role::ADMIN) $has_error = false; $error_message = null; -if (isset($_POST["submitted"])) { +if (isset($_POST["add_admin"])) { $admin = new NewAdmin($_POST); try { $admin->makeVerifications(); diff --git a/server_files/controllers/ajouter_equipe.php b/server_files/controllers/ajouter_equipe.php index 46d9226..5017c77 100644 --- a/server_files/controllers/ajouter_equipe.php +++ b/server_files/controllers/ajouter_equipe.php @@ -6,7 +6,7 @@ if (!isset($_SESSION["role"]) || ($_SESSION["role"] != Role::PARTICIPANT && $_SE $has_error = false; $error_message = null; -if (isset($_POST["submitted"])) { +if (isset($_POST["add_team"])) { $new_team = new NewTeam($_POST); try { $new_team->makeVerifications(); diff --git a/server_files/controllers/connexion.php b/server_files/controllers/connexion.php index 63dfd9c..811abf1 100644 --- a/server_files/controllers/connexion.php +++ b/server_files/controllers/connexion.php @@ -3,7 +3,7 @@ $has_error = false; $error_message = null; -if (isset($_POST["submitted"]) && !isset($_SESSION["user_id"])) { +if (isset($_POST["login"]) && !isset($_SESSION["user_id"])) { $logging_in_user = new LoggingInUser($_POST); try { $logging_in_user->makeVerifications(); diff --git a/server_files/controllers/inscription.php b/server_files/controllers/inscription.php index 8b4d9af..851909d 100644 --- a/server_files/controllers/inscription.php +++ b/server_files/controllers/inscription.php @@ -3,7 +3,7 @@ $has_error = false; $error_message = null; -if (isset($_POST["submitted"])) { +if (isset($_POST["register"])) { $user = new NewUser($_POST); try { diff --git a/server_files/controllers/mon_compte.php b/server_files/controllers/mon_compte.php index a539efc..a44755b 100644 --- a/server_files/controllers/mon_compte.php +++ b/server_files/controllers/mon_compte.php @@ -9,7 +9,7 @@ $user = $_SESSION["user"]; $has_error = false; $error_message = null; -if (isset($_POST["submitted"])) { +if (isset($_POST["update_team"])) { $my_account = new MyAccount($_POST); try { $my_account->makeVerifications(); diff --git a/server_files/controllers/rejoindre_equipe.php b/server_files/controllers/rejoindre_equipe.php index d926238..4e11071 100644 --- a/server_files/controllers/rejoindre_equipe.php +++ b/server_files/controllers/rejoindre_equipe.php @@ -6,7 +6,7 @@ if (isset($_SESSION["team"]) || !isset($_SESSION["user"]) || ($_SESSION["role"] $has_error = false; $error_message = null; -if (isset($_POST["submitted"])) { +if (isset($_POST["join_team"])) { $join_team = new JoinTeam($_POST); try { $join_team->makeVerifications(); diff --git a/server_files/views/ajouter_admin.php b/server_files/views/ajouter_admin.php index d4f2ac4..2480cc3 100644 --- a/server_files/views/ajouter_admin.php +++ b/server_files/views/ajouter_admin.php @@ -1,12 +1,13 @@ Organisateur ajouté avec succès ! Ses identifiants ont été transmis par mail."; -} ?> +if (isset($admin) && !$has_error) { ?> +
+ Organisateur ajouté avec succès ! Ses identifiants ont été transmis par mail. +
+
- @@ -35,7 +36,7 @@ if (isset($admin) && !$has_error) { diff --git a/server_files/views/ajouter_equipe.php b/server_files/views/ajouter_equipe.php index 6b0ac82..4f56f71 100644 --- a/server_files/views/ajouter_equipe.php +++ b/server_files/views/ajouter_equipe.php @@ -10,7 +10,6 @@ if (isset($new_team) && !$has_error) { ?> -
- +
@@ -50,7 +49,7 @@ if (isset($new_team) && !$has_error) { ?> diff --git a/server_files/views/connexion.php b/server_files/views/connexion.php index d9354ba..2efc132 100644 --- a/server_files/views/connexion.php +++ b/server_files/views/connexion.php @@ -45,7 +45,6 @@ if (isset($_GET["mdp_oublie"])) { ?>

Connexion


-
- +
diff --git a/server_files/views/inscription.php b/server_files/views/inscription.php index 7074906..7da657c 100644 --- a/server_files/views/inscription.php +++ b/server_files/views/inscription.php @@ -24,8 +24,6 @@ if (isset($user) && !$has_error) {
- -
+
diff --git a/server_files/views/mon_compte.php b/server_files/views/mon_compte.php index 87a5474..7a41990 100644 --- a/server_files/views/mon_compte.php +++ b/server_files/views/mon_compte.php @@ -12,7 +12,6 @@ if (!$has_error && (isset($my_account) || isset($new_password))) {
-
- +
@@ -61,7 +60,7 @@ if (!$has_error && (isset($my_account) || isset($new_password))) { - +
doReceiveAnimathMails() ? "checked" : "" ?> />
diff --git a/server_files/views/rejoindre_equipe.php b/server_files/views/rejoindre_equipe.php index 79bf584..03a0570 100644 --- a/server_files/views/rejoindre_equipe.php +++ b/server_files/views/rejoindre_equipe.php @@ -10,7 +10,6 @@ if (isset($join_team) && !$has_error) { ?> Erreur : " . $error_message . ""; ?>
- @@ -23,7 +22,7 @@ if (isset($join_team) && !$has_error) { ?>
- +