mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-25 19:37:23 +02:00
Messages d'informations validation équipes/vidéos
This commit is contained in:
@ -12,11 +12,11 @@ if ($team === null)
|
||||
|
||||
if (isset($_POST["validate"])) {
|
||||
$team->setValidationStatus(ValidationStatus::VALIDATED);
|
||||
Mailer::sendValidateTeam($team);
|
||||
Mailer::sendValidateTeam($team, $_POST["message"]);
|
||||
}
|
||||
elseif (isset($_POST["unvalidate"])) {
|
||||
$team->setValidationStatus(ValidationStatus::NOT_READY);
|
||||
Mailer::sendUnvalidateTeam($team);
|
||||
Mailer::sendUnvalidateTeam($team, $_POST["message"]);
|
||||
}
|
||||
elseif (isset($_POST["select_problem"])) {
|
||||
if ($team->getValidationStatus() == ValidationStatus::NOT_READY) {
|
||||
|
@ -25,6 +25,7 @@ class ValidateVideo
|
||||
private $reject;
|
||||
/** @var Video */
|
||||
private $video;
|
||||
private $message;
|
||||
|
||||
public function __construct($data)
|
||||
{
|
||||
@ -43,7 +44,7 @@ class ValidateVideo
|
||||
public function validate()
|
||||
{
|
||||
$this->video->setValidation($this->accept ? 1 : -1);
|
||||
Mailer::validateVideo($this->video);
|
||||
Mailer::validateVideo($this->video, $this->message);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user