From 566986bf68d1faf46dcd34dfd3b6baa909f690b7 Mon Sep 17 00:00:00 2001 From: Kevin Hendrawan Date: Fri, 21 Nov 2025 23:20:56 +0700 Subject: [PATCH] feat(KategoriSampah) : add field jenis sampah and column jenis_sampah --- .../Master/KategoriSampahController.cs | 40 +++++++++++------ Views/Master/KategoriSampah/Index.cshtml | 43 ++++++++++++++++++- 2 files changed, 70 insertions(+), 13 deletions(-) diff --git a/Controllers/Master/KategoriSampahController.cs b/Controllers/Master/KategoriSampahController.cs index a6a88db..2b7f38a 100644 --- a/Controllers/Master/KategoriSampahController.cs +++ b/Controllers/Master/KategoriSampahController.cs @@ -19,34 +19,50 @@ namespace BankSampahApp.Controllers.Master nama = "Kertas", jenis_sampah = "Anorganik", aksi = "
" + - "" + - "" + - "
", + "" + + "" + + "", }, new { nama = "Kardus", jenis_sampah = "Anorganik", aksi = "
" + - "" + - "" + - "
", + "" + + "" + + "", }, new { nama = "Plastik", jenis_sampah = "Anorganik", aksi = "
" + - "" + - "" + - "
", + "" + + "" + + "", }, new { nama = "Lain-lain", jenis_sampah = "Anorganik", aksi = "
" + - "" + - "" + - "
", + "" + + "" + + "", }, + new { + nama = "Sisa Makanan", + jenis_sampah = "Organik", + aksi = "
" + + "" + + "" + + "
", + }, + new { + nama = "Baterai Bekas", + jenis_sampah = "B3 Sampah Rumah Tangga", + aksi = "
" + + "" + + "" + + "
", + } }; var response = new diff --git a/Views/Master/KategoriSampah/Index.cshtml b/Views/Master/KategoriSampah/Index.cshtml index a25da86..2eb2c15 100644 --- a/Views/Master/KategoriSampah/Index.cshtml +++ b/Views/Master/KategoriSampah/Index.cshtml @@ -34,6 +34,18 @@ +
+
+ + Jenis Sampah + * + + +
+
+