admin/add: add ?mode=student toggle — hides admin header, keeps auth

This commit is contained in:
Pontoporeia
2026-04-15 13:42:36 +02:00
parent 0eb2e310f4
commit 150b5b1dac
3 changed files with 98 additions and 5 deletions

View File

@@ -7,3 +7,10 @@
- [x] Use `<fieldset>` for danger zones (semantic, with `<legend>` instead of `<div>`)
- [x] Update CSS: new `.param-*` classes for flat semantic layout
- [x] Exclude parametres sections from generic `.admin-body main > section` card styling via `aria-labelledby` prefix
## Add TFE: admin/student mode toggle
- [x] Add `?mode=student` query param to same add.php page
- [x] Student mode: no admin header/nav, just the form with a back-link
- [x] Admin mode: full admin header/nav, with "Mode étudiant ↗" toggle link (opens in new tab)
- [x] Auth guard stays the same — still requires admin login
- [x] Add `.student-body`, `.thesis-add-header`, `.mode-toggle`, `.form-footer` CSS