Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev Autor Línea Nro. Línea
3788 stevensc 1
<?php
66 efrain 2
use LeadersLinked\Model\JobDescription;
3
 
4
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
5
$currentUser    = $this->currentUserHelper();
6
 
7
$roleName = $currentUser->getUserTypeId();
8
 
9
$routeAdd       = $this->url('settings/jobs-description/add');
10
$routeDatatable = $this->url('settings/jobs-description');
846 geraldo 11
$routeImport    = $this->url('settings/jobs-description/import');
66 efrain 12
$routeDashboard = $this->url('dashboard');
13
 
14
$allowAdd               = $acl->isAllowed($roleName, 'settings/jobs-description/add') ? 1 : 0;
15
$allowEdit              = $acl->isAllowed($roleName, 'settings/jobs-description/edit') ? 1 : 0;
16
$allowDelete            = $acl->isAllowed($roleName, 'settings/jobs-description/delete') ? 1 : 0;
561 geraldo 17
$allowReport            = $acl->isAllowed($roleName, 'settings/jobs-description/report') ? 1 : 0;
846 geraldo 18
$allowImport            = $acl->isAllowed($roleName, 'settings/jobs-description/import') ? 1 : 0;
66 efrain 19
 
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
 
1227 geraldo 24
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/select2.js'));
25
$this->headLink()->appendStylesheet($this->basePath('plugins/select2/css/select2.css'));
26
$this->headLink()->appendStylesheet($this->basePath('plugins/select2-bootstrap4-theme/select2-bootstrap4.css'));
27
 
1175 geraldo 28
// Page Styles
29
$this->headLink()->appendStylesheet($this->basePath('css/pages/self-evaluation.css'));
30
 
14184 stevensc 31
$js = <<<JS
32
const linksVars = {
14186 stevensc 33
    add_link: '$routeAdd',
34
    table_link: '$routeDatatable',
35
    import_link: '$routeImport',
36
    dashboard_link: '$routeDashboard',
14184 stevensc 37
    permisions: {
38
        allowAdd: '$allowAdd',
39
        allowEdit: '$allowEdit',
40
        allowDelete: '$allowDelete',
41
        allowReport: '$allowReport',
42
        allowImport: '$allowImport'
43
    }
44
}
45
JS;
46
 
14185 stevensc 47
$this->inlineScript()->appendScript($js);
66 efrain 48
$this->inlineScript()->captureEnd();
14192 stevensc 49
$this->headLink()->appendStylesheet('/react-bundles/job_description/main.css');
14183 stevensc 50
$this->inlineScript()->appendFile('/react-bundles/job_description/jobDescription.js');
14185 stevensc 51
 
66 efrain 52
?>
14181 stevensc 53
<div id="react-job_description">
14269 stevensc 54
</div>