@ -140,7 +140,7 @@
< th class = "text-center" > Address< / th >
< th class = "text-center" > Remarks< / th >
< th class = "text-center" > No of trees< / th >
< th class = "text-center" > Details of Complaints < / th >
< th class = "text-center" > Applicant Request < / th >
< th class = "text-center no-sort" > Action< / th >
< / tr >
< / thead >
@ -512,6 +512,7 @@
function renderDetails(details) {
console.log(details);
let app = details.application;
let inspections = details.inspections;
@ -534,14 +535,17 @@
} else if (app.cby === "department") {
petitionerHtml = `
< div class = "col-md-6" >
<!-- <div class="col - md - 6" >
< p > < strong > Department:< / strong > ${app.dept_name}< / p >
< / div >
< / div > -->
< div class = "col-md-6" >
< p > < strong > Department:< / strong > ${app.dept_name ? app.dept_name : app.deptname}< / p >
< / div >
< div class = "col-md-6" >
< p > < strong > Designation:< / strong > ${app.designation}< / p >
< / div >
< div class = "col-md-6" >
< p > < strong > Govt Type:< / strong > ${app.govt_type}< / p >
< p > < strong > Govt Type:< / strong > ${app.govt_type ? app.govt_type : app.dgovt_type }< / p >
< / div >
< div class = "col-md-6" >
< p > < strong > Phone:< / strong > ${app.ph_no}< / p >
@ -793,6 +797,7 @@
method: 'GET',
contentType: 'application/json',
success: function (data) {
console.log(data);
$('#pageLoader').hide();
let tableContainer = $('#RequestListDatatable');
@ -820,23 +825,30 @@
{ data: 'zone', defaultContent: '-', className: 'text-center' },
{ data: 'ward', defaultContent: '-', className: 'text-center' },
{ data: 'cby', defaultContent: '-', className: 'text-center' },
/* {
data: null,
render: function (data, type, row) {
// public user
if (row.cby === "public") {
return row.p_name ?? "-";
}
// department user
if (row.cby === "department") {
let deptName = row.dept_name ? row.dept_name : "-";
let desg = row.designation ? row.designation : "";
return `${deptName} / ${desg}`;
}
return "-";
},
className: 'text-center'
},*/
{
data: null,
render: function (data, type, row) {
// public user
if (row.cby === "public") {
return row.p_name ?? "-";
}
// department user
if (row.cby === "department") {
let deptName = row.dept_name ? row.dept_name : "-";
let desg = row.designation ? row.designation : "";
return `${deptName} / ${desg}`;
}
return "-";
return row.p_name || row.dept_name || row.deptname || "-";
},
className: 'text-center'
},