mirror of
				https://gitlab.com/animath/si/plateforme-corres2math.git
				synced 2025-11-04 07:02:15 +01:00 
			
		
		
		
	Impossible d'affecter aux équipes des vidéos une fois la phase 2 débutée
This commit is contained in:
		@@ -54,6 +54,7 @@ class UpdateVideoTeams
 | 
			
		||||
 | 
			
		||||
	public function makeVerifications()
 | 
			
		||||
	{
 | 
			
		||||
		ensure(Phase::getCurrentPhase() < Phase::PHASE2, "Il est trop tard pour réaffecter les vidéos aux équipes.");
 | 
			
		||||
		ensure(sizeof($this->other_teams) == 2, "L'équipe doit recevoir exactement deux vidéos.");
 | 
			
		||||
		ensure(Team::fromId($this->other_teams[0]) != null, "La première équipe n'existe pas.");
 | 
			
		||||
		ensure(Team::fromId($this->other_teams[1]) != null, "La seconde équipe n'existe pas.");
 | 
			
		||||
 
 | 
			
		||||
@@ -47,7 +47,7 @@ if ($_SESSION["role"] == Role::ADMIN) { ?>
 | 
			
		||||
                    <label for="other_teams">L'équipe va recevoir les questions des équipes suivantes (merci d'en
 | 
			
		||||
                        sélectionner
 | 
			
		||||
                        exactement 2) :</label>
 | 
			
		||||
                    <select class="custom-select" id="other_teams" name="other_teams[]" multiple <?= Phase::getCurrentPhase() >= Phase::PHASE2 ? "disable" : "" ?>>
 | 
			
		||||
                    <select class="custom-select" id="other_teams" name="other_teams[]" multiple <?= Phase::getCurrentPhase() >= Phase::PHASE2 ? "disabled" : "" ?>>
 | 
			
		||||
						<?php
 | 
			
		||||
						/** @var Team $other_team */
 | 
			
		||||
						foreach ($other_teams as $other_team) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user