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
update.php
Go to the documentation of this file.
1
<?php $this->
breadcrumbs
= array(
2
'Rights'
=>
Rights::getBaseUrl
(),
3
Rights::getAuthItemTypeNamePlural
($model->type) =>
Rights::getAuthItemRoute
($model->type),
4
$model->name,
5
); ?>
6
7
<div
id
=
"updatedAuthItem"
>
8
9
<h2><?php echo
Rights::t
(
'core'
,
'Update :name'
, array(
10
':name'
=> $model->name,
11
':type'
=>
Rights::getAuthItemTypeName
($model->type),
12
)); ?></h2>
13
14
<?php $this->renderPartial(
'_form'
, array(
'model'
=> $formModel)); ?>
15
16
<div
class
=
"relations span-11 last"
>
17
18
<h3><?php echo
Rights::t
(
'core'
,
'Relations'
); ?></h3>
19
20
<?php
if
($model->name !==
Rights::module
()->superuserName): ?>
21
22
<div
class
=
"parents"
>
23
24
<h4><?php echo
Rights::t
(
'core'
,
'Parents'
); ?></h4>
25
26
<?php $this->widget(
'zii.widgets.grid.CGridView'
, array(
27
'dataProvider'
=> $parentDataProvider,
28
'template'
=>
'{items}'
,
29
'hideHeader'
=>
true
,
30
'emptyText'
=>
Rights::t
(
'core'
,
'This item has no parents.'
),
31
'htmlOptions'
=> array(
'class'
=>
'grid-view parent-table mini'
),
32
'columns'
=> array(
33
array(
34
'name'
=>
'name'
,
35
'header'
=>
Rights::t
(
'core'
,
'Name'
),
36
'type'
=>
'raw'
,
37
'htmlOptions'
=> array(
'class'
=>
'name-column'
),
38
'value'
=>
'$data->getNameLink()'
,
39
),
40
array(
41
'name'
=>
'type'
,
42
'header'
=>
Rights::t
(
'core'
,
'Type'
),
43
'type'
=>
'raw'
,
44
'htmlOptions'
=> array(
'class'
=>
'type-column'
),
45
'value'
=>
'$data->getTypeText()'
,
46
),
47
array(
48
'header'
=>
' '
,
49
'type'
=>
'raw'
,
50
'htmlOptions'
=> array(
'class'
=>
'actions-column'
),
51
'value'
=>
''
,
52
),
53
),
54
)); ?>
55
56
</div>
57
58
<div
class
=
"children"
>
59
60
<h4><?php echo
Rights::t
(
'core'
,
'Children'
); ?></h4>
61
62
<?php $this->widget(
'zii.widgets.grid.CGridView'
, array(
63
'dataProvider'
=> $childDataProvider,
64
'template'
=>
'{items}'
,
65
'hideHeader'
=>
true
,
66
'emptyText'
=>
Rights::t
(
'core'
,
'This item has no children.'
),
67
'htmlOptions'
=> array(
'class'
=>
'grid-view parent-table mini'
),
68
'columns'
=> array(
69
array(
70
'name'
=>
'name'
,
71
'header'
=>
Rights::t
(
'core'
,
'Name'
),
72
'type'
=>
'raw'
,
73
'htmlOptions'
=> array(
'class'
=>
'name-column'
),
74
'value'
=>
'$data->getNameLink()'
,
75
),
76
array(
77
'name'
=>
'type'
,
78
'header'
=>
Rights::t
(
'core'
,
'Type'
),
79
'type'
=>
'raw'
,
80
'htmlOptions'
=> array(
'class'
=>
'type-column'
),
81
'value'
=>
'$data->getTypeText()'
,
82
),
83
array(
84
'header'
=>
' '
,
85
'type'
=>
'raw'
,
86
'htmlOptions'
=> array(
'class'
=>
'actions-column'
),
87
'value'
=>
'$data->getRemoveChildLink()'
,
88
),
89
),
90
)); ?>
91
92
</div>
93
94
<div
class
=
"addChild"
>
95
96
<h5><?php echo
Rights::t
(
'core'
,
'Add Child'
); ?></h5>
97
98
<?php
if
($childFormModel !== null): ?>
99
100
<?php $this->renderPartial(
'_childForm'
, array(
101
'model'
=> $childFormModel,
102
'itemnameSelectOptions'
=> $childSelectOptions,
103
)); ?>
104
105
<?php
else
: ?>
106
107
<p
class
=
"info"
><?php echo
Rights::t
(
'core'
,
'No children available to be added to this item.'
); ?>
108
109
<?php
endif
; ?>
110
111
</div>
112
113
<?php
else
: ?>
114
115
<p
class
=
"info"
>
116
<?php echo
Rights::t
(
'core'
,
'No relations need to be set for the superuser role.'
); ?><br />
117
<?php echo
Rights::t
(
'core'
,
'Super users are always granted access implicitly.'
); ?>
118
</p>
119
120
<?php
endif
; ?>
121
122
</div>
123
124
</div>
app
protected
modules
rights
views
authItem
update.php
Generated on Tue Jun 30 2015 20:12:32 for HCE Project DC service web UI by
1.8.1.2