2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 11:40:58 +00:00

BOM now uses DRF / ajax

This commit is contained in:
Oliver
2018-05-02 23:42:57 +10:00
parent be0797c6e6
commit 7d21c4ef1c
4 changed files with 103 additions and 31 deletions

View File

@ -1,3 +1,11 @@
function editButton(url, text='Edit') {
return "<button class='btn btn-success edit-button' type='button' url='" + url + "'>" + text + "</button>";
}
function deleteButton(url, text='Delete') {
return "<button class='btn btn-danger delete-button' type='button' url='" + url + "'>" + text + "</button>";
}
function renderLink(text, url) {
if (text && url) {
return '<a href="' + url + '">' + text + '</a>';