fix starter
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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() ?>
|
||||
|
||||
Reference in New Issue
Block a user