From 4d88bd8cc5ab52b4ff061aa5dc14e467640e8a4a Mon Sep 17 00:00:00 2001 From: Pontoporeia Date: Mon, 27 Apr 2026 20:38:45 +0200 Subject: [PATCH] edit.php: rework Fichiers fieldset layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Drop file-field.php partial for cover/banner (it added a second label) - Inline all three file inputs with admin-file-input wrapper - Move banner inside the Fichiers fieldset - Each entry: one label, one input, one small hint — no duplicate labels - Context-aware hints: 'Laisser vide pour conserver...' when file already exists --- TODO.md | 1 + app/templates/admin/edit.php | 57 ++++++++++++++++++++---------------- 2 files changed, 33 insertions(+), 25 deletions(-) diff --git a/TODO.md b/TODO.md index fba1064..552e6d7 100644 --- a/TODO.md +++ b/TODO.md @@ -7,6 +7,7 @@ - [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` +- [x] Rework Fichiers fieldset layout: inline file inputs (no partial double-label), banner moved inside fieldset, one label per field ## Overview diff --git a/app/templates/admin/edit.php b/app/templates/admin/edit.php index 2978b9c..4b20c82 100644 --- a/app/templates/admin/edit.php +++ b/app/templates/admin/edit.php @@ -100,9 +100,9 @@ Fichiers -
+
-
+
- + +
- $f['file_type'] !== 'cover'); - ?> + $f['file_type'] !== 'cover'); ?>
- +
  • @@ -146,26 +145,34 @@ - - - - -
    - -
    - -
    - Bannière actuelle - +
    + +
    + + PDF, JPG, PNG, MP4, ZIP. Max 50 MB par fichier. Pour les vidéos, un fichier .vtt de sous-titres peut être joint.
    - - - JPG, PNG ou WEBP. Format paysage recommandé (4:1). Max 5 MB.
    -
    + + +
    + +
    + +
    + Bannière actuelle + +
    + + + +
    +
    + +