HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
permissions.php
Go to the documentation of this file.
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 
38  jQuery('.inherited-item').rightsTooltip({
39  title:'<?php echo Rights::t('core', 'Source'); ?>: '
40  });
41 
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>