feat: improve campsites and events management UX

- Add map-based location picker with centered pin for campsites (two-step process)
- Hide edit buttons for campsites not owned by current user
- Allow numbers in campsite names (fix validateName function)
- Prepopulate edit form with existing campsite data
- Preserve country/province selection when confirming location
- Add real-time filter functionality to campsites table
- Fix events publish button error handling (use output buffering cleanup)
- Improve AJAX response handling with complete callback

Changes:
- src/pages/bookings/campsites.php: Location mode UI, filter, edit form improvements
- src/config/functions.php: Allow numbers in validateName regex
- src/admin/toggle_event_published.php: Clean output buffers before JSON response
- src/admin/admin_events.php: Use complete callback instead of success/error handlers
This commit is contained in:
twotalesanimation
2025-12-05 09:20:48 +02:00
parent b52c46b67c
commit 9133b7bbc6
14 changed files with 350 additions and 75 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB