Add documentation time column to ticket list #774

This commit is contained in:
Ramon Gutierrez 2023-11-07 04:02:57 +08:00
parent d44323c097
commit 2344ec716b

View file

@ -112,6 +112,21 @@
field: 'status', field: 'status',
title: 'Status' title: 'Status'
}, },
{
field: 'flag_late_doc',
title: 'Documentation Time',
template: function (row, index, datatable) {
var tag = '';
if (!row.flag_late_doc) {
tag = '<span class="m-badge m-badge--success m-badge--wide">On Time</span>';
} else {
tag = '<span class="m-badge m-badge--danger m-badge--wide">Late</span>';
}
return tag;
}
},
{ {
field: 'Actions', field: 'Actions',
width: 110, width: 110,