Rev 15497 | Rev 16822 | 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('settings/industries/add');$routeDatatable = $this->url('settings/industries');$routeDashboard = $this->url('dashboard');$allowAdd = $acl->isAllowed($roleName, 'settings/industries/add') ? 1 : 0;$allowEdit = $acl->isAllowed($roleName, 'settings/industries/edit') ? 1 : 0;$allowDelete = $acl->isAllowed($roleName, 'settings/industries/delete') ? 1 : 0;$this->inlineScript()->appendFile($this->basePath('plugins/ckeditor/ckeditor.js'));$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));$js = <<<JSconst urlsVar = {linkTable: '$routeDatatable',addUrl: '$routeAdd',allowAdd: '$allowAdd',allowEdit: '$allowEdit',allowDelete: '$allowDelete',}JS;$this->inlineScript()->appendScript($js);$this->inlineScript()->appendFile('/react-bundles/settings/industries/industriesBundle.js');?><!-- Content Header (Page header) --><div id="industries"></div>