From 62459f336cfd4d7d9dc33fe328348ad9fc84c501 Mon Sep 17 00:00:00 2001 From: Edwin Date: Wed, 12 Nov 2025 16:30:00 +0000 Subject: [PATCH] Update templates and configuration - Fix item edit template with proper form structure - Update items template with correct Bootstrap classes - Fix Apache configuration for proper routing - Update main index.php for correct redirects - Improves UI consistency and navigation flow --- public/000-default.conf | 4 ++-- public/index.php | 37 ++++++++++++++++++++----------- templates/items.twig | 10 ++++++--- templates/partials/item_edit.twig | 10 +++++++++ 4 files changed, 43 insertions(+), 18 deletions(-) diff --git a/public/000-default.conf b/public/000-default.conf index 417b1ee..f248063 100755 --- a/public/000-default.conf +++ b/public/000-default.conf @@ -9,9 +9,9 @@ #ServerName www.example.com ServerAdmin webmaster@localhost - DocumentRoot /var/www/localhost/public + DocumentRoot /home/edwin/Documents/Projecten/Collections/public - + AllowOverride All diff --git a/public/index.php b/public/index.php index 4436344..ad9b7c7 100755 --- a/public/index.php +++ b/public/index.php @@ -106,27 +106,38 @@ $router->addRoute('GET', '/api/tree', function() { if ($depth > 5) return ''; $html = ''; foreach ($nodes as $node) { - $html .= '
  • '; + $html .= ''; + $html .= $indent . '├── '; + $html .= ' '; + $html .= ''; + $html .= htmlspecialchars($node['name']); $html .= ''; + $html .= ''; // Add items as sub-items if (!empty($node['items'])) { - $html .= ''; } // Add subcategories if (!empty($node['children'])) { - $html .= '