Commit Graph

283 Commits

Author SHA1 Message Date
pacnpal
a30f3ef644 Update dark mode styling for moderation dashboard to match site theme 2024-11-13 18:51:15 +00:00
pacnpal
2e1040e3a6 Add Moderation Dashboard title to the top of the dashboard view 2024-11-13 18:48:18 +00:00
pacnpal
751d21098d Add refresh button to moderation dashboard that maintains current filters when refreshing content 2024-11-13 18:46:32 +00:00
pacnpal
1acfe9d29e Improve moderation dashboard UI and functionality
- Add status tabs (Pending, Approved, Rejected, Escalated)
- Implement HTMX for smooth tab switching and status changes
- Add proper permissions for escalated submissions
- Change Status filter to Submission Type (Text/Photo)
- Move navigation into dashboard content
- Fix tab menu visibility and transitions
- Add contextual loading indicator
- Update styling to match dark theme
- Ensure consistent styling across components
2024-11-13 18:38:03 +00:00
pacnpal
6a9154ce69 Improve moderation dashboard UI and functionality
- Add status tabs (Pending, Approved, Rejected, Escalated)
- Implement HTMX for smooth tab switching and status changes
- Add proper permissions for escalated submissions
- Change Status filter to Submission Type (Text/Photo)
- Move navigation into dashboard content
- Fix tab menu visibility and transitions
- Add contextual loading indicator
- Update styling to match dark theme
- Ensure consistent styling across components
2024-11-13 18:37:36 +00:00
pacnpal
15e56c9770 Add CSRF token handling to HTMX requests:
- Configure HTMX to include CSRF token in request headers
- Add global HTMX configuration in dashboard.html
- Fix CSRF token missing error in moderation actions
2024-11-13 17:16:43 +00:00
pacnpal
09ee45f6c7 Fix duplicate menus in moderation dashboard:
- Move navigation to separate moderation_nav.html partial
- Include navigation only once in dashboard.html base template
- Remove duplicate navigation from child templates
2024-11-13 17:09:22 +00:00
pacnpal
177117f4d6 Improve moderation dashboard UI and HTMX integration:
- Create partial templates for dashboard, edit submissions, and photo submissions
- Update views to properly handle HTMX requests
- Fix duplicate UI issues when navigating
- Improve overall UI design and transitions
2024-11-13 17:04:42 +00:00
pacnpal
96341bfd82 ignore tailwind 2024-11-13 16:45:09 +00:00
pacnpal
f011d58c6d Fix duplicate UI in moderation dashboard by separating HTMX partial templates and full page templates 2024-11-13 16:34:31 +00:00
pacnpal
983c101ed1 Added support for Django's built-in superuser to access moderation features. Modified context processor and views to check both role-based and is_superuser permissions. 2024-11-13 16:13:54 +00:00
pacnpal
97a3555e81 Bypass Turnstile validation when DEBUG is True 2024-11-13 16:10:25 +00:00
pacnpal
ec626b4124 Disable Cloudflare Turnstile on login/signup pages when DEBUG is True 2024-11-13 15:56:42 +00:00
pacnpal
537ea0fc07 Improve code readability in moderation models using walrus operator 2024-11-13 15:51:54 +00:00
pacnpal
be07a17460 Improve code readability with boolean expressions and better control flow 2024-11-13 15:50:38 +00:00
pacnpal
1c03e4acb8 Improve type hints and code organization in moderation views 2024-11-13 15:47:19 +00:00
pacnpal
a5ebeb51dc add tailwind to gitignore as generated on the fly 2024-11-13 15:42:57 +00:00
pacnpal
1ee4b00961 Add password confirmation, validation, and email notification for password changes 2024-11-13 15:17:07 +00:00
pacnpal
5a1fdb6d16 Set max width of settings container to 800px for better readability and focus 2024-11-13 15:05:56 +00:00
pacnpal
78355c60f9 Updated moderation link in navbar to point to dashboard instead of edit submissions - Improves navigation flow for moderators, admins, and superusers 2024-11-13 15:03:04 +00:00
pacnpal
d8a65f4e81 Verified admin and superuser access to moderation dashboard - Access control already properly implemented through ModeratorRequiredMixin with ADMIN and SUPERUSER roles included in permission checks 2024-11-13 14:57:49 +00:00
pacnpal
cac6335bb7 Fix stats cards styling on home page - Add consistent flex layout for perfect centering - Fix HTML structure in parks card - Standardize hover effects and shadows across all cards 2024-11-13 14:55:11 +00:00
pacnpal
7f4de7c2ec Fixed mod models 2024-11-13 14:53:31 +00:00
pacnpal
08e97f21b7 Reorganize moderation dashboard structure:
- Move from /moderation/admin to /moderation to avoid conflicts
- Improve template organization with partials
- Add HTMX-powered navigation and filtering
- Add smooth transitions and loading states
- Improve photo submission handling
- Add review notes functionality
- Add confirmation dialogs
2024-11-13 14:50:34 +00:00
pacnpal
9ee380c3ea Enhance moderation dashboard UI and UX:
- Add HTMX-powered filtering with instant updates
- Add smooth transitions and loading states
- Improve visual hierarchy and styling
- Add review notes functionality
- Add confirmation dialogs for actions
- Make navigation sticky
- Add hover effects and visual feedback
- Improve dark mode support
2024-11-13 14:38:38 +00:00
pacnpal
d2c9d02523 Enhance moderation dashboard UI and UX:
- Add HTMX-powered filtering with instant updates
- Add smooth transitions and loading states
- Improve visual hierarchy and styling
- Add review notes functionality
- Add confirmation dialogs for actions
- Make navigation sticky
- Add hover effects and visual feedback
- Improve dark mode support
2024-11-13 14:38:17 +00:00
pacnpal
75287c8994 upgrade to Django 5.1.3 and Python 3.13 2024-11-12 15:08:08 +00:00
pacnpal
d7a89d8725 fixing the home page 2024-11-06 19:09:56 +00:00
pacnpal
ff52f182fc Merge remote-tracking branch 'origin/main' 2024-11-05 23:37:13 +00:00
pacnpal
33b7c1a81a profile changes 2024-11-05 23:36:50 +00:00
pacnpal
8b93f67e31 Update django.yml 2024-11-05 16:54:52 -05:00
pacnpal
9df5ab931f Create django.yml 2024-11-05 16:53:24 -05:00
pacnpal
eb5d2acab5 fixed a bunch of things, hopefully didn't break things 2024-11-05 21:51:02 +00:00
pacnpal
2e8a725933 series of tests added with built-in django test support 2024-11-05 18:40:39 +00:00
pacnpal
ba226c861a code optimization for python 3.9+ 2024-11-05 15:19:55 +00:00
pacnpal
b23672134d fix error handling 2024-11-05 15:13:39 +00:00
pacnpal
11fccaaf06 fix location add 2024-11-05 15:11:45 +00:00
pacnpal
491be57ab2 initial geodjango implementation 2024-11-05 04:10:47 +00:00
pacnpal
c66fc2b6e3 docs 2024-11-04 18:34:12 +00:00
pacnpal
01e0a609d2 feat: Implement ride management views and utility functions
- Added functions for checking user privileges, handling photo uploads, preparing form data, and managing form errors.
- Created views for listing, creating, updating, and displaying rides, including category-specific views.
- Integrated submission handling for ride changes and improved user feedback through messages.
- Enhanced data handling with appropriate context and queryset management for better performance and usability.
2024-11-04 05:25:53 +00:00
pacnpal
ae913e757a add category views for each type of ride, add ride designers 2024-11-04 00:33:19 +00:00
pacnpal
07526dcba8 weird header stuff 2024-11-03 22:03:56 +00:00
pacnpal
ed585e6a56 fix commas 2024-11-03 20:21:39 +00:00
pacnpal
1b0fe4588e Fixed many things, like the home page not working 2024-11-03 19:06:21 +00:00
pacnpal
fa0214e249 Park_detail updates, making the map smaller, merging "Quick Facts" into the header. 2024-11-03 18:28:14 +00:00
pacnpal
61c5bb7367 okay okay okay i'll commit stop whining 2024-11-03 17:58:34 +00:00
pacnpal
7f2f7a0cfa okay fine i'll commit for the love of god 2024-11-03 17:55:06 +00:00
pacnpal
27eb239e97 okay fine 2024-11-03 17:47:26 +00:00
pacnpal
01c6004a79 ok 2024-11-01 03:35:53 +00:00
pacnpal
6265f82193 photos fix 2024-11-01 01:27:11 +00:00