Add buttons to edit / delete a Test result

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

No files matched your search

+13
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;
}
},
]
});