Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev Autor Línea Nro. Línea
15392 efrain 1
<?php
2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
3
$currentUser    = $this->currentUserHelper();
4
 
5
$roleName = $currentUser->getUserTypeId();
6
 
7
$routeAdd       = $this->url('settings/aptitudes/add');
8
$routeDatatable = $this->url('settings/aptitudes');
9
$routeDashboard = $this->url('dashboard');
10
 
11
$allowAdd               = $acl->isAllowed($roleName, 'settings/aptitudes/add') ? 1 : 0;
12
$allowEdit              = $acl->isAllowed($roleName, 'settings/aptitudes/edit') ? 1 : 0;
13
$allowDelete            = $acl->isAllowed($roleName, 'settings/aptitudes/delete') ? 1 : 0;
14
 
15
$this->inlineScript()->appendFile($this->basePath('plugins/ckeditor/ckeditor.js'));
16
 
17
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
18
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
19
 
20
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
21
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
22
 
23
$js = <<<JS
24
const urlsVar = {
25
        linkTable: '$routeDatatable',
26
        addUrl: '$routeAdd',
27
        allowAdd: '$allowAdd',
28
        allowEdit: '$allowEdit',
29
        allowDelete: '$allowDelete',
30
   }
31
JS;
32
 
33
$this->inlineScript()->appendScript($js);
34
$this->inlineScript()->appendFile('/react-bundles/settings/aptitudes/aptitudesBundle.js');
35
?>
36
 
37
<!-- Content Header (Page header) -->
38
<div id="aptitudes">
39
</div>