diff --git a/Controllers/ChecklistHarianController.cs b/Controllers/ChecklistHarianController.cs index 5ab06c7..a5d2d08 100644 --- a/Controllers/ChecklistHarianController.cs +++ b/Controllers/ChecklistHarianController.cs @@ -32,7 +32,11 @@ namespace BpsRwApp.Controllers ? "
Verifikasi
" : "
Belum Verifikasi
"; - var aksi = $"Detail"; + var aksi = $@" +
+ Detail + Edit +
"; return new { @@ -99,5 +103,34 @@ namespace BpsRwApp.Controllers return Json(new { data }); } + + [HttpGet] + public IActionResult Edit(string tanggal) + { + if (string.IsNullOrEmpty(tanggal)) + return RedirectToAction("Index"); + + ViewBag.Tanggal = tanggal; + return View(); + } + + [HttpGet] + public IActionResult EditTable(string tanggal) + { + var data = Enumerable.Range(1, 10) + .Select(i => new + { + no = i, + alamat_rumah = $"Jalan Buah No. {10 + i}", + rw = (3 + i).ToString("D2"), + mudah_terurai = true, + material_daur = true, + b3 = true, + residu = true + }) + .ToList(); + + return Json(new { data }); + } } } diff --git a/Views/ChecklistHarian/Edit.cshtml b/Views/ChecklistHarian/Edit.cshtml new file mode 100644 index 0000000..bddae25 --- /dev/null +++ b/Views/ChecklistHarian/Edit.cshtml @@ -0,0 +1,223 @@ +@{ + ViewData["Title"] = "Edit Checklist Rumah"; +} + +
+ Checklist Harian + + Edit +
+ +
+

Edit Checklist Rumah

+ +
+ +
+
+ + +
+
+ + +
+
+ +
+
+ + + + + + + + + + + + + + +
NoAlamat RumahRWMudah TeruraiMaterial DaurB3ResiduPhoto
+
+
+ + + + + + + + + + + + + \ No newline at end of file