mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
build javascript updates
This commit is contained in:
@ -46,6 +46,9 @@ function buildFormFields() {
|
|||||||
},
|
},
|
||||||
title: {},
|
title: {},
|
||||||
quantity: {},
|
quantity: {},
|
||||||
|
project_code: {
|
||||||
|
icon: 'fa-list',
|
||||||
|
},
|
||||||
priority: {},
|
priority: {},
|
||||||
parent: {
|
parent: {
|
||||||
filters: {
|
filters: {
|
||||||
@ -2665,6 +2668,18 @@ function loadBuildTable(table, options) {
|
|||||||
title: '{% trans "Description" %}',
|
title: '{% trans "Description" %}',
|
||||||
switchable: true,
|
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',
|
field: 'priority',
|
||||||
title: '{% trans "Priority" %}',
|
title: '{% trans "Priority" %}',
|
||||||
|
Reference in New Issue
Block a user