Línea 2... |
Línea 2... |
2 |
$acl = $this->viewModel()->getRoot()->getVariable('acl');
|
2 |
$acl = $this->viewModel()->getRoot()->getVariable('acl');
|
3 |
$currentUser = $this->currentUserHelper();
|
3 |
$currentUser = $this->currentUserHelper();
|
Línea 4... |
Línea 4... |
4 |
|
4 |
|
Línea 5... |
Línea -... |
5 |
$roleName = $currentUser->getUserTypeId();
|
- |
|
6 |
|
5 |
$roleName = $currentUser->getUserTypeId();
|
7 |
|
6 |
|
8 |
$routeAdd = $this->url('settings/degrees/add');
|
7 |
$routeAdd = $this->url('settings/degrees/add');
|
Línea 9... |
Línea 8... |
9 |
$routeDatatable = $this->url('settings/degrees');
|
8 |
$routeDatatable = $this->url('settings/degrees');
|
10 |
$routeDashboard = $this->url('dashboard');
|
9 |
$routeDashboard = $this->url('dashboard');
|
11 |
|
10 |
|
Línea 12... |
Línea -... |
12 |
$allowAdd = $acl->isAllowed($roleName, 'settings/degrees/add') ? 1 : 0;
|
- |
|
13 |
$allowEdit = $acl->isAllowed($roleName, 'settings/degrees/edit') ? 1 : 0;
|
11 |
$allowAdd = $acl->isAllowed($roleName, 'settings/degrees/add') ? 1 : 0;
|
14 |
$allowDelete = $acl->isAllowed($roleName, 'settings/degrees/delete') ? 1 : 0;
|
12 |
$allowEdit = $acl->isAllowed($roleName, 'settings/degrees/edit') ? 1 : 0;
|
Línea 15... |
Línea 13... |
15 |
|
13 |
$allowDelete = $acl->isAllowed($roleName, 'settings/degrees/delete') ? 1 : 0;
|
16 |
|
14 |
|
Línea 17... |
Línea -... |
17 |
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
|
- |
|
18 |
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
|
- |
|
19 |
|
- |
|
20 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
|
- |
|
21 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
|
15 |
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
|
22 |
|
16 |
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
|
23 |
|
17 |
|
24 |
|
18 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
|
25 |
$status_active = \LeadersLinked\Model\Degree::STATUS_ACTIVE;
|
19 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
|