Add security remove paste text in editor
Fix design for mobile formule product
This commit is contained in:
@@ -142,6 +142,8 @@ class ReserverController extends AbstractController
|
||||
|
||||
return $this->render('revervation/catalogue.twig',[
|
||||
'products' => $productRepository->findAll(),
|
||||
'tvaEnabled' => isset($_ENV['TVA_ENABLED']) && $_ENV['TVA_ENABLED'] === "true",
|
||||
|
||||
]);
|
||||
}
|
||||
#[Route('/formules', name: 'reservation_formules')]
|
||||
@@ -150,6 +152,8 @@ class ReserverController extends AbstractController
|
||||
|
||||
return $this->render('revervation/formules.twig',[
|
||||
'formules' => $formulesRepository->findBy(['isPublish'=>true],['updatedAt' => 'DESC']),
|
||||
'tvaEnabled' => isset($_ENV['TVA_ENABLED']) && $_ENV['TVA_ENABLED'] === "true",
|
||||
|
||||
]);
|
||||
}
|
||||
#[Route('/formules/{slug}', name: 'reservation_formule_show')]
|
||||
@@ -166,7 +170,9 @@ class ReserverController extends AbstractController
|
||||
}
|
||||
|
||||
return $this->render('revervation/formule/show.twig',[
|
||||
'formule' => $formule
|
||||
'formule' => $formule,
|
||||
'tvaEnabled' => isset($_ENV['TVA_ENABLED']) && $_ENV['TVA_ENABLED'] === "true",
|
||||
|
||||
]);
|
||||
}
|
||||
#[Route('/comment-reserver', name: 'reservation_workflow')]
|
||||
@@ -207,6 +213,7 @@ class ReserverController extends AbstractController
|
||||
|
||||
return $this->render('revervation/produit.twig', [
|
||||
'product' => $product,
|
||||
'tvaEnabled' => isset($_ENV['TVA_ENABLED']) && $_ENV['TVA_ENABLED'] === "true",
|
||||
'otherProducts' => array_slice($otherProducts, 0, 4)
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user