HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
view.php
Go to the documentation of this file.
1 <?php $this->breadcrumbs = array(
2  'Rights' => Rights::getBaseUrl(),
3  Rights::t('core', 'Assignments'),
4 ); ?>
5 
6 <div id="assignments">
7 
8  <h2><?php echo Rights::t('core', 'Assignments'); ?></h2>
9 
10  <p>
11  <?php echo Rights::t('core', 'Here you can view which permissions has been assigned to each user.'); ?>
12  </p>
13 
14  <?php $this->widget('zii.widgets.grid.CGridView', array(
15  'dataProvider' => $dataProvider,
16  'template' => "{items}\n{pager}",
17  'emptyText' => Rights::t('core', 'No users found.'),
18  'htmlOptions' => array('class' => 'grid-view assignment-table'),
19  'columns' => array(
20  array(
21  'name' => 'name',
22  'header' => Rights::t('core', 'Name'),
23  'type' => 'raw',
24  'htmlOptions' => array('class' => 'name-column'),
25  'value' => '$data->getAssignmentNameLink()',
26  ),
27  array(
28  'name' => 'assignments',
29  'header' => Rights::t('core', 'Roles'),
30  'type' => 'raw',
31  'htmlOptions' => array('class' => 'role-column'),
32  'value' => '$data->getAssignmentsText(CAuthItem::TYPE_ROLE)',
33  ),
34  array(
35  'name' => 'assignments',
36  'header' => Rights::t('core', 'Tasks'),
37  'type' => 'raw',
38  'htmlOptions' => array('class' => 'task-column'),
39  'value' => '$data->getAssignmentsText(CAuthItem::TYPE_TASK)',
40  ),
41  array(
42  'name' => 'assignments',
43  'header' => Rights::t('core', 'Operations'),
44  'type' => 'raw',
45  'htmlOptions' => array('class' => 'operation-column'),
46  'value' => '$data->getAssignmentsText(CAuthItem::TYPE_OPERATION)',
47  ),
48  ),
49  )); ?>
50 
51 </div>