Bug 39179: Update batches table icons

Sponsored-by: UKHSA - UK Health Security Agency
Signed-off-by: Jeremy Evans <Jeremy.Evans@ukhsa.gov.uk>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Pedro Amorim 2025-02-20 16:05:26 +00:00 committed by Katrin Fischer
parent 90e18bcaa3
commit 99d0471c8d
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 17 additions and 2 deletions

View File

@ -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);