schema: validate against new TFE field spec

- add exemplaire_baiu, exemplaire_erg, cc4r, remarks;
- add is_ulb to jury;
- split jury_lecteurs into interne/externe in view;
- refactor admin edit form with backoffice fields;
- update public fiche to show promoteur ULB and split lecteurs
This commit is contained in:
Pontoporeia
2026-05-07 17:30:34 +02:00
parent 7793b6f86d
commit dce0e0b301
18 changed files with 280 additions and 38 deletions

19
TODO.md
View File

@@ -106,3 +106,22 @@
- [x] `templates/admin/index.php` — add "Exporter fichiers" button next to CSV export button
- [x] `Database::getAllThesisFilesForExport()` — query all thesis_files + identifier
- [x] `docs/export.md` — documentation en français pour administrateurs : fonctionnement, contenu du ZIP, procédure de restauration complète et partielle
## Validate & refactor TFE form fields (new spec)
- [x] Schema: add `exemplaire_baiu` and `exemplaire_erg` boolean columns to `theses`
- [x] Schema: add `jury_promoteur_ulb` boolean column to `thesis_supervisors`
- [x] Schema: persist `cc4r` checkbox in `theses` table
- [x] Schema: update `v_theses_full` view to include new columns + jury split (interne/externe/ULB)
- [x] Admin edit form: add `jury_points`, `remarks`, `exemplaire_baiu`, `exemplaire_erg` fields (Backoffice fieldset)
- [x] Admin edit form: add `promoteur_ulb` checkbox in jury fieldset
- [x] Admin edit form: reorder fields to match spec layout
- [x] Public TFE fiche: split lecteur·ice(s) into interne/externe
- [x] Public TFE fiche: add promoteur·ice ULB display
- [x] ThesisEditController: handle new fields in save()
- [x] ThesisCreateController: handle CC4r + is_ulb in jury methods
- [x] Database::updateThesis: include new columns (remarks, jury_points, exemplaire_baiu, exemplaire_erg, cc4r)
- [x] Database::setThesisJury: include is_ulb column
- [x] Database::getThesisJury: include is_ulb in SELECT
- [x] StudentEmail: use new jury_lecteurs_internes/externes and jury_promoteurs_ulb columns
- [x] Recapitulatif: show promoteur·ice ULB and lecteur·ices interne/externe
- [x] Migration: `014_tfe_form_fields.sql` — ALTER + view rebuild