From 0ecbbdeffc514cdd93e67873eda2024f9932b3e6 Mon Sep 17 00:00:00 2001 From: Regiaaaaaa Date: Fri, 28 Nov 2025 08:42:30 +0700 Subject: [PATCH] feat: create success alert --- Views/ChecklistHarian/Input.cshtml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/Views/ChecklistHarian/Input.cshtml b/Views/ChecklistHarian/Input.cshtml index db064ed..ba1e58d 100644 --- a/Views/ChecklistHarian/Input.cshtml +++ b/Views/ChecklistHarian/Input.cshtml @@ -10,7 +10,7 @@

Input Checklist Rumah

- @@ -178,6 +178,31 @@ $(document).ready(function () { } }); + $('#BtnSimpanInput').on('click', function (e) { + e.preventDefault(); + + Swal.fire({ + title: 'Simpan Input Checklist Rumah?', + text: "Pastikan Input Sudah Benar.", + icon: 'question', + showCancelButton: true, + confirmButtonColor: '#22c55e', + cancelButtonColor: '#6b7280', + confirmButtonText: 'Simpan', + cancelButtonText: 'Batal' + }).then((result) => { + if (result.isConfirmed) { + Swal.fire({ + title: 'Berhasil!', + text: 'Input Checklist Rumah Berhasil Disimpan.', + icon: 'success', + confirmButtonText: 'OK', + confirmButtonColor: '#22c55e' + }); + } + }); + }); + $('#BtnSimpanKegiatan').on('click', function (e) { e.preventDefault();