Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev Autor Línea Nro. Línea
3766 stevensc 1
<?php
1 www 2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
3
$currentUser    = $this->currentUserHelper();
4
$roleName       = $currentUser->getUserTypeId();
5
 
6
$routeAdd           = $this->url('jobs/add');
7
 
8
$routeDatatable   = $this->url('jobs');
9
 
10
$allowAdd = $acl->isAllowed($roleName, 'jobs/add') ? 1 : 0;
11
$allowDelete = $acl->isAllowed($roleName, 'jobs/delete') ? 1 : 0;
12
$allowEdit = $acl->isAllowed($roleName, 'jobs/edit') ? 1 : 0;
13
$allowUsersWhoApplied = $acl->isAllowed($roleName, 'jobs/users-who-applied') ? 1 : 0;
14
 
11128 stevensc 15
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
16
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
17
 
18
$this->headStyle()->captureStart();
19
echo <<<CSS
20
 
21
#gridTableUsersWhoApplied {
22
    display: flex;
23
    flex-flow: column;
24
    width: 100%;
25
}
26
 
27
#gridTableUsersWhoApplied thead {
28
    flex: 0 0 auto;
29
}
30
 
31
#gridTableUsersWhoApplied tbody {
32
    flex: 1 1 auto;
33
    display: block;
34
    overflow-y: auto;
35
    overflow-x: hidden;
36
}
37
 
38
#gridTableUsersWhoApplied tr {
39
    width: 100%;
40
    display: table;
41
    table-layout: fixed;
42
}
43
CSS;
44
$this->headStyle()->captureEnd();
45
 
11131 stevensc 46
$js = <<<JS
47
const linksVars = {
48
    link_add:"$routeAdd",
49
    link_table: "$routeDatatable",
50
    allowAdd: "$allowAdd",
51
    allowDelete: "$allowDelete",
52
    allowEdit: "$allowEdit",
53
    allowUsersWhoApplied: "$allowUsersWhoApplied",
54
    googleApi: "$google_map_key"
1 www 55
}
11131 stevensc 56
JS;
1 www 57
 
11131 stevensc 58
$this->inlineScript()->appendScript($js);
59
$this->headLink()->appendStylesheet('/react-bundles/jobs/main.css');
60
$this->inlineScript()->appendFile('/react-bundles/jobs/jobsBundle.js');
1 www 61
?>
3766 stevensc 62
 
1 www 63
<!-- Content Header (Page header) -->
11131 stevensc 64
<div id="jobs">
1 www 65
</div>