FIX_ADD_BUTTON
This commit is contained in:
parent
528458be46
commit
02d90f4a80
@ -376,7 +376,8 @@
|
|||||||
"<'row'<'col-sm-12'tr>>" +
|
"<'row'<'col-sm-12'tr>>" +
|
||||||
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
|
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
|
||||||
|
|
||||||
buttons: [{
|
buttons: [
|
||||||
|
{
|
||||||
text: 'Upload <i class="mdi mdi-upload"></i>',
|
text: 'Upload <i class="mdi mdi-upload"></i>',
|
||||||
className: 'btn app-btn-primary mr-2', // custom class
|
className: 'btn app-btn-primary mr-2', // custom class
|
||||||
action: function(e, dt, node, config) {
|
action: function(e, dt, node, config) {
|
||||||
|
|||||||
@ -182,18 +182,6 @@
|
|||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="row" style="padding-bottom: 10px;">
|
|
||||||
<div class="col-6" style="align-self: center;">
|
|
||||||
<!-- <h4 style="position: relative;">Payout List <span id="payout_title"></span></h4> -->
|
|
||||||
</div>
|
|
||||||
<div class="col-5" style="align-self: right;"></div>
|
|
||||||
<div class="col-1" style="align-self: right;">
|
|
||||||
<button class="btn app-btn-primary mr-2" type="button"
|
|
||||||
onclick="window.location.href='<?= base_url('payout/invoices?type=add') ?>'">
|
|
||||||
Add
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
|
<table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
|
||||||
<thead class="bg-light">
|
<thead class="bg-light">
|
||||||
@ -269,6 +257,13 @@
|
|||||||
"<'row'<'col-sm-12'tr>>" +
|
"<'row'<'col-sm-12'tr>>" +
|
||||||
"<'row'<'col-sm-5'i><'col-sm-7'p>>", // Pagination at the bottom, without page length selector
|
"<'row'<'col-sm-5'i><'col-sm-7'p>>", // Pagination at the bottom, without page length selector
|
||||||
buttons: [
|
buttons: [
|
||||||
|
{
|
||||||
|
text: 'Add',
|
||||||
|
className: 'btn app-btn-primary mr-2', // custom class
|
||||||
|
action: function(e, dt, node, config) {
|
||||||
|
addInvoiceButton();
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
extend: 'collection',
|
extend: 'collection',
|
||||||
text: '<span class=" btn-custom"> Export </span><i class="mdi mdi-menu-down"></i>',
|
text: '<span class=" btn-custom"> Export </span><i class="mdi mdi-menu-down"></i>',
|
||||||
@ -361,4 +356,8 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function addInvoiceButton(){
|
||||||
|
window.location.href='<?= base_url('payout/invoices?type=add') ?>'
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
Loading…
Reference in New Issue
Block a user