bug fixes, senderID polishing, support fees, paperless partial
This commit is contained in:
@@ -76,6 +76,19 @@
|
||||
var rowID = cell.getData().id
|
||||
return "<a href='"+ base_url + "/senderids/"+rowID+"/edit' class='btn btn-link'>"+url+"</a>";
|
||||
}
|
||||
function cellDesign (cell, formatterParams){
|
||||
var value = cell.getValue();
|
||||
return "<span style='color:#54B4D3; font-weight:bold;'>" + value + "</span>";
|
||||
}
|
||||
function statusDesign (cell, formatterParams){
|
||||
var value = cell.getValue();
|
||||
if(value === 'Approved'){
|
||||
return "<span style='color:#3FB449; font-weight:bold;'>" + value + "</span>";
|
||||
}
|
||||
else{
|
||||
return "<span style='color:#E4A11B;'>" + value + "</span>";
|
||||
}
|
||||
}
|
||||
var table = new Tabulator("#senderIdsTable", {
|
||||
ajaxURL: "senderids/all",
|
||||
paginationSize: 15,
|
||||
@@ -91,26 +104,28 @@
|
||||
sorter: "string",
|
||||
formatter:link,
|
||||
},
|
||||
{
|
||||
title: "Country",
|
||||
field: "country",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Sender ID",
|
||||
field: "senderid",
|
||||
sorter: "string",
|
||||
formatter: cellDesign,
|
||||
},
|
||||
{
|
||||
title: "Status",
|
||||
field: "status",
|
||||
sorter: "string",
|
||||
formatter: statusDesign,
|
||||
},
|
||||
{
|
||||
title: "Network",
|
||||
field: "networkName",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Country",
|
||||
field: "country",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Created By",
|
||||
field: "createdBy",
|
||||
@@ -125,18 +140,18 @@
|
||||
|
||||
rowClick:function(e, row){
|
||||
var userID = row.getData().id;
|
||||
console.log(userID);
|
||||
console.log(userID);
|
||||
//$('#userEditModal').modal('show');
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
$('#keywordField').on('keyup', function(){
|
||||
console.log('up');
|
||||
var keyword = $(this).val();
|
||||
table.setData("senderids/all?keyword=" + keyword);
|
||||
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user