From b7b22185ce04e478cad0abf5e4ff0a88af186ec7 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 Sponsored-by: UKHSA - UK Health Security Agency Signed-off-by: Jeremy Evans --- .../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 4b01ebf1b80..ea0b98e0b34 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/ill-batch-table.js +++ b/koha-tmpl/intranet-tmpl/prog/js/ill-batch-table.js @@ -125,17 +125,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.39.5