Commit Graph

8 Commits

Author SHA1 Message Date
57db63074b Add view all barcodes feature with print functionality
Added a new feature that allows viewing all product barcodes for a tenant
in a grid layout with print-optimized styling. This makes it easy to print
barcode sheets for all products at once.

Changes:
- Add new route /<tenant_id>/barcodes for viewing all barcodes
- Create view_all_barcodes() function in routes/admin.py
- Add all_barcodes.html template with responsive grid and print CSS
- Add "View All Barcodes" button to tenant index page
- Print layout optimized for 3-column barcode sheets
2025-10-20 17:56:52 -04:00
bb01ca2110 Add barcode modal with configurable barcode type setting
- Add barcode_type column to tenants table (default: code128)
- Add barcode type setting in tenant settings page (Code 128, EAN-13, QR Code)
- Replace barcode page link with modal button on tenant dashboard
- Add barcode modal that displays product barcode using tenant's configured type
- Remove old generate_barcode_page route, function, and template
- Clean up unused imports in admin.py
2025-10-20 17:49:18 -04:00
f781cdf602 Add dynamic custom field display and remove redundant admin routes
Major improvements to tenant management:
1. Dynamic field display - Product lists now automatically show all custom fields based on tenant configuration (e.g., inventory, custom attributes)
2. Fixed Jinja2 template scoping issue - Product field values now correctly display in edit forms using selectattr filter
3. Simplified URL structure - Removed redundant /tenant/admin/ routes, all product management now at /tenant/ root
4. Enhanced tenant landing page - Added delete functionality with confirmation modal, shows all custom fields except images
5. Updated all routes and redirects to use simplified paths (/tenant/add, /tenant/edit, etc.)

This consolidates the interface so /tenant/ serves as the main dashboard with full product management capabilities, while /tenant/settings handles configuration.
2025-10-20 17:11:38 -04:00
92eb45fc8c Fix product image not saving/displaying in tenant admin
Fixed two issues with product images:
1. Images weren't being preserved when editing other product fields - added logic to keep existing image value when no new image is uploaded
2. Image URLs had double underscores (e.g., /images/123__image.jpg) due to field names starting with underscore - now strips leading underscore from field name when constructing image paths
2025-10-20 16:45:58 -04:00
000c054734 fixing field edits and adding custom fileds 2025-06-19 15:46:22 -04:00
705f2859fa made multi tenant 2025-06-19 14:25:42 -04:00
f041266ac3 adding authentication and image support 2025-06-19 11:57:47 -04:00
f78f5ce9f9 refactoring project 2025-05-14 15:30:27 -04:00