30 Commits

Author SHA1 Message Date
Edwin
895c9ac08d Configure Apache to run as ubuntu user
- Change Apache user from www-data to ubuntu in systemd override
- Update file ownership to ubuntu:ubuntu for web directory
- Fix permission issues for git operations and file access
- Apache now runs with same user as file ownership
- Resolves permission denied errors for development workflow
2025-11-12 16:39:05 +00:00
Edwin
62459f336c 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
2025-11-12 16:30:00 +00:00
Edwin
4161c9739f Fix database schema and item handling
- Add missing created_at and updated_at columns to items table
- Update Item model to handle timestamp fields
- Fix ItemController to work with new database schema
- Resolves 500 Internal Server Error on /api/items endpoint
2025-11-12 16:29:45 +00:00
Edwin
d5ac2a21b3 Fix JavaScript tree reload after CRUD operations
- Add reloadTree() function to centralize tree updates
- Fix handleSaveEditItem to reload tree after item updates
- Fix handleAddItem to reload tree after adding items
- Fix handleDeleteItem to reload tree after item deletion
- Fix all category functions to reload tree after operations
- Replace broken Bootstrap.Modal.getInstance() with direct DOM manipulation
- Fix JavaScript syntax errors and missing braces
- Ensure tree updates automatically without manual page reload

Resolves issue where tree navigation was not updating after item modifications.
2025-11-12 16:29:35 +00:00
9f9617ca45 Add development documentation and enhance SPA navigation with category/item detail views
- Add DEVELOPMENT.md with complete LXC environment setup guide
- Implement dynamic category tree with item navigation in sidebar
- Add category detail view with items list via AJAX
- Add item edit form with delete functionality
- Enhance SPA routing to support query parameters for categories/items
- Update Bootstrap styling with icons and improved navigation
- Include SQLite database in repository for development
2025-11-12 09:51:01 +01:00
deb27490c2 Implement category tree via AJAX to avoid 500 errors on page load 2025-11-12 08:47:52 +01:00
953f831ab9 Temporarily disable tree building to fix 500 errors, likely due to database issues 2025-11-12 08:44:07 +01:00
03e2e2b13a Add size limit to sidebar HTML to prevent large output causing 500 errors 2025-11-12 08:42:09 +01:00
67c402a37a Enable category tree with limits to prevent 500 errors: max depth 5, max 20 items per category 2025-11-12 08:41:23 +01:00
bbc57a9d53 Implement category tree in sidebar using PHP-generated HTML to avoid Twig recursion issues 2025-11-12 08:40:22 +01:00
7c5ecd4b9b Fix category tree building to prevent infinite recursion on circular references 2025-11-12 08:37:50 +01:00
5549c67eb5 Replace sidebar menu with collapsible category tree showing items 2025-11-12 08:36:40 +01:00
8f072292c1 Organize scattered PHP files into scripts/ and tests/ directories 2025-11-12 08:34:20 +01:00
0622f40004 Update database and QR files 2025-11-11 18:27:06 +01:00
b06207810b Fix QR generation using save method 2025-11-11 18:24:53 +01:00
81fca09069 Regenerate QR on print if invalid 2025-11-11 18:23:01 +01:00
bfea1f4dfe Fix image update in edit, QR code generation and translations 2025-11-11 18:21:40 +01:00
c1957baab9 Update AGENTS.md with coding standards and commands 2025-11-11 18:17:54 +01:00
3ff85b8143 Translate list action buttons; add debug logging for item updates 2025-11-11 18:13:24 +01:00
e1cf2a3e46 Sanitize image file names to remove special characters; fix existing image paths 2025-11-11 18:10:26 +01:00
b1ce2ce3aa Add display of current image in edit modal 2025-11-11 18:09:51 +01:00
c7f199d61f Set uploads directory permissions to 777 for file uploads 2025-11-11 18:09:38 +01:00
413c7daee5 Add debug logging for image upload and QR generation 2025-11-11 18:07:20 +01:00
ec8beab484 Add close button to print QR page; fix QR generation to use file_put_contents 2025-11-11 18:04:57 +01:00
4ed2f075a6 Add enctype='multipart/form-data' to forms for file upload support 2025-11-11 18:03:42 +01:00
9fb5066f9b Change QR code output to SVG to avoid GD dependency; fix permissions for uploads 2025-11-11 18:02:19 +01:00
ef5bf3ecca Fix PDO type hint in ItemController to use global PDO class 2025-11-11 18:00:45 +01:00
2b21c79eff Add README.md with project description and usage instructions 2025-11-11 17:59:41 +01:00
a15c976106 Add new fields to items: id_code, image, location; implement QR code generation and printing; update translations and UI 2025-11-11 17:59:23 +01:00
921a74bbe2 first commit 2025-11-11 17:00:02 +01:00