Feat: Add status to assignments to control applications

This commit is contained in:
Björn Fromme
2023-11-03 10:45:37 +01:00
parent 0d7f9afdfe
commit 49efa30e2a
5 changed files with 71 additions and 1 deletions
+8
View File
@@ -12,6 +12,7 @@ use Doctrine\ORM\EntityRepository;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\CollectionType;
use Symfony\Component\Form\Extension\Core\Type\IntegerType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
@@ -23,6 +24,13 @@ class AssignmentType extends AbstractType
public function buildForm(FormBuilderInterface $builder, array $options): void
{
$builder
->add('status', ChoiceType::class, [
'label' => 'Status',
'choices' => [
'offen' => Assignment::STATUS_OPEN,
'geschlossen' => Assignment::STATUS_CLOSED,
],
])
->add('availableDispositions', IntegerType::class, [
'label' => 'zu vergeben',
'required' => false,