mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-09-25 01:53:03 +02:00
feat: allow exporting an empty CSV template for imports
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user