update Index_signer

This commit is contained in:
KhatamNugraha
2023-09-07 13:41:46 +07:00
parent 38c24b07eb
commit 10c35e5393
2 changed files with 134 additions and 143 deletions

View File

@ -4,7 +4,7 @@
@endphp @endphp
<!--begin::Card--> <!--begin::Card-->
<meta name="csrf-token" content="{{ csrf_token() }}" /> <meta name="csrf-token" content="{{ csrf_token() }}" />fsddsfsf
<div class="card card-xxl-stretch mb-5 mb-xl-8"> <div class="card card-xxl-stretch mb-5 mb-xl-8">
<!--begin::Card body--> <!--begin::Card body-->
<div class="card-body pt-6"> <div class="card-body pt-6">

View File

@ -48,7 +48,7 @@
<!-- Modal body --> <!-- Modal body -->
<div class="modal-body"> <div class="modal-body">
<form class="form-horizontal" id="formSigner" action="{{ route($route[0] . '.postSigner') }}" <form class="form-horizontal" id="formSigner"
method="POST"> method="POST">
@csrf @csrf
<!-- Add your form fields here --> <!-- Add your form fields here -->
@ -98,8 +98,7 @@
<!-- Modal body --> <!-- Modal body -->
<div class="modal-body"> <div class="modal-body">
<form class="form-horizontal" id="formUpdateSigner" action="{{ route($route[0] . '.updateSigner') }}" <form class="form-horizontal" id="formUpdateSigner" >
method="POST">
@csrf @csrf
<!-- Add your form fields here --> <!-- Add your form fields here -->
<div class="form-group row"> <div class="form-group row">
@ -123,8 +122,7 @@
</div> </div>
<!-- Modal footer --> <!-- Modal footer -->
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-secondary btn-sm closeButtonUpdateSigner" <button type="button" class="btn btn-secondary btn-sm closeButtonUpdateSigner" data-dismiss="modal">Close</button>
data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary btn-sm" id="submitFormUpdateSigner">Submit</button> <button type="button" class="btn btn-primary btn-sm" id="submitFormUpdateSigner">Submit</button>
</div> </div>
</form> </form>
@ -133,21 +131,19 @@
</div> </div>
</div> </div>
@push('customscript') @push('customscript')
<script> <script>
$(document).ready(function() { $(function () {
// Open the modal when the "Open Modal" button is clicked // Open the modal when the "Open Modal" button is clicked
$("#openModalBtnSigner").click(function() { $("#openModalBtnSigner").click(function() {
$("#signerModal").modal('show'); $("#signerModal").modal("show");
});
$(".closeButtonSigner").click(function() {
$("#signerModal").modal("hide");
}); });
$(".closeButtonSigner").click(function() {
$("#signerModal").modal('hide');
});
$(".closeButtonUpdateSigner").click(function() { $(".closeButtonUpdateSigner").click(function() {
$("#myModalEditSigner").modal('hide'); $("#myModalEditSigner").modal("hide");
}); });
// Handle form submission when the "Submit" button inside the modal is clicked // Handle form submission when the "Submit" button inside the modal is clicked
@ -271,12 +267,7 @@
} }
}) })
}) })
}); });
</script> </script>
@endpush @endpush
</x-default-layout> </x-default-layout>