WIP: And goes on

This commit is contained in:
Björn Fromme committed 2023-10-05 17:17:40 +02:00
1 parent 1097b84447
commit bea5edd615
7 files changed
+72 -32

No files matched your search

@@ -0,0 +1,28 @@
<?php
namespace App\Controller\Admin\Assignment;
use App\Entity\Assignment;
use App\Repository\ApplicationRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Http\Attribute\IsGranted;
class DetailController extends AbstractController
{
public function __construct(private readonly ApplicationRepository $applicationRepository)
{}
#[Route('/admin/assignment/detail/{uuid}', name: 'app_admin_assignment_detail')]
#[IsGranted('ROLE_ADMINISTRATIVE')]
public function index(Assignment $assignment): Response
{
$applications = $this->applicationRepository->findBy(['assignment' => $assignment]);
return $this->render('admin/assignment/detail.html.twig', [
'assignment' => $assignment,
'applications' => $applications,
]);
}
}
+1 -1
View File
@@ -144,7 +144,7 @@ class AdminMenuBuilder extends AbstractMenuBuilder
$menu->addChild('zurück zur Übersicht', [
'route' => 'app_admin_teamer_index',
'extras' => [
'icon' => 'back',
'icon' => 'arrow-left',
],
]);