add permohonan
This commit is contained in:
@@ -337,5 +337,60 @@
|
||||
});
|
||||
}
|
||||
|
||||
function verifyCIT(){
|
||||
|
||||
var boolbank = false,boolnorujukan = false,boolresit = false,boolinvoice = false;
|
||||
var bank = $('select[name="selectedbank"]').val();
|
||||
var norujukan = $('input[name="noresit"]').val();
|
||||
var resit = $('input[name="resit"]').val();
|
||||
var invoice = $('input[name="invoice"]').val();
|
||||
|
||||
|
||||
|
||||
if(bank !== '')
|
||||
{
|
||||
boolbank = true;
|
||||
}else{
|
||||
boolbank = false;
|
||||
}
|
||||
|
||||
if(norujukan !== '')
|
||||
{
|
||||
boolnorujukan = true;
|
||||
}else{
|
||||
boolnorujukan = false;
|
||||
}
|
||||
|
||||
if(resit)
|
||||
{
|
||||
boolresit = true;
|
||||
}else{
|
||||
boolresit = false;
|
||||
}
|
||||
|
||||
if(invoice)
|
||||
{
|
||||
boolinvoice = true;
|
||||
}else{
|
||||
boolinvoice = false;
|
||||
}
|
||||
|
||||
if(boolbank == true && boolnorujukan == true && boolresit == true && boolinvoice == true)
|
||||
{
|
||||
$("#terimahantar").prop('disabled', true);
|
||||
return true;
|
||||
|
||||
}else{
|
||||
$("#terimahantar").prop('disabled', false);
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
return false;
|
||||
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb pb-3">
|
||||
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
||||
<li class="breadcrumb-item"><a href="{{ route('permohonan.index') }}">Home</a></li>
|
||||
<li class="breadcrumb-item"><a href="{{ route('permohonan.index') }}">Permohonan</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Rekod</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<div class="modal-body">
|
||||
|
||||
<div class="container">
|
||||
<form method="post" action="{{ route('permohonan.cit') }}" enctype="multipart/form-data">
|
||||
<form method="post" action="{{ route('permohonan.cit') }}" enctype="multipart/form-data" onsubmit="verifyCIT()">
|
||||
@csrf
|
||||
<input type="hidden" id="mohonid" name="mohonid" value=""/>
|
||||
<div class="d-flex mb-2">
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Batal</button>
|
||||
<button type="submit" class="btn btn-success">Hantar</button>
|
||||
<button type="submit" class="btn btn-success" id="terimahantar">Hantar</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user