diff --git a/public/static/buttons.js b/public/static/buttons.js index 9fa6efb..bca27ea 100644 --- a/public/static/buttons.js +++ b/public/static/buttons.js @@ -31,20 +31,4 @@ document.addEventListener('DOMContentLoaded', () => { toggleColorTheme(); updateButtonText(); }); -}); - -/** - * ----------------------- - * Sidebar toggle - * ----------------------- - */ - -function toggleSidebar() { - const sidebar = document.querySelector('.sidebar'); - sidebar.classList.toggle('collapsed'); -} - -document.addEventListener('DOMContentLoaded', () => { - const button = document.querySelector('.sidebar-toggle'); - button.addEventListener('click', toggleSidebar); }); \ No newline at end of file diff --git a/templates/base.html.twig b/templates/base.html.twig index 6f8599a..a27a828 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -11,12 +11,8 @@
diff --git a/templates/index.html.twig b/templates/index.html.twig index 37d9570..9c3ae97 100644 --- a/templates/index.html.twig +++ b/templates/index.html.twig @@ -1,5 +1,5 @@ {% extends 'base.html.twig' %} - +{% block actions_left %}{% endblock %} {% block main %}