feat: allow overlapping assignments via flag set on individual teamers

This commit is contained in:
Björn Fromme
2025-12-15 15:06:32 +01:00
parent 4e92eebb39
commit a95291d4ec
6 changed files with 68 additions and 5 deletions
@@ -7,6 +7,7 @@ use App\Repository\TrainingRepository;
use Doctrine\ORM\EntityManagerInterface;
use Psr\Log\LoggerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\HttpFoundation\Request;
@@ -64,6 +65,10 @@ class SkillsController extends AbstractController
'Bestandsteamer' => Teamer::STATUS_EXISTING,
],
])
->add('allowOverlappingApplications', CheckboxType::class, [
'label' => 'Überlappende Bewerbungen erlauben',
'required' => false,
])
->getForm();
}
}