fix: only use destination's pickup values

This commit is contained in:
Björn Fromme committed 2024-01-28 17:49:46 +01:00
1 parent 85200e2960
commit 75bd055474
18 files changed
+286 -106

No files matched your search

@@ -0,0 +1,28 @@
<?php
namespace App\Controller\Admin\Assignment;
use App\Entity\Assignment;
use App\Form\AssignmentType;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Component\Security\Http\Attribute\IsGranted;
class PickupFormController extends AbstractController
{
#[Route('/admin/assignment/pickup-form', name: 'app_admin_assignment_pickup_form')]
#[IsGranted('ROLE_ADMINISTRATIVE')]
public function index(Request $request): Response
{
$assignment = new Assignment();
$form = $this->createForm(AssignmentType::class, $assignment);
$form->handleRequest($request);
return $this->render('admin/assignment/_form_pickup.html.twig', [
'form' => $form->createView(),
]);
}
}