Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 11131 | Rev 14160 | 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
 
11139 stevensc 46
$categories = json_encode($job_categories);
47
 
11131 stevensc 48
$js = <<<JS
49
const linksVars = {
50
    link_add:"$routeAdd",
51
    link_table: "$routeDatatable",
52
    allowAdd: "$allowAdd",
53
    allowDelete: "$allowDelete",
54
    allowEdit: "$allowEdit",
11139 stevensc 55
    jobCategoryOptions: $categories,
11131 stevensc 56
    allowUsersWhoApplied: "$allowUsersWhoApplied",
57
    googleApi: "$google_map_key"
1 www 58
}
11131 stevensc 59
JS;
1 www 60
 
11131 stevensc 61
$this->inlineScript()->appendScript($js);
62
$this->headLink()->appendStylesheet('/react-bundles/jobs/main.css');
63
$this->inlineScript()->appendFile('/react-bundles/jobs/jobsBundle.js');
1 www 64
?>
3766 stevensc 65
 
1 www 66
<!-- Content Header (Page header) -->
11131 stevensc 67
<div id="jobs">
1 www 68
</div>