Feat: Add popup window to display teamer info per application
This commit is contained in:
1 parent
585f86e45f
commit
67cc7bf4ed
8 files changed
+107
-20
No files matched your search
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controller\Admin\Application;
|
||||
|
||||
use App\Entity\Application;
|
||||
use App\Model\AjaxModalResponseDto;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
class InfoController extends AbstractController
|
||||
{
|
||||
#[Route('/admin/application/info/{uuid}', name: 'app_admin_application_info')]
|
||||
public function index(Application $application): JsonResponse
|
||||
{
|
||||
$response = new AjaxModalResponseDto();
|
||||
$response->setContent($this->renderView('admin/application/info.html.twig', [
|
||||
'application' => $application,
|
||||
]));
|
||||
|
||||
return $this->json($response);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user