Rev 15392 | 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/aptitudes/add');
$routeDatatable = $this->url('settings/aptitudes');
$routeDashboard = $this->url('dashboard');
$allowAdd = $acl->isAllowed($roleName, 'settings/aptitudes/add') ? 1 : 0;
$allowEdit = $acl->isAllowed($roleName, 'settings/aptitudes/edit') ? 1 : 0;
$allowDelete = $acl->isAllowed($roleName, 'settings/aptitudes/delete') ? 1 : 0;
$this->inlineScript()->appendFile($this->basePath('plugins/ckeditor/ckeditor.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'));
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
$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/aptitudes/aptitudesBundle.js');
?>
<!-- Content Header (Page header) -->
<div id="aptitudes">
</div>