Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 11121 | Rev 11127 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |

<?php
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
$currentUser    = $this->currentUserHelper();
$roleName       = $currentUser->getUserTypeId();

$routeAdd           = $this->url('jobs/add');

$routeDatatable   = $this->url('jobs');

$allowAdd = $acl->isAllowed($roleName, 'jobs/add') ? 1 : 0;
$allowDelete = $acl->isAllowed($roleName, 'jobs/delete') ? 1 : 0;
$allowEdit = $acl->isAllowed($roleName, 'jobs/edit') ? 1 : 0;
$allowUsersWhoApplied = $acl->isAllowed($roleName, 'jobs/users-who-applied') ? 1 : 0;


$js = <<<JS
const linksVars = {
    link_add:"$routeAdd",
    link_table: "$routeDatatable",
    allowAdd: "$allowAdd",
    allowDelete: "$allowDelete",
    allowEdit: "$allowEdit",
    allowUsersWhoApplied: "$allowUsersWhoApplied",
    googleApi: "$google_map_key" 
}
JS;

$this->inlineScript()->appendScript($js);
$this->headLink()->appendStylesheet('/react-bundles/jobs/main.css');
$this->inlineScript()->appendFile('/react-bundles/jobs/jobsBundle.js');
?>

<!-- Content Header (Page header) -->
<div id="jobs">
</div>