Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16822 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
15443 efrain 1
<?php
2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
3
$currentUser    = $this->currentUserHelper();
4
 
5
$roleName = $currentUser->getUserTypeId();
6
 
7
 
8
$routeAdd       = $this->url('settings/actitudes/add');
9
$routeDatatable = $this->url('settings/actitudes');
10
$routeDashboard = $this->url('dashboard');
11
 
12
$allowAdd               = $acl->isAllowed($roleName, 'settings/actitudes/add') ? 1 : 0;
13
$allowEdit              = $acl->isAllowed($roleName, 'settings/actitudes/edit') ? 1 : 0;
14
$allowDelete            = $acl->isAllowed($roleName, 'settings/actitudes/delete') ? 1 : 0;
15
 
16
 
16822 efrain 17
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
18
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
15443 efrain 19
 
16822 efrain 20
$this->inlineScript()->appendFile($this->basePath('assets/vendors/ckeditor/ckeditor.js'));
15443 efrain 21
 
22
 
23
 
16929 efrain 24
 
25
 
26
 
16822 efrain 27
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.css'));
28
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.css'));
15443 efrain 29
 
16822 efrain 30
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net/jquery.dataTables.js'));
31
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.js'));
32
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/dataTables.responsive.min.js'));
33
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.min.js'));
15443 efrain 34
 
35
 
16822 efrain 36
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
37
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
15443 efrain 38
 
39
 
40
 
16822 efrain 41
 
42
 
15443 efrain 43
$status_active = \LeadersLinked\Model\Skill::STATUS_ACTIVE;
44
 
45
$this->inlineScript()->captureStart();
46
echo <<<JS
47
    jQuery( document ).ready(function( $ ) {
48
 
16929 efrain 49
 
15443 efrain 50
 
16929 efrain 51
 
15443 efrain 52
 
16929 efrain 53
 
54
 
55
 
15443 efrain 56
    });
57
JS;
58
$this->inlineScript()->captureEnd();
59
 
60
$js = <<<JS
61
const urlsVar = {
62
        linkTable: '$routeDatatable',
63
        addUrl: '$routeAdd',
64
        allowAdd: '$allowAdd',
65
        allowEdit: '$allowEdit',
66
        allowDelete: '$allowDelete',
67
   }
68
JS;
69
 
70
$this->inlineScript()->appendScript($js);
71
$this->inlineScript()->appendFile('/react-bundles/settings/actitudes/actitudesBundle.js');
72
?>
73
 
74
<!-- Content Header (Page header) -->
75
<div id="actitudes">
76
</div>