mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-10 10:57:52 +00:00
build javascript updates
This commit is contained in:
1 parent
9ac82a93d5
commit
3e27a3b739
1 file changed
+15
@@ -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" %}',
|
||||
|
||||
Reference in new issue
Block a user