diff --git a/application/src/Controller/NodeController.php b/application/src/Controller/NodeController.php deleted file mode 100644 index 9542866..0000000 --- a/application/src/Controller/NodeController.php +++ /dev/null @@ -1,70 +0,0 @@ -loadEntityById($id); - $view = $this->view($relation, 200) - ->setTemplate('node/view/standard.html.twig') - ->setTemplateVar('node'); - - return $this->handleView($view); - } - - /** - * @Route("/node/{id}/law.{_format}", defaults={"_format"="html"}) - */ - public function law(int $id): RedirectResponse - { - $lawId = $this->loadEntityById($id)->getLaw()->getId(); - - return $this->redirectToRouteById('app_law_show', $lawId); - } - - /** - * @Route("/node/{id}/parents.{_format}", defaults={"_format"="html"}) - */ - public function parents(int $id): Response - { - /* - * @todo Implement - */ - } - - /** - * @Route("/node/{id}/childs.{_format}", defaults={"_format"="html"}) - */ - public function childs(int $id): Response - { - /* - * @todo Implement - */ - } - - protected function setEntityName(): void - { - $this->entityName = Relation::class; - } -} diff --git a/application/templates/node/node.html.twig b/application/templates/node/node.html.twig deleted file mode 100644 index 775430b..0000000 --- a/application/templates/node/node.html.twig +++ /dev/null @@ -1,9 +0,0 @@ -{% extends "frames/default.html.twig" %} -{% block title %} - {% trans %} - Node - {% endtrans %} -{% endblock %} -{% block sub_navigation %} - {% include 'frames/structure/navbar/node_sub.html.twig'%} -{% endblock %} \ No newline at end of file diff --git a/application/templates/node/structure/_list.html.twig b/application/templates/node/structure/_list.html.twig deleted file mode 100644 index 8f75ea5..0000000 --- a/application/templates/node/structure/_list.html.twig +++ /dev/null @@ -1,13 +0,0 @@ -{% if nodeList.isEmpty %} -{% trans %} -This list doesn't contain elements. -{% endtrans %} -{% else %} -