diff --git a/Config/module.xml b/Config/module.xml index 1a0cd15..0d81f09 100644 --- a/Config/module.xml +++ b/Config/module.xml @@ -13,7 +13,7 @@ en_US fr_FR - 2.0.1 + 2.0.2 Gilles Bourgeat diff --git a/Controller/Admin/BordereauController.php b/Controller/Admin/BordereauController.php index e9690e2..db8a1b7 100644 --- a/Controller/Admin/BordereauController.php +++ b/Controller/Admin/BordereauController.php @@ -193,4 +193,19 @@ public function deleteBordereauAction(Request $request): Response return $this->listBordereauAction(); } + + /** + * @throws Exception + */ + #[Route('/bordereau/delete-multiple', name: 'delete-multiple', methods: 'POST')] + public function deletePackingSlipsAction(Request $request): Response + { + $filePaths = $request->get('filePaths'); + $fs = new Filesystem(); + foreach ($filePaths as $filePath){ + $fs->remove($filePath); + } + return $this->listBordereauAction(); + } + } diff --git a/I18n/backOffice/default/en_US.php b/I18n/backOffice/default/en_US.php index 673822c..da27065 100644 --- a/I18n/backOffice/default/en_US.php +++ b/I18n/backOffice/default/en_US.php @@ -17,6 +17,7 @@ 'Date' => 'Date', 'Delete' => 'Delete', 'Delete bordereau' => 'Delete bordereau', + 'Delete packing slips selected' => 'Delete packing slips selected', 'Destination' => 'Destination', 'Do not change' => 'Do not change', 'Do you want to clear label and tracking number for this order ?' => 'Do you want to clear label and tracking number for this order ?', diff --git a/I18n/backOffice/default/fr_FR.php b/I18n/backOffice/default/fr_FR.php index bfd3875..33bdfdd 100644 --- a/I18n/backOffice/default/fr_FR.php +++ b/I18n/backOffice/default/fr_FR.php @@ -18,6 +18,7 @@ 'Date' => 'Date', 'Delete' => 'Supprimer', 'Delete bordereau' => 'Supprimer le bordereau', + 'Delete packing slips selected' => 'Supprimer les bordereaux selectionnés', 'Destination' => 'Destination', 'Do not change' => 'Ne pas modifier', 'Do you want to clear label and tracking number for this order ?' => 'Voulez-vous supprimer cette étiquette et le n° de suivi ?', diff --git a/templates/backOffice/default/colissimo-label/bordereau-list.html b/templates/backOffice/default/colissimo-label/bordereau-list.html index 4c5c8e7..f225d0b 100644 --- a/templates/backOffice/default/colissimo-label/bordereau-list.html +++ b/templates/backOffice/default/colissimo-label/bordereau-list.html @@ -42,22 +42,29 @@ - +
+ {intl l="select all" d="colissimolabel.bo.default"} +
{if $bordereaux} - + + - - - - + + + + + {foreach from=$bordereaux item=bordereau} +
{intl d='colissimolabel.bo.default' l="Bordereau"}{intl d='colissimolabel.bo.default' l="Action"}
{intl d='colissimolabel.bo.default' l="Sel."}{intl d='colissimolabel.bo.default' l="Bordereau"}{intl d='colissimolabel.bo.default' l="Action"}
+ + {$bordereau['name']} @@ -75,15 +82,49 @@ {/foreach}
+
+
- {/if} + {/if} + {/block} {block name="javascript-last-call"} -{/block} \ No newline at end of file +{/block} \ No newline at end of file