111 lines
3.6 KiB
Plaintext
111 lines
3.6 KiB
Plaintext
@{
|
|
ViewData["Title"] = "Laporan RW (RW)";
|
|
}
|
|
|
|
<div class="breadcrumbs text-sm mb-4">
|
|
<ul>
|
|
<li class="text-gray-500"><a>INPUT</a></li>
|
|
<li id="breadcrumb-active">Laporan RW</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="flex items-center justify-between mb-6">
|
|
<h2 class="text-xl font-semibold text-gray-800">Data Input Laporan RW</h2>
|
|
<div class="flex items-center gap-3">
|
|
|
|
<a asp-controller="LaporanRwRw"
|
|
asp-action="Create"
|
|
class="btn btn-primary rounded-full">
|
|
<span class="icon me-2">add</span>
|
|
Tambah
|
|
</a>
|
|
|
|
<button class="btn rounded-full bg-white" onclick="modal_filter.showModal()">
|
|
<span class="icon icon-fill me-2">filter_list</span>
|
|
Filter
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Filter Modal -->
|
|
<dialog id="modal_filter" class="modal modal-bottom sm:modal-middle">
|
|
<div class="modal-box w-full sm:max-w-sm">
|
|
<div class="flex items-center justify-between mb-4">
|
|
<h3 class="text-lg font-bold">Filter</h3>
|
|
<button type="button" class="btn btn-sm btn-circle btn-ghost" onclick="modal_filter.close()">✕</button>
|
|
</div>
|
|
|
|
<form id="filterForm">
|
|
|
|
<!-- Tahun -->
|
|
<fieldset class="fieldset max-w-sm">
|
|
<legend class="fieldset-legend">Tahun</legend>
|
|
<select id="tahunSelect" class="select w-full">
|
|
<option disabled selected>Pilih Tahun</option>
|
|
<option>2025</option>
|
|
<option>2024</option>
|
|
<option>2023</option>
|
|
</select>
|
|
</fieldset>
|
|
|
|
<!-- Status -->
|
|
<fieldset class="fieldset mt-4">
|
|
<legend class="fieldset-legend">Status</legend>
|
|
<select id="statusSelect" class="select w-full">
|
|
<option disabled selected>Pilih Status</option>
|
|
<option value="verifikasi">Verifikasi</option>
|
|
<option value="belum">Belum Verifikasi</option>
|
|
</select>
|
|
</fieldset>
|
|
|
|
<div class="modal-action">
|
|
<button type="button" class="btn" onclick="modal_filter.close()">Bersihkan</button>
|
|
<button type="submit" class="btn btn-neutral">Terapkan Filter</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</dialog>
|
|
|
|
|
|
<div class="card bg-white shadow-sm">
|
|
<div class="card-body p-0">
|
|
<table class="table w-full" id="tableRw">
|
|
<thead>
|
|
<tr>
|
|
<th>No</th>
|
|
<th>Bulan</th>
|
|
<th>Jumlah Rumah Memilah</th>
|
|
<th>Status</th>
|
|
<th>Gambar</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody></tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="/lib/jquery/jquery-3.7.1.js"></script>
|
|
<script src="/lib/datatables/dataTables.js"></script>
|
|
<script src="/plugins/datatables/dataTables.tailwindcss.js"></script>
|
|
<script type="text/javascript">
|
|
var table;
|
|
|
|
$(document).ready(function () {
|
|
table = new DataTable('#tableRw', {
|
|
ajax: '@Url.Action("Table", "LaporanRwRw")',
|
|
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 },
|
|
{ data: 'bulan' },
|
|
{ data: 'rumah_aktif_memilah' },
|
|
{ data: 'status' },
|
|
{ data: 'gambar' }
|
|
]
|
|
});
|
|
});
|
|
</script>
|