style: fix typo title and message success
parent
d48cc19ce5
commit
958bbe8b19
|
|
@ -1,6 +1,5 @@
|
|||
<div class="flex w-full flex-col items-end p-4">
|
||||
<button onclick="modal_add_surat_usulan.showModal()"
|
||||
class="btn btn-primary w-32 rounded-full text-white">
|
||||
<button onclick="modal_add_surat_usulan.showModal()" class="btn btn-primary w-32 rounded-full text-white">
|
||||
<span class="icon icon-fill me-2">add</span>
|
||||
Tambah
|
||||
</button>
|
||||
|
|
@ -25,8 +24,7 @@
|
|||
<dialog id="modal_add_surat_usulan" class="modal">
|
||||
<div class="modal-box relative w-full max-w-md rounded-2xl shadow-lg">
|
||||
<!-- Close Button -->
|
||||
<label onclick="modal_add_surat_usulan.close()"
|
||||
class="btn btn-sm btn-circle btn-ghost absolute top-3 right-3">
|
||||
<label onclick="modal_add_surat_usulan.close()" class="btn btn-sm btn-circle btn-ghost absolute top-3 right-3">
|
||||
✕
|
||||
</label>
|
||||
|
||||
|
|
@ -82,14 +80,14 @@
|
|||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$(document).ready(function () {
|
||||
$('#btnSimpanSuratUsulan').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
modal_add_surat_usulan.close();
|
||||
|
||||
Swal.fire({
|
||||
title: 'Simpan Profil RW?',
|
||||
title: 'Simpan Surat Susulan?',
|
||||
text: "Pastikan semua data sudah benar.",
|
||||
icon: 'question',
|
||||
showCancelButton: true,
|
||||
|
|
@ -102,7 +100,7 @@
|
|||
if (result.isConfirmed) {
|
||||
Swal.fire({
|
||||
title: 'Berhasil!',
|
||||
text: 'Profil RW berhasil disimpan.',
|
||||
text: 'Surat Susulan berhasil disimpan.',
|
||||
icon: 'success',
|
||||
confirmButtonText: 'OK',
|
||||
confirmButtonColor: '#22c55e'
|
||||
|
|
@ -111,4 +109,4 @@
|
|||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
Loading…
Reference in New Issue