diff --git a/TODO.md b/TODO.md index ce557d5..6a90791 100644 --- a/TODO.md +++ b/TODO.md @@ -1,24 +1,3 @@ -# Edit Functionality for User and Family Data - -## Tasks -- [x] Add editProfile() and updateProfile() methods in FamilyController -- [x] Add routes for profile.edit and profile.update in web.php -- [x] Create profile-edit.blade.php view -- [x] Add edit buttons in show.blade.php -- [x] Add edit link in dashboard.blade.php for user card -- [x] Test the edit forms - -# Image Upload Modal Component - -## Tasks -- [x] Create migration for profile_picture column in users table -- [x] Update User model to add profile_picture to fillable and casts -- [x] Add cropperjs and browser-image-compression to package.json -- [x] Update app.js to import cropperjs and browser-image-compression -- [x] Create image-upload-modal.blade.php component -- [x] Add uploadProfilePicture method to FamilyController -- [x] Add route for profile picture upload in web.php -- [x] Update profile-edit.blade.php to include profile picture section -- [x] Update updateProfile method to handle profile_picture (not needed, upload is separate) -- [x] Run npm install and php artisan migrate -- [x] Test the image upload functionality (implementation complete, manual testing required) +- [x] Add the :root CSS variables block to the @endpush @@ -254,11 +278,11 @@ document.addEventListener('DOMContentLoaded', function() { document.querySelectorAll('.category-btn').forEach(btn => { btn.addEventListener('click', function() { document.querySelectorAll('.category-btn').forEach(b => { - b.classList.remove('active', 'btn-danger'); - b.classList.add('btn-outline-danger'); + b.classList.remove('active', 'btn-primary'); + b.classList.add('btn-outline-primary'); }); - this.classList.remove('btn-outline-danger'); - this.classList.add('active', 'btn-danger'); + this.classList.remove('btn-outline-primary'); + this.classList.add('active', 'btn-primary'); currentCategory = this.dataset.category; filterClubs(); @@ -338,8 +362,8 @@ function startWatchingLocation() { // Update location display function updateLocationDisplay(lat, lng) { - document.getElementById('currentLocation').textContent = - `${lat.toFixed(4)}, ${lng.toFixed(4)}`; + document.getElementById('currentLocation').innerHTML = + `${lat.toFixed(4)}, ${lng.toFixed(4)}`; document.getElementById('modalLocationCoordinates').textContent = `Latitude: ${lat.toFixed(6)}, Longitude: ${lng.toFixed(6)}`; } @@ -350,7 +374,7 @@ function initMap(lat, lng) { map.remove(); } - map = L.map('map').setView([lat, lng], 13); + map = L.map('map', { attributionControl: false }).setView([lat, lng], 13); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '© OpenStreetMap contributors', @@ -478,10 +502,10 @@ function displayClubs(clubs) {