build javascript updates

This commit is contained in:
Oliver 2023-05-13 22:17:26 +10:00
parent 9ac82a93d5
commit 3e27a3b739

View File

@ -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" %}',