feat(TransaksiNasabah): add table history download
parent
b1126209b1
commit
5f3268692b
|
|
@ -18,57 +18,57 @@ namespace BankSampahApp.Controllers.Main
|
|||
new {
|
||||
nama_file = "transaksi_bsu-bsi.pdf",
|
||||
tanggal_download = "2025-01-12",
|
||||
aksi = "<button class=\"btn btn-primary btn-sm\">Download</button>"
|
||||
aksi = "<button class=\"btn bg-bank-sampah-primary-500 w-full rounded-full text-white btn-sm\">Download</button>"
|
||||
},
|
||||
new {
|
||||
nama_file = "transaksi_nasabah.pdf",
|
||||
tanggal_download = "2025-01-11",
|
||||
aksi = "<button class=\"btn btn-primary btn-sm\">Download</button>"
|
||||
aksi = "<button class=\"btn bg-bank-sampah-primary-500 w-full rounded-full text-white btn-sm\">Download</button>"
|
||||
},
|
||||
new {
|
||||
nama_file = "transaksi_offtaker.pdf",
|
||||
tanggal_download = "2025-01-10",
|
||||
aksi = "<button class=\"btn btn-primary btn-sm\">Download</button>"
|
||||
aksi = "<button class=\"btn bg-bank-sampah-primary-500 w-full rounded-full text-white btn-sm\">Download</button>"
|
||||
},
|
||||
new {
|
||||
nama_file = "transaksi_bsu-bsi.pdf",
|
||||
tanggal_download = "2025-01-09",
|
||||
aksi = "<button class=\"btn btn-primary btn-sm\">Download</button>"
|
||||
aksi = "<button class=\"btn bg-bank-sampah-primary-500 w-full rounded-full text-white btn-sm\">Download</button>"
|
||||
},
|
||||
new {
|
||||
nama_file = "transaksi_nasabah.pdf",
|
||||
tanggal_download = "2025-01-08",
|
||||
aksi = "<button class=\"btn btn-primary btn-sm\">Download</button>"
|
||||
aksi = "<button class=\"btn bg-bank-sampah-primary-500 w-full rounded-full text-white btn-sm\">Download</button>"
|
||||
},
|
||||
new {
|
||||
nama_file = "transaksi_offtaker.pdf",
|
||||
tanggal_download = "2025-01-07",
|
||||
aksi = "<button class=\"btn btn-primary btn-sm\">Download</button>"
|
||||
aksi = "<button class=\"btn bg-bank-sampah-primary-500 w-full rounded-full text-white btn-sm\">Download</button>"
|
||||
},
|
||||
new {
|
||||
nama_file = "transaksi_bsu-bsi.pdf",
|
||||
tanggal_download = "2025-01-06",
|
||||
aksi = "<button class=\"btn btn-primary btn-sm\">Download</button>"
|
||||
aksi = "<button class=\"btn bg-bank-sampah-primary-500 w-full rounded-full text-white btn-sm\">Download</button>"
|
||||
},
|
||||
new {
|
||||
nama_file = "transaksi_nasabah.pdf",
|
||||
tanggal_download = "2025-01-05",
|
||||
aksi = "<button class=\"btn btn-primary btn-sm\">Download</button>"
|
||||
aksi = "<button class=\"btn bg-bank-sampah-primary-500 w-full rounded-full text-white btn-sm\">Download</button>"
|
||||
},
|
||||
new {
|
||||
nama_file = "transaksi_offtaker.pdf",
|
||||
tanggal_download = "2025-01-04",
|
||||
aksi = "<button class=\"btn btn-primary btn-sm\">Download</button>"
|
||||
aksi = "<button class=\"btn bg-bank-sampah-primary-500 w-full rounded-full text-white btn-sm\">Download</button>"
|
||||
},
|
||||
new {
|
||||
nama_file = "transaksi_bsu-bsi.pdf",
|
||||
tanggal_download = "2025-01-03",
|
||||
aksi = "<button class=\"btn btn-primary btn-sm\">Download</button>"
|
||||
aksi = "<button class=\"btn bg-bank-sampah-primary-500 w-full rounded-full text-white btn-sm\">Download</button>"
|
||||
},
|
||||
new {
|
||||
nama_file = "transaksi_nasabah.pdf",
|
||||
tanggal_download = "2025-01-02",
|
||||
aksi = "<button class=\"btn btn-primary btn-sm\">Download</button>"
|
||||
aksi = "<button class=\"btn bg-bank-sampah-primary-500 w-full rounded-full text-white btn-sm\">Download</button>"
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -38,4 +38,54 @@
|
|||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="h-6"></div>
|
||||
|
||||
<div class="card bg-white">
|
||||
<div class="card-body p-2">
|
||||
<div class="flex flex-row items-center justify-between p-4">
|
||||
<h2 class="card-title">
|
||||
History Download
|
||||
</h2>
|
||||
</div>
|
||||
<div class="w-full overflow-x-auto">
|
||||
<table class="table-zebra table w-full" id="example">
|
||||
<!-- head -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="w-[10%]">No</th>
|
||||
<th class="w-[25%]">Nama File</th>
|
||||
<th class="w-[50%]">Tanggal Download</th>
|
||||
<th class="w-[15%]">Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
<script type="text/javascript">
|
||||
var table;
|
||||
|
||||
$(document).ready(function () {
|
||||
table = new DataTable('#example', {
|
||||
ajax: '/Main/TransaksiLaporan/Table',
|
||||
scrollX: true,
|
||||
autoWidth: false,
|
||||
initComplete: function () {
|
||||
$('div.dt-scroll-body thead').css('visibility', 'collapse');
|
||||
},
|
||||
columns: [
|
||||
{ data: null, render: (d, t, r, m) => m.row + 1, orderable: false, searchable: false },
|
||||
{ data: 'nama_file' },
|
||||
{ data: 'tanggal_download' },
|
||||
{ data: 'aksi' },
|
||||
]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue