From f44e5655f7525097b7c5f446edae5ff89ccc7671 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 20 Feb 2025 16:05:26 +0000 Subject: [PATCH] Bug 39179: Update batches table icons --- .../intranet-tmpl/prog/js/ill-batch-table.js | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/ill-batch-table.js b/koha-tmpl/intranet-tmpl/prog/js/ill-batch-table.js index 3ff97e50784..6b7e874ec4e 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/ill-batch-table.js +++ b/koha-tmpl/intranet-tmpl/prog/js/ill-batch-table.js @@ -126,17 +126,32 @@ var editButton = document.createElement("button"); editButton.setAttribute("type", "button"); - editButton.setAttribute("class", "editButton btn btn-xs btn-default"); + editButton.setAttribute("class", "editButton btn btn-default btn-xs"); editButton.setAttribute("data-batch-id", row.ill_batch_id); + + var editIcon = document.createElement("i"); + editIcon.setAttribute("class", "fa fa-pencil"); + editIcon.setAttribute("aria-hidden", "true"); + editIcon.style.pointerEvents = "none"; + editButton.appendChild(editIcon); + var whitespace = document.createTextNode("\u00A0"); + editButton.appendChild(whitespace); editButton.appendChild(document.createTextNode(ill_batch_edit)); var deleteButton = document.createElement("button"); deleteButton.setAttribute("type", "button"); deleteButton.setAttribute( "class", - "deleteButton btn btn-xs btn-danger" + "deleteButton btn btn-default btn-xs" ); deleteButton.setAttribute("data-batch-id", row.ill_batch_id); + var deleteIcon = document.createElement("i"); + deleteIcon.setAttribute("class", "fa fa-trash-can"); + deleteIcon.setAttribute("aria-hidden", "true"); + deleteIcon.style.pointerEvents = "none"; + deleteButton.appendChild(deleteIcon); + var whitespace = document.createTextNode("\u00A0"); + deleteButton.appendChild(whitespace); deleteButton.appendChild(document.createTextNode(ill_batch_delete)); div.appendChild(editButton); -- 2.43.0