Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16822 | 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/actitudes/add');
$routeDatatable = $this->url('settings/actitudes');
$routeDashboard = $this->url('dashboard');

$allowAdd               = $acl->isAllowed($roleName, 'settings/actitudes/add') ? 1 : 0;
$allowEdit              = $acl->isAllowed($roleName, 'settings/actitudes/edit') ? 1 : 0;
$allowDelete            = $acl->isAllowed($roleName, 'settings/actitudes/delete') ? 1 : 0;


$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));

$this->inlineScript()->appendFile($this->basePath('assets/vendors/ckeditor/ckeditor.js'));






$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.css'));
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.css'));

$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net/jquery.dataTables.js'));
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.js'));
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/dataTables.responsive.min.js'));
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.min.js'));


$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));





$status_active = \LeadersLinked\Model\Skill::STATUS_ACTIVE;

$this->inlineScript()->captureStart();
echo <<<JS
    jQuery( document ).ready(function( $ ) {


    
        




    });
JS;
$this->inlineScript()->captureEnd();

$js = <<<JS
const urlsVar = {
        linkTable: '$routeDatatable',
        addUrl: '$routeAdd',
        allowAdd: '$allowAdd',
        allowEdit: '$allowEdit',
        allowDelete: '$allowDelete',
   }
JS;

$this->inlineScript()->appendScript($js);
$this->inlineScript()->appendFile('/react-bundles/settings/actitudes/actitudesBundle.js');
?>

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