Rev 12154 | Rev 15064 | 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('performance-evaluation/forms/add');$routeDatatable = $this->url('performance-evaluation/forms');$routeDashboard = $this->url('dashboard');$allowAdd = $acl->isAllowed($roleName, 'performance-evaluation/forms/add') ? 1 : 0;$allowEdit = $acl->isAllowed($roleName, 'performance-evaluation/forms/edit') ? 1 : 0;$allowDelete = $acl->isAllowed($roleName, 'performance-evaluation/forms/delete') ? 1 : 0;$allowReport = $acl->isAllowed($roleName, 'performance-evaluation/forms/report') ? 1 : 0;// Page Styles$this->headLink()->appendStylesheet($this->basePath('css/pages/self-evaluation.css'));$jsonJobsDescription = json_encode($jobsDescription);$js = <<<JSconst backendVariables= {add_link: "$routeAdd",table_link: "$routeDatatable",dashboard_link: "$routeDashboard",jobsDescription: $jsonJobsDescription,permisions: {allowAdd: $allowAdd,allowDelete: $allowDelete,allowEdit: $allowEdit,allowReport: $allowReport}}JS;$this->inlineScript()->appendScript($js);$this->headLink()->appendStylesheet('/react-bundles/performance_evaluations/forms/main.css');$this->inlineScript()->appendFile('/react-bundles/performance_evaluations/forms/formsBundle.js');?><div id="evaluations-forms"></div>