feat: extend teamer dashboard

This commit is contained in:
Björn Fromme committed 2023-12-12 18:04:01 +01:00
1 parent 8ff59b3068
commit b5781df8d9
16 files changed
+286 -30

No files matched your search

@@ -0,0 +1,25 @@
<?php
namespace App\Controller\Teamer;
use App\Entity\Feedback;
use App\Model\AjaxModalResponseDto;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Http\Attribute\IsGranted;
class FeedbackController extends AbstractController
{
#[Route('/teamer/feedback/{uuid}', name: 'app_teamer_feedback')]
#[IsGranted('VIEW', subject: 'feedback')]
public function index(Feedback $feedback): JsonResponse
{
$response = new AjaxModalResponseDto();
$response->setContent($this->renderView('teamer/feedback/index.html.twig', [
'feedback' => $feedback,
]));
return $this->json($response);
}
}