4 UserModule::t(
'Sites') => array(
'//rights/usersSitesRights/index'),
5 'Edit operations fields',
7 $this->beginWidget(
'CActiveForm',
9 'id' =>
'SearchFilter',
10 'action' => Yii::app()->createUrl(
'//rights/UsersSitesRights/editOperationsFields'),
16 <h2>Edit operations fields</h2>
20 $dynamicField =
'<input type=checkbox name=RightsList[] value=__ checked=checked> __';
21 echo CHtml::textField(
'new_dynamic_field').
22 CHtml::button(
'Add', array(
23 'id' =>
'add_dynamic_field',
28 <div
id=
"dynamic_fields_list">
30 if (!empty($rightsList)) {
31 foreach ($rightsList as $right) {
32 echo
'<div>'.CHtml::checkBox(
'RightsList[]',
true, array(
35 ' '.$right.
' '.
36 '<span id="remove_dynamic_field" class="link" onclick="dynamicField.remove(this)">x</span></div>';
43 <?php echo CHtml::submitButton(
'Save'); ?>
46 <?php $this->endWidget(); ?>