HCE Project DC service web UI
0.2
Hierarchical Cluster Engine DC service web UI
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
user.php
Go to the documentation of this file.
1
<?php $this->
breadcrumbs
= array(
2
'Rights'
=>
Rights::getBaseUrl
(),
3
Rights::t
(
'core'
,
'Assignments'
) => array(
'assignment/view'
),
4
$model->getName(),
5
); ?>
6
7
<div
id
=
"userAssignments"
>
8
9
<h2><?php echo
Rights::t
(
'core'
,
'Assignments for :username'
, array(
10
':username'
=> $model->getName(),
11
)); ?></h2>
12
13
<div
class
=
"assignments span-12 first"
>
14
15
<?php $this->widget(
'zii.widgets.grid.CGridView'
, array(
16
'dataProvider'
=> $dataProvider,
17
'template'
=>
'{items}'
,
18
'hideHeader'
=>
true
,
19
'emptyText'
=>
Rights::t
(
'core'
,
'This user has not been assigned any items.'
),
20
'htmlOptions'
=> array(
'class'
=>
'grid-view user-assignment-table mini'
),
21
'columns'
=> array(
22
array(
23
'name'
=>
'name'
,
24
'header'
=>
Rights::t
(
'core'
,
'Name'
),
25
'type'
=>
'raw'
,
26
'htmlOptions'
=> array(
'class'
=>
'name-column'
),
27
'value'
=>
'$data->getNameText()'
,
28
),
29
array(
30
'name'
=>
'type'
,
31
'header'
=>
Rights::t
(
'core'
,
'Type'
),
32
'type'
=>
'raw'
,
33
'htmlOptions'
=> array(
'class'
=>
'type-column'
),
34
'value'
=>
'$data->getTypeText()'
,
35
),
36
array(
37
'header'
=>
' '
,
38
'type'
=>
'raw'
,
39
'htmlOptions'
=> array(
'class'
=>
'actions-column'
),
40
'value'
=>
'$data->getRevokeAssignmentLink()'
,
41
),
42
),
43
)); ?>
44
45
</div>
46
47
<div
class
=
"add-assignment span-11 last"
>
48
49
<h3><?php echo
Rights::t
(
'core'
,
'Assign item'
); ?></h3>
50
51
<?php
if
($formModel !== null): ?>
52
53
<div
class
=
"form"
>
54
55
<?php $this->renderPartial(
'_form'
, array(
56
'model'
=> $formModel,
57
'itemnameSelectOptions'
=> $assignSelectOptions,
58
)); ?>
59
60
</div>
61
62
<?php
else
: ?>
63
64
<p
class
=
"info"
><?php echo
Rights::t
(
'core'
,
'No assignments available to be assigned to this user.'
); ?>
65
66
<?php
endif
; ?>
67
68
</div>
69
70
</div>
app
protected
modules
rights
views
assignment
user.php
Generated on Tue Jun 30 2015 20:12:36 for HCE Project DC service web UI by
1.8.1.2