diff --git a/Views/Main/BankSampah/Index.cshtml b/Views/Main/BankSampah/Index.cshtml
index bbb777b..6ed6737 100644
--- a/Views/Main/BankSampah/Index.cshtml
+++ b/Views/Main/BankSampah/Index.cshtml
@@ -8,163 +8,8 @@
Bank Sampah
-
-
-
-
-
-
-
-
-
-
-
-
@@ -267,61 +131,9 @@
$('#example').on('click', '.btn-circle.btn-warning', function (e) {
e.preventDefault();
- // Get row data
- var row = table.row($(this).parents('tr')).data();
-
- // Set edit mode
- $('#edit_mode').val('true');
- $('#modal_title').text('Edit Data Nasabah');
-
- // Populate form with row data
- $('#nama').val(row.nama);
- $('#kabupaten').val(row.kabupaten);
- $('#kecamatan').val(row.kecamatan);
- $('#kelurahan').val(row.kelurahan);
- $('#id_bangunan').val(row.id_bangunan);
- $('#jenis').val(row.jenis);
-
- // Extract status from HTML badge
- var statusText = $(row.status).text().trim();
- $('#status').val(statusText);
-
- // Open modal
- modal_tambah.showModal();
+ // Redirect to ProfilNasabah Edit page
+ window.location.href = '/Main/ProfilNasabah/Edit';
});
});
-
- function closeModal() {
- // Reset form
- $('#formTambah')[0].reset();
- $('#edit_mode').val('false');
- $('#modal_title').text('Tambah Data Nasabah');
-
- // Close modal
- modal_tambah.close();
- }
-
- function submitForm(e) {
- e.preventDefault();
-
- var isEditMode = $('#edit_mode').val() === 'true';
-
- // TODO: Implement form submission logic
- Swal.fire({
- title: 'Berhasil!',
- text: isEditMode ? 'Data berhasil diperbarui' : 'Data berhasil ditambahkan',
- icon: 'success',
- confirmButtonText: 'OK',
- buttonsStyling: false,
- customClass: {
- confirmButton: 'btn bg-green-800 text-white hover:bg-green-900 px-4 py-2 rounded-full',
- },
- }).then(() => {
- closeModal();
-
- // Reload table
- table.ajax.reload();
- });
- }
}