Gentics Portal.Node PHP API
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
All
Classes
Namespaces
Functions
Variables
Pages
common
modules
rights
views
authItem
permissions.php
1
<?php $this->breadcrumbs = array(
2
'Rights'
=>
Rights::getBaseUrl
(),
3
Rights::t
(
'core'
,
'Permissions'
),
4
); ?>
5
6
<div
id
=
"permissions"
>
7
8
<h2><?php echo
Rights::t
(
'core'
,
'Permissions'
); ?></h2>
9
10
<p>
11
<?php echo
Rights::t
(
'core'
,
'Here you can view and manage the permissions assigned to each role.'
); ?><br />
12
<?php echo
Rights::t
(
'core'
,
'Authorization items can be managed under {roleLink}, {taskLink} and {operationLink}.'
, array(
13
'{roleLink}'
=>CHtml::link(
Rights::t
(
'core'
,
'Roles'
), array(
'authItem/roles'
)),
14
'{taskLink}'
=>CHtml::link(
Rights::t
(
'core'
,
'Tasks'
), array(
'authItem/tasks'
)),
15
'{operationLink}'
=>CHtml::link(
Rights::t
(
'core'
,
'Operations'
), array(
'authItem/operations'
)),
16
)); ?>
17
</p>
18
19
<p><?php echo CHtml::link(
Rights::t
(
'core'
,
'Generate items for controller actions'
), array(
'authItem/generate'
), array(
20
'class'
=>
'generator-link'
,
21
)); ?></p>
22
23
<?php $this->widget(
'zii.widgets.grid.CGridView'
, array(
24
'dataProvider'
=>$dataProvider,
25
'template'
=>
'{items}'
,
26
'emptyText'
=>
Rights::t
(
'core'
,
'No authorization items found.'
),
27
'htmlOptions'
=>array(
'class'
=>
'grid-view permission-table'
),
28
'columns'
=>$columns,
29
)); ?>
30
31
<p
class
=
"info"
>*) <?php echo
Rights::t
(
'core'
,
'Hover to see from where the permission is inherited.'
); ?></p>
32
33
<script type=
"text/javascript"
>
34
35
/**
36
* Attach the tooltip to the inherited items.
37
*/
38
jQuery(
'.inherited-item'
).rightsTooltip({
39
title:
'<?php echo Rights::t('
core
', '
Source
'); ?>: '
40
});
41
42
/**
43
* Hover functionality for rights' tables.
44
*/
45
$(
'#rights tbody tr'
).hover(
function
() {
46
$(
this
).addClass(
'hover'
);
// On mouse over
47
},
function
() {
48
$(
this
).removeClass(
'hover'
);
// On mouse out
49
});
50
51
</script>
52
53
</div>
Generated on Thu Jun 20 2013 14:45:15 for Gentics Portal.Node PHP API by
1.8.1.2