Maintenance Reset Password
This commit is contained in:
@@ -120,7 +120,8 @@
|
||||
<a class="btn btn-info btn-sm" href="{{ URL::to("/admin/users") }}/`+ aData["id"] +`" title="Lihat"><i class="fa fa-eye"></i></a>
|
||||
<a class="btn btn-warning btn-sm" href="{{ URL::to("/admin/users") }}/`+ aData["id"] +`/update" title="Ubah"><i class="fa fa-edit"></i></a>
|
||||
@csrf
|
||||
@method("DELETE")
|
||||
@method("DELETE")
|
||||
<a class="btn btn-success btn-sm btn_reset_password" href="{{ URL::to("/admin/users") }}/`+ aData["id"] +`/reset" title="Reset"><i class="fas fa-key"></i></a>
|
||||
<button type="submit" class="btn btn-danger btn-sm"title="Hapus"><i class="fa fa-trash"></i></button>
|
||||
</form>`);
|
||||
|
||||
@@ -177,6 +178,24 @@
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
$(document).on("click",".btn_reset_password",function (e){
|
||||
e.preventDefault();
|
||||
let url = $(this).attr("href");
|
||||
let test = Swal.fire({
|
||||
title: 'Password akan direset!?',
|
||||
showDenyButton: true,
|
||||
showCancelButton: false,
|
||||
confirmButtonText: 'Ya',
|
||||
denyButtonText: "Tidak",
|
||||
icon: "warning",
|
||||
}).then((result) => {
|
||||
/* Read more about isConfirmed, isDenied below */
|
||||
if (result.isConfirmed) {
|
||||
location.href = url;
|
||||
}
|
||||
})
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user