Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
roles.php
1 <?php $this->breadcrumbs = array(
2  'Rights'=>Rights::getBaseUrl(),
3  Rights::t('core', 'Roles'),
4 ); ?>
5 
6 <div id="roles">
7 
8  <h2><?php echo Rights::t('core', 'Roles'); ?></h2>
9 
10  <p>
11  <?php echo Rights::t('core', 'A role is group of permissions to perform a variety of tasks and operations, for example the authenticated user.'); ?><br />
12  <?php echo Rights::t('core', 'Roles exist at the top of the authorization hierarchy and can therefore inherit from other roles, tasks and/or operations.'); ?>
13  </p>
14 
15  <p><?php echo CHtml::link(Rights::t('core', 'Create a new role'), array('authItem/create', 'type'=>CAuthItem::TYPE_ROLE), array(
16  'class'=>'add-role-link',
17  )); ?></p>
18 
19  <?php $this->widget('zii.widgets.grid.CGridView', array(
20  'dataProvider'=>$dataProvider,
21  'template'=>'{items}',
22  'emptyText'=>Rights::t('core', 'No roles found.'),
23  'htmlOptions'=>array('class'=>'grid-view role-table'),
24  'columns'=>array(
25  array(
26  'name'=>'name',
27  'header'=>Rights::t('core', 'Name'),
28  'type'=>'raw',
29  'htmlOptions'=>array('class'=>'name-column'),
30  'value'=>'$data->getGridNameLink()',
31  ),
32  array(
33  'name'=>'description',
34  'header'=>Rights::t('core', 'Description'),
35  'type'=>'raw',
36  'htmlOptions'=>array('class'=>'description-column'),
37  ),
38  array(
39  'name'=>'bizRule',
40  'header'=>Rights::t('core', 'Business rule'),
41  'type'=>'raw',
42  'htmlOptions'=>array('class'=>'bizrule-column'),
43  'visible'=>Rights::module()->enableBizRule===true,
44  ),
45  array(
46  'name'=>'data',
47  'header'=>Rights::t('core', 'Data'),
48  'type'=>'raw',
49  'htmlOptions'=>array('class'=>'data-column'),
50  'visible'=>Rights::module()->enableBizRuleData===true,
51  ),
52  array(
53  'header'=>'&nbsp;',
54  'type'=>'raw',
55  'htmlOptions'=>array('class'=>'actions-column'),
56  'value'=>'$data->getDeleteRoleLink()',
57  ),
58  )
59  )); ?>
60 
61  <p class="info"><?php echo Rights::t('core', 'Values within square brackets tell how many children each item has.'); ?></p>
62 
63 </div>