{
data: null,
name: "Action",
title: "Action",
orderable: false,
render: function (row) {
return GetAction(row);
},
className: "dt-center actioncell prrow vtop"
},
function GetAction(row) {
var res = "";
// Change Vehicle button
res += '<button type="button" data-toggle="popover" class="btn btn-primary btnAccept ml-sm-4 actionbtn';
if (row.IsExpired) { res += ' enablepopover'; }
else if (isEmpty(row.TransitVehicle)) { res += ' enablepopover'; }
res += '" ';
res += 'title="" data-content="';
if (row.IsExpired) res += 'Application expired';
else if (isEmpty(row.TransitVehicle)) { res += 'No Transit Vehicle selected'; }
else res += 'Change Transit Vehicle';
res += '" ';
res += 'value="' + row.ApplicationId + '">';
res += '<i class="fa fa-check aria-hidden="true" style="font-size: 1.2rem;"></i>';
res += '</button>';
res += '<button type="button" data-toggle="popover" class="btn btn-danger btnReject ml-sm-4 actionbtn';
if (row.IsExpired) { res += ' enablepopover'; }
else if (isEmpty(row.TransitVehicle)) { res += ' enablepopover'; }
res += '" ';
res += 'title="" data-content="';
if (row.IsExpired) res += 'Application expired';
else if (isEmpty(row.TransitVehicle)) { res += 'No Transit Vehicle selected'; }
else res += 'Change Transit Vehicle';
res += '" ';
res += 'value="' + row.ApplicationId + '">';
res += '<i class="fa fa-times" aria-hidden="true" style="font-size: 1.2rem;"></i>';
res += '</button>'
//// Copy Application button
//res += '<button type="button" data-toggle="popover" class="btn btn-warning btnCopyapplication ml-sm-4 actionbtn" ';
//res += 'title="" data-content="Copy Transit Application" ';
//res += 'value="' + row.ApplicationId + '">';
//res += '<i class="far fa-clone" aria-hidden="true" style="font-size: 1.2rem;"></i>';
//res += '</button>';
return res;
}
data: null,
name: "Action",
title: "Action",
orderable: false,
render: function (row) {
return GetAction(row);
},
className: "dt-center actioncell prrow vtop"
},
function GetAction(row) {
var res = "";
// Change Vehicle button
res += '<button type="button" data-toggle="popover" class="btn btn-primary btnAccept ml-sm-4 actionbtn';
if (row.IsExpired) { res += ' enablepopover'; }
else if (isEmpty(row.TransitVehicle)) { res += ' enablepopover'; }
res += '" ';
res += 'title="" data-content="';
if (row.IsExpired) res += 'Application expired';
else if (isEmpty(row.TransitVehicle)) { res += 'No Transit Vehicle selected'; }
else res += 'Change Transit Vehicle';
res += '" ';
res += 'value="' + row.ApplicationId + '">';
res += '<i class="fa fa-check aria-hidden="true" style="font-size: 1.2rem;"></i>';
res += '</button>';
res += '<button type="button" data-toggle="popover" class="btn btn-danger btnReject ml-sm-4 actionbtn';
if (row.IsExpired) { res += ' enablepopover'; }
else if (isEmpty(row.TransitVehicle)) { res += ' enablepopover'; }
res += '" ';
res += 'title="" data-content="';
if (row.IsExpired) res += 'Application expired';
else if (isEmpty(row.TransitVehicle)) { res += 'No Transit Vehicle selected'; }
else res += 'Change Transit Vehicle';
res += '" ';
res += 'value="' + row.ApplicationId + '">';
res += '<i class="fa fa-times" aria-hidden="true" style="font-size: 1.2rem;"></i>';
res += '</button>'
//// Copy Application button
//res += '<button type="button" data-toggle="popover" class="btn btn-warning btnCopyapplication ml-sm-4 actionbtn" ';
//res += 'title="" data-content="Copy Transit Application" ';
//res += 'value="' + row.ApplicationId + '">';
//res += '<i class="far fa-clone" aria-hidden="true" style="font-size: 1.2rem;"></i>';
//res += '</button>';
return res;
}