Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 8444 | Rev 8753 | 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
 
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
 
19
 
8450 stevensc 20
 
1 www 21
$this->headStyle()->captureStart();
22
echo <<<CSS
23
 
24
 
25
#gridTableUsersWhoApplied {
26
    display: flex;
27
    flex-flow: column;
28
    width: 100%;
29
}
30
 
31
#gridTableUsersWhoApplied thead {
32
    flex: 0 0 auto;
33
}
34
 
35
#gridTableUsersWhoApplied tbody {
36
    flex: 1 1 auto;
37
    display: block;
38
    overflow-y: auto;
39
    overflow-x: hidden;
40
}
41
 
42
#gridTableUsersWhoApplied tr {
43
    width: 100%;
44
    display: table;
45
    table-layout: fixed;
46
}
47
CSS;
48
$this->headStyle()->captureEnd();
49
 
8450 stevensc 50
$js = <<<JS
51
const linksVars = {
52
    link_add:"$routeAdd",
53
    link_table: "$routeDatatable",
54
    allowAdd: "$allowAdd",
55
    allowDelete: "$allowDelete",
56
    allowEdit: "$allowEdit",
57
    allowUsersWhoApplied: "$allowUsersWhoApplied",
58
    googleApi: "$google_map_key"
59
}
60
JS;
8444 stevensc 61
 
8450 stevensc 62
$this->inlineScript()->appendScript($js);
63
$this->headLink()->appendStylesheet('/react-bundles/jobs/main.css');
64
$this->inlineScript()->appendFile('/react-bundles/jobs/jobsBundle.js');
1 www 65
?>
3766 stevensc 66
 
1 www 67
<!-- Content Header (Page header) -->
8450 stevensc 68
<div id="jobs">
1 www 69
</div>