Proyectos de Subversion LeadersLinked - Backend

Rev

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

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