110 lines
4.3 KiB
Plaintext
110 lines
4.3 KiB
Plaintext
@{
|
|
ViewData["Title"] = "Checklist Harian";
|
|
}
|
|
|
|
<div class="breadcrumbs text-sm">
|
|
<ul>
|
|
<li class="text-gray-500"><a>Checklist Harian</a></li>
|
|
<li id="breadcrumb-active">Semua</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="grid grid-cols-1 gap-4 lg:grid-cols-2 mt-4">
|
|
<div class="prose">
|
|
<h3 class="mb-2">Data Checklist Rumah</h3>
|
|
</div>
|
|
<div class="justify-self-end lg:self-center">
|
|
<button class="btn rounded-full bg-white" onclick="modal_filter_checklist.showModal()">
|
|
<span class="icon icon-fill me-2">filter_list</span>
|
|
Filter
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="h-8"></div>
|
|
|
|
<!-- Tabs -->
|
|
<div class="tabs tabs-lift">
|
|
|
|
<!-- TAB 1 -->
|
|
<input type="radio" name="tab_checklist_harian" checked class="tab checked:text-white [--tab-bg:green]" aria-label="Semua" />
|
|
<div class="tab-content bg-base-100 border-base-300 p-0">
|
|
@await Html.PartialAsync("_TabIndexSemua")
|
|
</div>
|
|
|
|
<!-- TAB 2 -->
|
|
<input type="radio" name="tab_checklist_harian" class="tab checked:text-white [--tab-bg:green]" aria-label="Sudah Diverifikasi" />
|
|
<div class="tab-content bg-base-100 border-base-300 p-0">
|
|
</div>
|
|
|
|
<!-- TAB 3 -->
|
|
<input type="radio" name="tab_checklist_harian" class="tab checked:text-white [--tab-bg:green]" aria-label="Belum Terverifikasi" />
|
|
<div class="tab-content bg-base-100 border-base-300 p-0">
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Filter Modal -->
|
|
<dialog id="modal_filter_checklist" 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_checklist.close()">✕</button>
|
|
</div>
|
|
<form action="#" method="get">
|
|
<fieldset class="fieldset max-w-sm">
|
|
<legend class="fieldset-legend">Tahun</legend>
|
|
<select class="select w-full">
|
|
<option disabled selected>Pilih Tahun</option>
|
|
<option>2025</option>
|
|
<option>2024</option>
|
|
<option>2023</option>
|
|
</select>
|
|
</fieldset>
|
|
<div class="grid grid-cols-2 gap-4">
|
|
<fieldset class="fieldset">
|
|
<legend class="fieldset-legend">Bulan Awal</legend>
|
|
<input type="month" class="input w-full" placeholder="Pilih bulan">
|
|
</fieldset>
|
|
<fieldset class="fieldset">
|
|
<legend class="fieldset-legend">Bulan Akhir</legend>
|
|
<input type="month" class="input w-full" placeholder="Pilih bulan">
|
|
</fieldset>
|
|
</div>
|
|
<div class="modal-action">
|
|
<button type="button" class="btn rounded-full" onclick="modal_filter_checklist.close()">Bersihkan</button>
|
|
<button type="submit" class="btn btn-primary rounded-full text-white">Terapkan Filter</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</dialog>
|
|
|
|
@section Scripts {
|
|
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
|
|
<script src="https://cdn.datatables.net/2.3.4/js/dataTables.js"></script>
|
|
<script src="/plugins/datatables/dataTables.tailwindcss.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
|
|
var tableChecklist = new DataTable('#tableChecklist', {
|
|
ajax: '@Url.Action("Table", "ChecklistHarian")',
|
|
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: 'tanggal' },
|
|
{ data: 'mudah_terurai' },
|
|
{ data: 'material_daur_ulang' },
|
|
{ data: 'b3' },
|
|
{ data: 'residu' },
|
|
{ data: 'status' },
|
|
{ data: 'aksi', orderable: false, searchable: false }
|
|
]
|
|
});
|
|
|
|
});
|
|
</script>
|
|
} |