Enable editing of competition details and images in the admin panel
Adds a new POST route `/admin/competition/edit` to update competition data in the database, including handling image uploads and preserving existing images. Updates `replit.md` and `templates/admin/competitions.html` to include UI elements and logic for editing competitions. Replit-Commit-Author: Agent Replit-Commit-Session-Id: cd9a7d26-a4e5-4215-975c-c59f4ed1f06d Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 5f81296b-a857-4536-9a1e-2ccf05671a10 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d0a1d46d-d203-4308-bc6a-312ac7c0243b/cd9a7d26-a4e5-4215-975c-c59f4ed1f06d/EU15Bjz
This commit is contained in:
18
replit.md
18
replit.md
@@ -3,6 +3,24 @@
|
||||
## Overview
|
||||
Flask-based website for FTC Team 23344 with a modern dark theme (#000000 pure black background), comprehensive content management system, PostgreSQL database integration, and premium smooth-scrolling animations.
|
||||
|
||||
## Recent Changes (November 12, 2025)
|
||||
|
||||
### Admin Panel Enhancement: Competition Editing
|
||||
Added full CRUD functionality to the competitions admin panel:
|
||||
|
||||
**New Features:**
|
||||
- ✏️ **Edit Competition Cards**: Click the "Edit" button on any competition to modify its details
|
||||
- **Collapsible Edit Forms**: Each competition now has an inline edit form that expands/collapses
|
||||
- **Full Field Editing**: Edit season, event name, date, description, awards, and replace images
|
||||
- **Image Preservation**: Existing images are preserved unless a new one is uploaded
|
||||
- **Yellow Edit Buttons**: New amber/yellow themed edit buttons next to delete buttons
|
||||
|
||||
**Technical Implementation:**
|
||||
- New `/admin/competition/edit` route in Flask backend
|
||||
- Inline collapsible forms with JavaScript toggle functionality
|
||||
- Award text automatically converted between pipe-separated (database) and newline-separated (form) formats
|
||||
- Retains existing image if no new file uploaded
|
||||
|
||||
## Recent Changes (November 8, 2025)
|
||||
|
||||
### Latest UI/UX Refinements
|
||||
|
||||
Reference in New Issue
Block a user