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
@@ -49,7 +49,12 @@ if (!class_exists('ExportController')) {
<input type="hidden" name="csrf_token" value="<?= htmlspecialchars($_SESSION['csrf_token']) ?>">
<div>
<label for="csv_file">Fichier CSV</label>
<div class="admin-file-label-row">
<label for="csv_file">Fichier CSV</label>
<a href="/admin/actions/export.php?template=1" download class="btn btn--secondary btn--sm">
&#x2913; Télécharger un modèle CSV vide
</a>
</div>
<div class="admin-file-input">
<input type="file" id="csv_file"
name="csv_file"