2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Add buttons to edit / delete a Test result

- Don't do nuthin yet!
This commit is contained in:
Oliver Walters
2020-05-17 00:04:45 +10:00
parent 05856a72cf
commit 82fe497787
4 changed files with 22 additions and 9 deletions

View File

@ -116,6 +116,19 @@ function loadStockTestResultsTable(table, options) {
},
{
field: 'buttons',
formatter: function(value, row) {
var pk = row.pk;
var html = `<div class='btn-group float-right' role='group'>`;
html += makeIconButton('fa-edit icon-blue', 'button-test-edit', pk, '{% trans "Edit test result" %}');
html += makeIconButton('fa-trash-alt icon-red', 'button-test-delete', pk, '{% trans "Delete test result" %}');
html += `</div>`;
return html;
}
},
]
});