mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
build javascript updates
This commit is contained in:
parent
9ac82a93d5
commit
3e27a3b739
@ -46,6 +46,9 @@ function buildFormFields() {
|
||||
},
|
||||
title: {},
|
||||
quantity: {},
|
||||
project_code: {
|
||||
icon: 'fa-list',
|
||||
},
|
||||
priority: {},
|
||||
parent: {
|
||||
filters: {
|
||||
@ -2665,6 +2668,18 @@ function loadBuildTable(table, options) {
|
||||
title: '{% trans "Description" %}',
|
||||
switchable: true,
|
||||
},
|
||||
{
|
||||
field: 'project_code',
|
||||
title: '{% trans "Project Code" %}',
|
||||
sortable: true,
|
||||
switchable: global_settings.PROJECT_CODES_ENABLED,
|
||||
visible: global_settings.PROJECT_CODES_ENABLED,
|
||||
formatter: function(value, row) {
|
||||
if (row.project_code_detail) {
|
||||
return `<span title='${row.project_code_detail.description}'>${row.project_code_detail.code}</span>`;
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'priority',
|
||||
title: '{% trans "Priority" %}',
|
||||
|
Loading…
Reference in New Issue
Block a user