83 lines
3.5 KiB
PHP
Executable File
83 lines
3.5 KiB
PHP
Executable File
<div class="row" id="pt_onboarding" style="position: relative; bottom: 25px; display:none;">
|
|
<div class="col-xl-12">
|
|
<div class="card-body">
|
|
<ul class="nav nav-pills navtab-bg">
|
|
<li class="nav-item">
|
|
<a href="#form" data-toggle="tab" aria-expanded="false" class="nav-link px-3 py-2 active" id="general_tab">
|
|
<span class="mr-1"><i class="mdi mdi-contacts"></i></span>
|
|
<span class="d-none d-sm-inline-block">Policy</span>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="#KYC-DOC-tab" data-toggle="tab" aria-expanded="true" class="nav-link px-3 py-2" id="kyc_tab2">
|
|
<span class="mr-1"><i class="fa fa-file"></i></span>
|
|
<span class="d-none d-sm-inline-block">KYC Docs</span>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item" id="hide_file_upload" style="display: none;">
|
|
<a href="#fileupload" data-toggle="tab" aria-expanded="true" class="nav-link px-3 py-2" id="kyc_tab">
|
|
<span class="mr-1"><i class="fa fa-file"></i></span>
|
|
<span class="d-none d-sm-inline-block">File Upload</span>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item" id="hide_vehicle_tab" style="display: none;">
|
|
<a href="#vehicle-docs-tab" data-toggle="tab" aria-expanded="true" class="nav-link px-3 py-2" id="vehicle_tab">
|
|
<span class="mr-1"><i class="fa fa-file"></i></span>
|
|
<span class="d-none d-sm-inline-block">Vehicle Docs</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<div class="tab-content">
|
|
<?php include('policy_transaction_inception_form.php'); ?>
|
|
<?php include('drive_file_upload.php'); ?>
|
|
<?php include('client_kyc.php'); ?>
|
|
<?php include('vehicle_docs.php'); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('#kyc_tab').on('click', function(e) {
|
|
var ptId = $('#policy_tranction_primarykey').val();
|
|
|
|
if (!ptId) { // Check if ptId is empty or null
|
|
e.preventDefault(); // Prevent the tab from opening
|
|
$('#g_drive_file_upload_sbt_btn').hide()
|
|
toastr.warning('Please create Policy before proceeding to File Upload.');
|
|
}else{
|
|
$('#g_drive_file_upload_sbt_btn').show()
|
|
}
|
|
});
|
|
|
|
$('#kyc_tab2').on('click', function(e) {
|
|
var ptId = $('#policy_tranction_primarykey').val();
|
|
|
|
if (!ptId) { // Check if ptId is empty or null
|
|
e.preventDefault(); // Prevent the tab from opening
|
|
$('#btn_other_docs').hide()
|
|
toastr.warning('Please create Policy before proceeding to File Upload.');
|
|
}else{
|
|
$('#btn_other_docs').show()
|
|
}
|
|
});
|
|
|
|
$('#vehicle_tab').on('click', function(e) {
|
|
var ptId = $('#policy_tranction_primarykey').val();
|
|
|
|
if (!ptId) { // Check if ptId is empty or null
|
|
e.preventDefault(); // Prevent the tab from opening
|
|
$('#vehicle_file_upload_sbt_btn').hide()
|
|
toastr.warning('Please create Policy before proceeding to File Upload.');
|
|
}else{
|
|
$('#vehicle_file_upload_sbt_btn').show()
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
</script>
|