1 |
www |
1 |
<?php
|
|
|
2 |
$acl = $this->viewModel()->getRoot()->getVariable('acl');
|
|
|
3 |
$currentUser = $this->currentUserHelper();
|
|
|
4 |
$roleName = $currentUser->getUserTypeId();
|
|
|
5 |
|
|
|
6 |
$routeAdd = $this->url('profile/my-profiles/add');
|
|
|
7 |
$routeMyProfiles = $this->url('profile/my-profiles');
|
|
|
8 |
|
|
|
9 |
$allowAdd = $acl->isAllowed($roleName, 'profile/my-profiles/add') ? 1 : 0;
|
|
|
10 |
$allowEdit = $acl->isAllowed($roleName, 'profile/my-profiles/edit') ? 1 : 0;
|
|
|
11 |
$allowDelete = $acl->isAllowed($roleName, 'profile/my-profiles/delete') ? 1 : 0;
|
|
|
12 |
|
|
|
13 |
$publicNo = \LeadersLinked\Model\UserProfile::PUBLIC_NO;
|
|
|
14 |
|
|
|
15 |
// $this->inlineScript()->captureStart();
|
|
|
16 |
$js = <<<JS
|
|
|
17 |
const backendVars = {
|
|
|
18 |
allowAdd : "$allowAdd",
|
|
|
19 |
allowEdit: "$allowEdit",
|
|
|
20 |
allowDelete: "$allowDelete"
|
|
|
21 |
}
|
|
|
22 |
JS;
|
|
|
23 |
$this->inlineScript()->appendScript($js);
|
3517 |
stevensc |
24 |
$this->headLink()->appendStylesheet('/look-and-field/profile.css');
|
1 |
www |
25 |
$this->inlineScript()->appendFile('/react-bundles/my-profiles/my-profiles/myProfilesBundle.js');
|
|
|
26 |
?>
|
|
|
27 |
|
|
|
28 |
<div id="react-my-profiles" class="posts-section">
|
|
|
29 |
<div class="process-comm" id="paginator-process-comm">
|
|
|
30 |
<div class="spinner">
|
|
|
31 |
<div class="bounce1"></div>
|
|
|
32 |
<div class="bounce2"></div>
|
|
|
33 |
<div class="bounce3"></div>
|
|
|
34 |
</div>
|
|
|
35 |
</div>
|
|
|
36 |
</div>
|