after a series of bug fixes plus Non MNO logic for Sender IDs, unfinished leave management and holiday modules
This commit is contained in:
@@ -58,6 +58,10 @@
|
||||
</div>
|
||||
|
||||
<div class="x_content">
|
||||
<div>
|
||||
<button id="senderid-download-xlsx" class="btn btn-success btn-sm"><i class="fa fa-file-excel-o"></i> Download XLSX</button>
|
||||
<button id="senderid-download-pdf" class="btn btn-danger btn-sm"><i class="fa fa-file-pdf-o"></i> Download PDF</button>
|
||||
</div>
|
||||
<div id="senderIdsTable"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -69,6 +73,10 @@
|
||||
|
||||
@section('javascript')
|
||||
<script src="{!! url('public/assets/vendors/tabulator/js/tabulator.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/xlsx.full.min.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.min.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.plugin.autotable.js') !!}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
function link(cell, formatterParams){
|
||||
@@ -104,11 +112,6 @@
|
||||
sorter: "string",
|
||||
formatter:link,
|
||||
},
|
||||
{
|
||||
title: "Country",
|
||||
field: "country",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Sender ID",
|
||||
field: "senderid",
|
||||
@@ -121,21 +124,32 @@
|
||||
sorter: "string",
|
||||
formatter: statusDesign,
|
||||
},
|
||||
{
|
||||
title: "Direct MNO",
|
||||
field: "direct_mno",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Country",
|
||||
field: "country",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Network",
|
||||
field: "networkName",
|
||||
sorter: "string",
|
||||
},
|
||||
|
||||
{
|
||||
title: "Created By",
|
||||
field: "createdBy",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Last Modified By",
|
||||
field: "modifiedBy",
|
||||
sorter: "string",
|
||||
}
|
||||
// {
|
||||
// title: "Last Modified By",
|
||||
// field: "modifiedBy",
|
||||
// sorter: "string",
|
||||
// }
|
||||
],
|
||||
|
||||
rowClick:function(e, row){
|
||||
@@ -144,7 +158,16 @@
|
||||
//$('#userEditModal').modal('show');
|
||||
},
|
||||
});
|
||||
|
||||
document.getElementById("senderid-download-xlsx").addEventListener("click", function(){
|
||||
table.download("xlsx", "senderid-list.xlsx", {sheetName:"Sheet 1"});
|
||||
});
|
||||
//trigger download of data.pdf file
|
||||
document.getElementById("senderid-download-pdf").addEventListener("click", function(){
|
||||
table.download("pdf", "client-list.pdf", {
|
||||
orientation:"portrait", //set page orientation to portrait
|
||||
title:"Click Mobile - Sender ID", //add title to report
|
||||
});
|
||||
});
|
||||
$('#keywordField').on('keyup', function(){
|
||||
console.log('up');
|
||||
var keyword = $(this).val();
|
||||
|
||||
Reference in New Issue
Block a user