mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
admin edit.php: add cover image + thesis file management fields
- Database: add deleteThesisFile() and handleCoverUpload() methods - ThesisEditController::load(): expose currentFiles + currentCover to view - ThesisEditController::save(): handle couverture upload/removal, per-file deletion (delete_files[]), and new thesis file uploads - edit.php template: new Fichiers fieldset with cover preview+remove, existing files list with delete checkboxes, new file upload input (mirrors add.php / partage.php)
This commit is contained in:
9
TODO.md
9
TODO.md
@@ -1,5 +1,14 @@
|
||||
# TFE Access Restriction Feature
|
||||
|
||||
## Admin Edit Form — File Management
|
||||
- [x] Add cover image upload/preview/remove to edit.php
|
||||
- [x] Add existing thesis files listing with per-file delete checkboxes
|
||||
- [x] Add new thesis files upload field (PDF, JPG, PNG, MP4, ZIP, VTT)
|
||||
- [x] Add `deleteThesisFile()` and `handleCoverUpload()` to Database.php
|
||||
- [x] Update `ThesisEditController::save()` to handle cover, file deletion, new uploads
|
||||
- [x] Update `ThesisEditController::load()` to expose `currentFiles` + `currentCover`
|
||||
|
||||
|
||||
## Overview
|
||||
Add access restriction for TFE attached files based on user email domain, with admin validation workflow.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user