fix starter

This commit is contained in:
CHIEFSOFT\ameye
2024-10-26 21:58:03 -04:00
parent 981ed8adcf
commit d01237f466
3 changed files with 36 additions and 2 deletions
+5 -1
View File
@@ -25,6 +25,10 @@ $routes->get('providers/todo', 'Provider::StartProviders');
$routes->get('providers/alerts', 'Provider::StartProviders');
$routes->get('providers/tasks', 'Provider::StartProviders');
$routes->get('providers/calendar', 'Provider::StartProviders');
$routes->get('reports', 'Provider::StartProviders');
$routes->get('reports', 'Provider::StartProviders');
//$routes->get('providers', 'Provider::StartProviders');
//$routes->get('providers', 'Provider::StartProviders');
$routes->get('providers/startprpcess/(:any)', 'Provider::StartProcess/$1');
+6
View File
@@ -80,6 +80,12 @@ class Provider extends SecureBaseController
return $this->providerSecurePage('product', $data);
}
public function StartProcess($productId){
// echo $productId;
// exit;
return redirect()->to("product/$productId");
}
public function alerts() {
$data = array();
$out = array();
+25 -1
View File
@@ -20,17 +20,41 @@
</span>
</div>
<div style="text-align: center;">
<button class="btn btn-success" type="button" >
<button class="btn btn-success" id="acc<?=$product['product_id']?>" type="button" onclick="startProcess('<?=$product['product_id']?>')" >
Get Started
</button>
</div>
<div id="selected_detail">
</div>
</div>
</div>
</div>
</div>
<!-- /main content -->
<script type="text/javascript">
<!--
function startProcess(link_id) {
if(confirm("Please confirm activation of this feature ?")) {
// do something
} else {
return false;
}
$('#selected_detail').html('Processing...');
$('#acc'+link_id).prop('disabled', true);
$.ajax({
url: "/providers/startprpcess/"+link_id
}).done(function (data) {
//$('#selected_detail').html(data);
$('#acc'+link_id).prop('disabled', false);
});
return false;
}
// -->
</script>
<?= $this->endSection() ?>