Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 5668 | Rev 15499 | 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
 
27
$status_active = \LeadersLinked\Model\Industry::STATUS_ACTIVE;
28
 
5668 stevensc 29
$js = <<<JS
30
const urlsVar = {
31
        linkTable: '$routeDatatable',
32
        addUrl: '$routeAdd',
33
        allowAdd: '$allowAdd',
34
        allowEdit: '$allowEdit',
35
        allowDelete: '$allowDelete',
36
   }
37
JS;
38
 
39
$this->inlineScript()->appendScript($js);
40
$this->inlineScript()->appendFile('/react-bundles/settings/industries/industriesBundle.js');
1 www 41
?>
42
 
43
<!-- Content Header (Page header) -->
5668 stevensc 44
<div id="industries">
45
</div>