HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
tasks.php
Go to the documentation of this file.
1 <?php $this->breadcrumbs = array(
2  'Rights' => Rights::getBaseUrl(),
3  Rights::t('core', 'Tasks'),
4 ); ?>
5 
6 <div id="tasks">
7 
8  <h2><?php echo Rights::t('core', 'Tasks'); ?></h2>
9 
10  <p>
11  <?php echo Rights::t('core', 'A task is a permission to perform multiple operations, for example accessing a group of controller action.'); ?><br />
12  <?php echo Rights::t('core', 'Tasks exist below roles in the authorization hierarchy and can therefore only inherit from other tasks and/or operations.'); ?>
13  </p>
14 
15  <p><?php echo CHtml::link(Rights::t('core', 'Create a new task'), array('authItem/create', 'type' => CAuthItem::TYPE_TASK), array(
16  'class' => 'add-task-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 tasks found.'),
23  'htmlOptions' => array('class' => 'grid-view task-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->getDeleteTaskLink()',
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>