diff --git a/server_files/controllers/suivi_correspondances.php b/server_files/controllers/suivi_correspondances.php
index 4efd7e7..52c34cc 100644
--- a/server_files/controllers/suivi_correspondances.php
+++ b/server_files/controllers/suivi_correspondances.php
@@ -36,7 +36,7 @@ class ValidateVideo
{
$this->video = Video::fromId($this->video_id);
ensure($this->video != null, "La vidéo n'existe pas.");
- ensure($this->video->getValidation() == 0, "La vidéo est déjà validée / rejetée.");
+ ensure($this->video->getValidation() != 1, "La vidéo est déjà validée / rejetée.");
ensure(($this->accept == null || $this->reject == null) && $this->accept != $this->reject, "Impossible de déterminer s'il faut accepter ou non la vidéo.");
}
diff --git a/server_files/views/commenter_echange.php b/server_files/views/commenter_echange.php
index 0559850..65d87f3 100644
--- a/server_files/views/commenter_echange.php
+++ b/server_files/views/commenter_echange.php
@@ -66,13 +66,13 @@ for ($i = 0; $i < 2; ++$i) {
displayVideo($link);
switch ($answer->getValidation()) {
case 0:
- echo "
La vidéo n'a pas encore été contrôlée.
";
+ echo "La vidéo n'a pas encore été vérifiée par l'équipe d'organisation.
";
break;
case 1:
- echo "La vidéo a été acceptée.
";
+ echo "La vidéo a été acceptée par l'équipe d'organisation.
";
break;
case -1:
- echo "La vidéo a été rejetée.
";
+ echo "La vidéo a été rejetée par l'équipe d'organisation.
";
break;
}
}
diff --git a/server_files/views/envoyer_video.php b/server_files/views/envoyer_video.php
index e529396..183b038 100644
--- a/server_files/views/envoyer_video.php
+++ b/server_files/views/envoyer_video.php
@@ -20,13 +20,13 @@ if ($video !== null) {
displayVideo($link);
switch ($video->getValidation()) {
case 0:
- echo "La vidéo n'a pas encore été contrôlée.
";
+ echo "La vidéo n'a pas encore été vérifiée par l'équipe d'organisation.
";
break;
case 1:
- echo "La vidéo a été acceptée.
";
+ echo "La vidéo a été acceptée par l'équipe d'organisation.
";
break;
case -1:
- echo "La vidéo a été rejetée.
";
+ echo "La vidéo a été rejetée par l'équipe d'organisation.
";
break;
}
}
diff --git a/server_files/views/suivi_correspondances.php b/server_files/views/suivi_correspondances.php
index c7482e0..2754a94 100644
--- a/server_files/views/suivi_correspondances.php
+++ b/server_files/views/suivi_correspondances.php
@@ -47,17 +47,20 @@ for ($problem = 1; $problem <= 4; ++$problem) { ?>
getValidation() == 0) { ?>
+ if ($video->getValidation() <= 0) { ?>
-
+ getValidation() != 0) { ?>
">
La vidéo a été = $video->getValidation() == 1 ? "acceptée" : "refusée" ?>.
@@ -113,13 +116,16 @@ for ($problem = 1; $problem <= 4; ++$problem) { ?>
-
+ getValidation() == 0) { ?>
+
+
-
-
- ">
- La vidéo a été = $answer->getValidation() == 1 ? "acceptée" : "refusée" ?>.
+
+ getValidation() != 0) { ?>
+
">
+ La vidéo a été = $video->getValidation() == 1 ? "acceptée" : "refusée" ?>.
getValidation() != Video::ACCEPTED) {