diff --git a/src/Controller/FollowUpController.php b/src/Controller/FollowUpController.php index a36ee12..2e5f023 100644 --- a/src/Controller/FollowUpController.php +++ b/src/Controller/FollowUpController.php @@ -21,6 +21,7 @@ class FollowUpController extends AbstractController $this->followUpService = $followUpService; } + #[Route('/admin/followup/{insee_code}/delete', name: 'admin_followup_delete', requirements: ['insee_code' => '\\d+'])] public function deleteFollowups(string $insee_code, EntityManagerInterface $em): Response { $stats = $em->getRepository(Stats::class)->findOneBy(['zone' => $insee_code]); @@ -224,4 +225,11 @@ class FollowUpController extends AbstractController 'icon' => FollowUpService::getFollowUpIcons()[$theme] ?? 'bi-question-circle', ]); } -} \ No newline at end of file + #[Route('/admin/followup/unused-stores', name: 'admin_followup_unused_stores')] + public function unusedStores(): Response + { + return $this->render('admin/followup_unused_stores.html.twig', [ + 'json_url' => 'https://complete-tes-commerces.fr/13/13001-aix-en-provence/json/aix-en-provence_last_stats.json' + ]); + } +} diff --git a/templates/admin/followup_unused_stores.html.twig b/templates/admin/followup_unused_stores.html.twig new file mode 100644 index 0000000..73a4e95 --- /dev/null +++ b/templates/admin/followup_unused_stores.html.twig @@ -0,0 +1,120 @@ +{% extends 'base.html.twig' %} + +{% block title %}Magasins inutilisés - Aix-en-Provence{% endblock %} + +{% block body %} +