feat: allow exporting an empty CSV template for imports

This commit is contained in:
Pontoporeia
2026-08-24 11:33:34 +02:00
parent 7938ab39c0
commit 5460041989
7 changed files with 51 additions and 5 deletions
+10
View File
@@ -6,6 +6,16 @@ Import of theses from the admin panel, plus the CSV structure and behaviour.
> `app/public/admin/index.php` — there is no separate `import.php` action. The
> `/admin/import.php` file only redirects to `/admin/`.
### Import modal
The import dialog (`app/templates/admin/partials/dialogs/import.php`) lets the
user pick a CSV file and submit it. It also exposes an **export empty CSV**
button, labelled **“Télécharger un modèle CSV vide”**, shown beside the “Fichier
CSV” label. It links to `/admin/actions/export.php?template=1` and downloads a
blank CSV whose header row matches the export headers (`ExportController::CSV_HEADERS`,
see below) so you can fill it in and re-import it.
---
## File format