diff --git a/src/Controller/DefaultController.php b/src/Controller/DefaultController.php index ef69243..82c8146 100644 --- a/src/Controller/DefaultController.php +++ b/src/Controller/DefaultController.php @@ -40,25 +40,7 @@ class DefaultController extends AbstractController { $this->denyAccessUnlessGranted('ROLE_ADMIN'); - $creeds = $emi->getRepository(Reference::class)->findByType('creed'); - $belgic = $emi->getRepository(Reference::class)->findByType('belgic'); - $heidelberg = $emi->getRepository(Reference::class)->findByType('hc'); - $dort = $emi->getRepository(Reference::class)->findByType('cd'); - $wcf = $emi->getRepository(Reference::class)->findByType('wcf'); - $wsc = $emi->getRepository(Reference::class)->findByType('wsc'); - $wlc = $emi->getRepository(Reference::class)->findByType('wlc'); - $lbc = $emi->getRepository(Reference::class)->findByType('lbc'); - - return $this->render('editors/reference-editor.html.twig', [ - 'creeds' => ($creeds), - 'belgic' => ($belgic), - 'heidelberg' => ($heidelberg), - 'dort' => ($dort), - 'wcf' => ($wcf), - 'wsc' => ($wsc), - 'wlc' => ($wlc), - 'lbc' => ($lbc), - ]); + return $this->render('editors/reference-editor.html.twig'); } #[Route('/template-editor', name: 'app_template_editor')] diff --git a/templates/editors/reference-editor.html.twig b/templates/editors/reference-editor.html.twig index fe71852..c6094ed 100644 --- a/templates/editors/reference-editor.html.twig +++ b/templates/editors/reference-editor.html.twig @@ -5,49 +5,24 @@ - - - {% for c in creeds %} - - {% endfor %} - - - {% for c in belgic %} - - {% endfor %} - - - {% for c in heidelberg %} - - {% endfor %} - - - {% for c in dort %} - - {% endfor %} - - - {% for c in wcf %} - - {% endfor %} - - - {% for c in wsc %} - - {% endfor %} - - - {% for c in wlc %} - - {% endfor %} - - - {% for c in lbc %} - - {% endfor %} - + + + + + + + + + + + + + +    +