Rev 2354 | 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('profile/my-profiles/add');
$routeMyProfiles = $this->url('profile/my-profiles');
$allowAdd = $acl->isAllowed($roleName, 'profile/my-profiles/add') ? 1 : 0;
$allowEdit = $acl->isAllowed($roleName, 'profile/my-profiles/edit') ? 1 : 0;
$allowDelete = $acl->isAllowed($roleName, 'profile/my-profiles/delete') ? 1 : 0;
$publicNo = \LeadersLinked\Model\UserProfile::PUBLIC_NO;
// $this->inlineScript()->captureStart();
$js = <<<JS
const backendVars = {
allowAdd : "$allowAdd",
allowEdit: "$allowEdit",
allowDelete: "$allowDelete"
}
JS;
$this->inlineScript()->appendScript($js);
$this->inlineScript()->appendFile('/react-bundles/my-profiles/my-profiles/myProfilesBundle.js');
?>
<div id="react-my-profiles" class="posts-section">
<div class="process-comm" id="paginator-process-comm">
<div class="spinner">
<div class="bounce1"></div>
<div class="bounce2"></div>
<div class="bounce3"></div>
</div>
</div>
</div>