Use free-jQgrid in session list #2803

pull/2818/head
Angel Fernando Quiroz Campos 6 years ago
parent 9cc926c19f
commit 8d9581f495
  1. 5
      assets/js/session_list.js
  2. 14
      main/session/session_list.php
  3. 2
      webpack.config.js

@ -0,0 +1,5 @@
import 'free-jqgrid';
import 'free-jqgrid/css/ui.jqgrid.bootstrap4.css';

@ -6,15 +6,23 @@
*
* @package chamilo.admin
*/
use Chamilo\CoreBundle\Framework\Container;
$cidReset = true;
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
SessionManager::protectSession(null, false);
$router = Container::getRouter();
$htmlHeadXtra[] = api_get_css(
$router->generate('legacy_public').'build/session_list.css'
);
$htmlHeadXtra[] = api_get_js_simple(
$router->generate('legacy_public').'build/session_list.js'
);
//Add the JS needed to use the jqgrid
$htmlHeadXtra[] = api_get_jqgrid_js();
SessionManager::protectSession(null, false);
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : null;
$idChecked = isset($_REQUEST['idChecked']) ? $_REQUEST['idChecked'] : null;

@ -13,6 +13,8 @@ Encore
.addEntry('app', './assets/js/app.js')
.addEntry('bootstrap', './assets/js/bootstrap.js')
.addEntry('session_list', './assets/js/session_list.js')
.addStyleEntry('css/app', './assets/css/app.scss')
.addStyleEntry('css/bootstrap', './assets/css/bootstrap.scss')

Loading…
Cancel
Save