From ccb6cfb87bb2450cbc83a1804756458814eb6c4a Mon Sep 17 00:00:00 2001 From: Yuri Dimas Date: Wed, 5 Nov 2025 23:35:56 +0700 Subject: [PATCH] style: add page status lahan for dinas --- .../Controllers/StatusLahanController.cs | 50 ++++++++++++ Areas/Dinas/Views/StatusLahan/Index.cshtml | 79 +++++++++++++++++++ Areas/Shared/Layouts/App/_Sidebar.cshtml | 4 +- 3 files changed, 131 insertions(+), 2 deletions(-) create mode 100644 Areas/Dinas/Controllers/StatusLahanController.cs create mode 100644 Areas/Dinas/Views/StatusLahan/Index.cshtml diff --git a/Areas/Dinas/Controllers/StatusLahanController.cs b/Areas/Dinas/Controllers/StatusLahanController.cs new file mode 100644 index 0000000..92745ce --- /dev/null +++ b/Areas/Dinas/Controllers/StatusLahanController.cs @@ -0,0 +1,50 @@ +using Microsoft.AspNetCore.Mvc; + +namespace BankSampahApp.Areas.Dinas.Controllers +{ + [Area("Dinas")] + [Route("Dinas/[controller]/[action]")] + public class StatusLahanController : Controller + { + public IActionResult Index() + { + return View(); + } + + [HttpGet] + public IActionResult Table() + { + var data = new[] + { + new { + nama = "Swasta", + aksi = "
" + + "" + + "" + + "
", + }, + new { + nama = "Pribadi", + aksi = "
" + + "" + + "" + + "
", + }, + new { + nama = "Pemerintah", + aksi = "
" + + "" + + "" + + "
", + }, + }; + + var response = new + { + data = data + }; + + return Json(response); + } + } +} diff --git a/Areas/Dinas/Views/StatusLahan/Index.cshtml b/Areas/Dinas/Views/StatusLahan/Index.cshtml new file mode 100644 index 0000000..fde15cb --- /dev/null +++ b/Areas/Dinas/Views/StatusLahan/Index.cshtml @@ -0,0 +1,79 @@ +@{ + ViewData["Title"] = "Status Lahan"; +} + +
+
+ + Status Lahan + +
+ +
+ +
+
+ +
+ +
+
+ + + + + + + + + + +
NoNama Status LahanAksi
+
+
+ + + + + + \ No newline at end of file diff --git a/Areas/Shared/Layouts/App/_Sidebar.cshtml b/Areas/Shared/Layouts/App/_Sidebar.cshtml index 231763c..aa9f847 100644 --- a/Areas/Shared/Layouts/App/_Sidebar.cshtml +++ b/Areas/Shared/Layouts/App/_Sidebar.cshtml @@ -202,7 +202,7 @@
  • -
    +
    Master Data @@ -218,7 +218,7 @@
  • Kategori
  • Kategori Fasilitas
  • Mitra
  • -
  • Status Lahan
  • +
  • Status Lahan
  • Jenis Sampah
  • Kategori Sampah
  • Sub Kategori Sampah