Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 5682 | Rev 16822 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |

<?php
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
$currentUser    = $this->currentUserHelper();

$roleName = $currentUser->getUserTypeId();


$routeAdd       = $this->url('settings/degrees/add');
$routeDatatable = $this->url('settings/degrees');
$routeDashboard = $this->url('dashboard');

$allowAdd               = $acl->isAllowed($roleName, 'settings/degrees/add') ? 1 : 0;
$allowEdit              = $acl->isAllowed($roleName, 'settings/degrees/edit') ? 1 : 0;
$allowDelete            = $acl->isAllowed($roleName, 'settings/degrees/delete') ? 1 : 0;


$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));

$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));



$status_active = \LeadersLinked\Model\Degree::STATUS_ACTIVE;

$js = <<<JS
const urlsVar = {
        linkTable: '$routeDatatable',
        addUrl: '$routeAdd',
        allowAdd: '$allowAdd',
        allowEdit: '$allowEdit',
        allowDelete: '$allowDelete',
   }
JS;

$this->inlineScript()->appendScript($js);
$this->inlineScript()->appendFile('/react-bundles/settings/degrees/degreesBundle.js');
?>

<!-- Content Header (Page header) -->
<div id="degrees">
</div>