style: add menu Data Verifikasi - Checklist Harian role Admin
parent
2505fd1062
commit
a9bcab0ccb
|
|
@ -0,0 +1,133 @@
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace BpsRwApp.Areas.Admin.Controllers
|
||||
{
|
||||
[Area("Admin")]
|
||||
[Route("Admin/[controller]/[action]")]
|
||||
public class DataVerifikasiChecklistHarianController : Controller
|
||||
{
|
||||
public IActionResult Index()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public IActionResult Table()
|
||||
{
|
||||
var data = new[]
|
||||
{
|
||||
new {
|
||||
tanggal = "22 Nov 2025",
|
||||
kelurahan = "Kebon Jeruk",
|
||||
rw = "04",
|
||||
mudah_terurai = "10/12",
|
||||
mudah_daur = "10/12",
|
||||
b3 = "10/12",
|
||||
residu = "10/12",
|
||||
jumlah_foto = "<button class=\"btn btn-xs btn-square me-2\" disabled><span class=\"icon icon-outline text-sm text-black\">image</span></button>22",
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<a href=\"#\" class=\"btn bg-white rounded-full btn-xs\">Detail</a>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
tanggal = "15 Sep 2023",
|
||||
kelurahan = "Pancoran",
|
||||
rw = "01",
|
||||
mudah_terurai = "10/12",
|
||||
mudah_daur = "10/12",
|
||||
b3 = "10/12",
|
||||
residu = "10/12",
|
||||
jumlah_foto = "<button class=\"btn btn-xs btn-square me-2\" disabled><span class=\"icon icon-outline text-sm text-black\">image</span></button>889",
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<a href=\"#\" class=\"btn bg-white rounded-full btn-xs\">Detail</a>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
tanggal = "5 Mei 2022",
|
||||
kelurahan = "Kembangan",
|
||||
rw = "04",
|
||||
mudah_terurai = "10/12",
|
||||
mudah_daur = "10/12",
|
||||
b3 = "10/12",
|
||||
residu = "10/12",
|
||||
jumlah_foto = "<button class=\"btn btn-xs btn-square me-2\" disabled><span class=\"icon icon-outline text-sm text-black\">image</span></button>22",
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<a href=\"#\" class=\"btn bg-white rounded-full btn-xs\">Detail</a>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
tanggal = "12 Des 2023",
|
||||
kelurahan = "Senen",
|
||||
rw = "04",
|
||||
mudah_terurai = "10/12",
|
||||
mudah_daur = "10/12",
|
||||
b3 = "10/12",
|
||||
residu = "10/12",
|
||||
jumlah_foto = "<button class=\"btn btn-xs btn-square me-2\" disabled><span class=\"icon icon-outline text-sm text-black\">image</span></button>889",
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<a href=\"#\" class=\"btn bg-white rounded-full btn-xs\">Detail</a>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
tanggal = "18 Mar 2025",
|
||||
kelurahan = "Kebayoran Baru",
|
||||
rw = "04",
|
||||
mudah_terurai = "10/12",
|
||||
mudah_daur = "10/12",
|
||||
b3 = "10/12",
|
||||
residu = "10/12",
|
||||
jumlah_foto = "<button class=\"btn btn-xs btn-square me-2\" disabled><span class=\"icon icon-outline text-sm text-black\">image</span></button>22",
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<a href=\"#\" class=\"btn bg-white rounded-full btn-xs\">Detail</a>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
tanggal = "21 Apr 2026",
|
||||
kelurahan = "Menteng",
|
||||
rw = "04",
|
||||
mudah_terurai = "10/12",
|
||||
mudah_daur = "10/12",
|
||||
b3 = "10/12",
|
||||
residu = "10/12",
|
||||
jumlah_foto = "<button class=\"btn btn-xs btn-square me-2\" disabled><span class=\"icon icon-outline text-sm text-black\">image</span></button>889",
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<a href=\"#\" class=\"btn bg-white rounded-full btn-xs\">Detail</a>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
tanggal = "27 Jul 2024",
|
||||
kelurahan = "Cilandak",
|
||||
rw = "04",
|
||||
mudah_terurai = "10/12",
|
||||
mudah_daur = "10/12",
|
||||
b3 = "10/12",
|
||||
residu = "10/12",
|
||||
jumlah_foto = "<button class=\"btn btn-xs btn-square me-2\" disabled><span class=\"icon icon-outline text-sm text-black\">image</span></button>22",
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<a href=\"#\" class=\"btn bg-white rounded-full btn-xs\">Detail</a>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
tanggal = "10 Okt 2023",
|
||||
kelurahan = "Cakung",
|
||||
rw = "04",
|
||||
mudah_terurai = "10/12",
|
||||
mudah_daur = "10/12",
|
||||
b3 = "10/12",
|
||||
residu = "10/12",
|
||||
jumlah_foto = "<button class=\"btn btn-xs btn-square me-2\" disabled><span class=\"icon icon-outline text-sm text-black\">image</span></button>889",
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<a href=\"#\" class=\"btn bg-white rounded-full btn-xs\">Detail</a>" +
|
||||
"</div>",
|
||||
},
|
||||
};
|
||||
|
||||
var response = new
|
||||
{
|
||||
data = data
|
||||
};
|
||||
|
||||
return Json(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,124 @@
|
|||
@{
|
||||
ViewData["Title"] = "Checklist Harian";
|
||||
}
|
||||
|
||||
<div class="breadcrumbs text-sm">
|
||||
<ul>
|
||||
<li class="text-gray-500"><a>Data Verifikasi</a></li>
|
||||
<li>Checklist Harian</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- Header -->
|
||||
<div class="grid grid-cols-1 gap-4 lg:grid-cols-2">
|
||||
<div class="prose">
|
||||
<h3 class="mb-2">Checklist Harian</h3>
|
||||
</div>
|
||||
<div class="justify-self-end lg:self-center">
|
||||
<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">
|
||||
<h3 class="text-lg font-bold">Filter</h3>
|
||||
<form action="#" method="get">
|
||||
<p class="py-4">
|
||||
<fieldset class="fieldset max-w-sm">
|
||||
<legend class="fieldset-legend">Bulan Awal</legend>
|
||||
<input type="month" class="input w-full">
|
||||
</fieldset>
|
||||
<fieldset class="fieldset max-w-sm">
|
||||
<legend class="fieldset-legend">Bulan Akhir</legend>
|
||||
<input type="month" class="input w-full">
|
||||
</fieldset>
|
||||
<fieldset class="fieldset max-w-sm">
|
||||
<legend class="fieldset-legend">Kecamatan</legend>
|
||||
<select class="select w-full">
|
||||
<option disabled selected>Pilih Kecamatan</option>
|
||||
</select>
|
||||
</fieldset>
|
||||
<fieldset class="fieldset max-w-sm">
|
||||
<legend class="fieldset-legend">Kelurahan</legend>
|
||||
<select class="select w-full">
|
||||
<option disabled selected>Pilih Kelurahan</option>
|
||||
</select>
|
||||
</fieldset>
|
||||
<fieldset class="fieldset max-w-sm">
|
||||
<legend class="fieldset-legend">RW</legend>
|
||||
<select class="select w-full">
|
||||
<option disabled selected>Pilih RW</option>
|
||||
</select>
|
||||
</fieldset>
|
||||
<fieldset class="fieldset max-w-sm">
|
||||
<legend class="fieldset-legend">Status</legend>
|
||||
<select class="select w-full">
|
||||
<option disabled selected>Pilih Status</option>
|
||||
</select>
|
||||
</fieldset>
|
||||
</p>
|
||||
<div class="modal-action">
|
||||
<button type="button" class="btn" onclick="modal_filter.close()">Tutup</button>
|
||||
<button type="submit" class="btn btn-neutral">Terapkan</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</dialog>
|
||||
|
||||
<div class="h-8"></div>
|
||||
|
||||
<div class="card bg-white shadow-sm">
|
||||
<div class="card-body p-0">
|
||||
<table class="table-zebra table" id="example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="w-[5%]">No</th>
|
||||
<th class="w-[20%]">Tanggal</th>
|
||||
<th class="w-[30%]">Kelurahan</th>
|
||||
<th class="w-[5%]">RW</th>
|
||||
<th class="w-[5%]">Mudah Terurai <br /> (Jumlah Checklist / Berat)</th>
|
||||
<th class="w-[5%]">Mudah Daur <br /> (Jumlah Checklist / Berat)</th>
|
||||
<th class="w-[5%]">B3 <br /> (Jumlah Checklist / Berat)</th>
|
||||
<th class="w-[5%]">Residu <br /> (Jumlah Checklist / Berat)</th>
|
||||
<th class="w-[10%]">Jumlah Foto</th>
|
||||
<th class="w-[10%]">Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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">
|
||||
var table;
|
||||
|
||||
$(document).ready(function () {
|
||||
table = new DataTable('#example', {
|
||||
ajax: '/Admin/DataVerifikasiChecklistHarian/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: 'tanggal' },
|
||||
{ data: 'kelurahan' },
|
||||
{ data: 'rw' },
|
||||
{ data: 'mudah_terurai' },
|
||||
{ data: 'mudah_daur' },
|
||||
{ data: 'b3' },
|
||||
{ data: 'residu' },
|
||||
{ data: 'jumlah_foto' },
|
||||
{ data: 'aksi' },
|
||||
]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
@ -114,7 +114,7 @@
|
|||
</details>
|
||||
</li>
|
||||
<li>
|
||||
<details @(new[] { "LaporanRw" }.Contains(controller) ? "open" : "")>
|
||||
<details @(new[] { "LaporanRw" , "DataVerifikasiChecklistHarian" }.Contains(controller) ? "open" : "")>
|
||||
<summary class="font-semibold text-primary-500">DATA VERIFIKASI</summary>
|
||||
<ul>
|
||||
<li>
|
||||
|
|
@ -124,7 +124,7 @@
|
|||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="text-gray-500">
|
||||
<a asp-area="Admin" asp-controller="DataVerifikasiChecklistHarian" asp-action="Index" class="text-gray-500 @(controller == "DataVerifikasiChecklistHarian" ? "menu-active" : "")">
|
||||
<span class="icon icon-fill">playlist_add_check</span>
|
||||
Checklist Harian
|
||||
</a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue