diff --git a/src/Bundle/ChillThirdPartyBundle/Controller/AdminController.php b/src/Bundle/ChillThirdPartyBundle/Controller/AdminController.php new file mode 100644 index 000000000..031227159 --- /dev/null +++ b/src/Bundle/ChillThirdPartyBundle/Controller/AdminController.php @@ -0,0 +1,29 @@ +render('ChillThirdPartyBundle:Admin:index.html.twig'); + } + +} \ No newline at end of file diff --git a/src/Bundle/ChillThirdPartyBundle/Menu/AdminMenuBuilder.php b/src/Bundle/ChillThirdPartyBundle/Menu/AdminMenuBuilder.php index ec44d8339..170cc3918 100644 --- a/src/Bundle/ChillThirdPartyBundle/Menu/AdminMenuBuilder.php +++ b/src/Bundle/ChillThirdPartyBundle/Menu/AdminMenuBuilder.php @@ -33,7 +33,9 @@ class AdminMenuBuilder implements LocalMenuBuilderInterface return; } - $menu->addChild('Third party') + $menu->addChild('Third party', [ + 'route' => 'chill_thirdparty_admin_index', + ]) ->setAttribute('class', 'list-group-item-header') ->setExtras(['order' => 3000, 'header' => true]); @@ -44,6 +46,6 @@ class AdminMenuBuilder implements LocalMenuBuilderInterface public static function getMenuIds(): array { - return ['admin_section']; + return ['admin_section', 'admin_thirdparty']; } } diff --git a/src/Bundle/ChillThirdPartyBundle/Resources/views/Admin/index.html.twig b/src/Bundle/ChillThirdPartyBundle/Resources/views/Admin/index.html.twig new file mode 100644 index 000000000..4511d722e --- /dev/null +++ b/src/Bundle/ChillThirdPartyBundle/Resources/views/Admin/index.html.twig @@ -0,0 +1,13 @@ +{% extends "@ChillMain/Admin/layoutWithVerticalMenu.html.twig" %} + +{% block vertical_menu_content %} + {{ chill_menu('admin_thirdparty', { + 'layout': '@ChillThirdParty/Admin/menu.html.twig', + }) }} +{% endblock %} + +{% block layout_wvm_content %} + {% block admin_content %} +