From a6204f71613c4d27643049ee4fc704914bd8654b Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Tue, 28 Jan 2025 11:40:22 +0100
Subject: [PATCH] Bug 38984: Also make 'Actions' translatable

---
 .../prog/en/modules/labels/label-edit-batch.tt            | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt
index abbbfe853f7..ac8472deeeb 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt
@@ -154,7 +154,9 @@
                                                                 [% CASE "Barcode" %]
                                                                     <th>Barcode</th>
                                                                 [% CASE "Select" -%]
-                                                                    <th>Select</th>
+                                                                    <th class="NoSort">Select</th>
+                                                                [% CASE "Actions" -%]
+                                                                    <th class="NoSort">Actions</th>
                                                                 [% CASE %]
                                                                     <th>[% header_field.field_label | html %]</th>
                                                             [% END -%]
@@ -170,7 +172,6 @@
                                                             [% IF ( text_field.select_field ) %]
                                                                 <td class="actions">
                                                                     <a class="btn btn-default btn-xs submit-form-link" id="deletebatch" href="#" data-op="cud-delete" data-batch_id="[% batch_id | html %]" data-label_id="[% text_field.field_value | html %]" data-method="post" data-action="/cgi-bin/koha/labels/label-edit-batch.pl" data-confirmation-msg="Are you sure you want to delete this?"><i class="fa fa-trash-can"></i> Delete</a>
-
                                                                     <a class="btn btn-default btn-xs export" href="#" data-batch-id="[% batch_id | html %]" data-label-id="[% text_field.field_value | html %]"><i class="fa-solid fa-share-from-square"></i> Export</a>
                                                                 </td>
                                                                 <td><input type="checkbox" name="action" value="[% text_field.field_value | html %]"></td>
@@ -336,9 +337,6 @@
             [% END %]
             $("#batcht").kohaTable({
                 autoWidth: false,
-                columnDefs: [
-                    { targets: [-1, -2], orderable: false, searchable: false },
-                ],
                 order: [[0, "asc"]],
                 pagingType: "full",
             });
-- 
2.34.1