diff --git a/Views/Main/ReduksiSampahSatpel/Index.cshtml b/Views/Main/ReduksiSampahSatpel/Index.cshtml index 58dec51..2ae045f 100644 --- a/Views/Main/ReduksiSampahSatpel/Index.cshtml +++ b/Views/Main/ReduksiSampahSatpel/Index.cshtml @@ -18,34 +18,115 @@ 2021 2020 - Tambah + Tambah - - - - Filter - - - Periiode Bulan - - - - Kecamatan - - Pilih salah satu - - - - - Tutup - Terapkan + + + + Tambah Reduksi Sampah + + + + + + + + Jenis Lokasi + * + + + Pilih salah satu + Komposting + Maggot + + + + + + + + + Lokasi* + + + Pilih salah satu + + + + + + + + + Alamat + + + + + + + + + + Bukti Kegiatan + * + + + Ukuran Maksimal 5MB + + + + + + + + Keterangan Kegiatan* + + + + + + + + + + Tanggal Pelaksanaan Kegiatan + * + + + + + + + + + + Pelaksana Kegiatan* + + + + + + + + + + Batal + + + Simpan + + + + close + - + @@ -93,6 +174,28 @@ { data: 'gambar' }, ] }); + + $('#jenis_lokasi').on('change', function() { + const jenisLokasi = $(this).val(); + + if (jenisLokasi) { + $('#formDetail').removeClass('hidden').hide().fadeIn(300); + populateLokasiDropdown(jenisLokasi); + resetForm(); + } else { + $('#formDetail').fadeOut(300); + } + }); }); + + function closeModal() { + // Reset form + $('#formTambah')[0].reset(); + $('#edit_mode').val('false'); + $('#modal_title').text('Tambah Reduksi Sampah'); + + // Close modal + modal_tambah.close(); + } }