HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
_form.php
Go to the documentation of this file.
1 <div class="form span-12 first">
2 
3 <?php if ($model->scenario === 'update'): ?>
4 
5  <h3><?php echo Rights::getAuthItemTypeName($model->type); ?></h3>
6 
7 <?php endif; ?>
8 
9 <?php $form = $this->beginWidget('CActiveForm'); ?>
10 
11  <div class="row">
12  <?php echo $form->labelEx($model, 'name'); ?>
13  <?php echo $form->textField($model, 'name', array('maxlength' => 255, 'class' => 'text-field')); ?>
14  <?php echo $form->error($model, 'name'); ?>
15  <p class="hint"><?php echo Rights::t('core', 'Do not change the name unless you know what you are doing.'); ?></p>
16  </div>
17 
18  <div class="row">
19  <?php echo $form->labelEx($model, 'description'); ?>
20  <?php echo $form->textField($model, 'description', array('maxlength' => 255, 'class' => 'text-field')); ?>
21  <?php echo $form->error($model, 'description'); ?>
22  <p class="hint"><?php echo Rights::t('core', 'A descriptive name for this item.'); ?></p>
23  </div>
24 
25  <?php if (Rights::module()->enableBizRule === true): ?>
26 
27  <div class="row">
28  <?php echo $form->labelEx($model, 'bizRule'); ?>
29  <?php echo $form->textArea($model, 'bizRule', array(/*'maxlength'=>255,*/ 'class' => 'text-field')); ?>
30  <?php echo $form->error($model, 'bizRule'); ?>
31  <p class="hint"><?php echo Rights::t('core', 'Code that will be executed when performing access checking.'); ?></p>
32  </div>
33 
34  <?php endif; ?>
35 
36  <?php if (Rights::module()->enableBizRule === true && Rights::module()->enableBizRuleData): ?>
37 
38  <div class="row">
39  <?php echo $form->labelEx($model, 'data'); ?>
40  <?php echo $form->textField($model, 'data', array('maxlength' => 255, 'class' => 'text-field')); ?>
41  <?php echo $form->error($model, 'data'); ?>
42  <p class="hint"><?php echo Rights::t('core', 'Additional data available when executing the business rule.'); ?></p>
43  </div>
44 
45  <?php endif; ?>
46 
47  <div class="row buttons">
48  <?php echo CHtml::submitButton(Rights::t('core', 'Save')); ?> | <?php echo CHtml::link(Rights::t('core', 'Cancel'), Yii::app()->user->rightsReturnUrl); ?>
49  </div>
50 
51 <?php $this->endWidget(); ?>
52 
53 </div>