refactor: align events admin pages with trips layout and add publish functionality
- Remove checkbox from manage_events.php form (publish via admin table instead) - Redesign admin_events.php to match admin_trips.php layout exactly - Add table-based actions with icon buttons (Edit, Publish/Unpublish, Delete) - Change button styling to match trips (btn classes with colors) - Add publish/unpublish toggle button with eye icon - Create toggle_event_published.php endpoint for publish status switching - Create delete_event.php endpoint for event deletion - Add AJAX functionality for instant publish/delete without page reload - Update .htaccess with new endpoint rewrite rules - Badge styling updated to match trips (bg-success, bg-warning) - Consistent sorting and filtering functionality
This commit is contained in:
@@ -118,7 +118,9 @@ RewriteRule ^logout$ src/processors/logout.php [L]
|
||||
RewriteRule ^process_trip$ src/processors/process_trip.php [L]
|
||||
RewriteRule ^process_event$ src/admin/process_event.php [L]
|
||||
RewriteRule ^toggle_trip_published$ src/processors/toggle_trip_published.php [L]
|
||||
RewriteRule ^toggle_event_published$ src/admin/toggle_event_published.php [L]
|
||||
RewriteRule ^delete_trip$ src/processors/delete_trip.php [L]
|
||||
RewriteRule ^delete_event$ src/admin/delete_event.php [L]
|
||||
|
||||
</IfModule>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user