Example #1
0
 public static function listFlow()
 {
     $allFlow = Flow::paginate(Config::get('system.pagination'));
     $datagrid = new Datagrid();
     $datagrid->setFields(array('flowname' => 'Flow'));
     $datagrid->setFields(array('created_at' => 'Created'));
     $datagrid->setFields(array('updated_at' => 'Updated'));
     $datagrid->setAction('edit', 'editFlowModal', true, array('flowid'));
     // $datagrid->setAction('delete','deleteRole',true,array('userid'));
     $datagrid->setAction('step', 'step');
     $datagrid->setTable('flows', 'table table-bordered table-hover table-striped table-condensed');
     $datagrid->build($allFlow, 'flowid');
     return $datagrid->render();
 }
Example #2
0
 /**
  * Flow Step Managment function
  * Component : step, stepinfo, resetstepdata,  deletestep
  * Method : ajax post get
  * @return void
  * @author joharijumali@gmail.com
  **/
 public function get_step()
 {
     $data['flow'] = Str::title(Flow::find(URI::segment(5))->flowname);
     $data['steplist'] = Menu::flowtree(URI::segment(5));
     $data['allrole'] = Role::arrayRoles();
     $data['pagelist'] = $listpage = Page::listSteppages();
     return View::make('admin::modul.step', $data);
 }