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 <?php
2 /* @var $this AccountTypesLimitsController */
3 /* @var $model AccountTypesLimits */
4 /* @var $form CActiveForm */
5 ?>
6 
7 <div class="form">
8 
9 <?php $form = $this->beginWidget('CActiveForm', array(
10  'id' => 'account-types-limits-form',
11  // Please note: When you enable ajax validation, make sure the corresponding
12  // controller action is handling ajax validation correctly.
13  // There is a call to performAjaxValidation() commented in generated controller code.
14  // See class documentation of CActiveForm for details on this.
15  'enableAjaxValidation' => false,
16 )); ?>
17 
18  <p class="note"><?php echo Yii::t('app', 'Fields with') ?> <span class="required">*</span> <?php echo Yii::t('app', 'are required.') ?></p>
19 
20  <?php echo $form->errorSummary($model); ?>
21 
22  <div class="row">
23  <?php echo $form->labelEx($model, 'AccountTypeId'); ?>
24  <?php
25  //$accountTypes = (isset($create) ? AccountTypes::getAvailableTypes() : AccountTypes::model()->findAll());
26 
27  //echo $form->textField($model,'AccountTypeId',array('size'=>20,'maxlength'=>20));
28  echo $form->dropDownList($model, 'AccountTypeId',
29  CHtml::listData(AccountTypes::model()->findAll(), 'Id', 'Type'),
30  array('disabled' => isset($update))
31  );
32  ?>
33  <?php echo $form->error($model, 'AccountTypeId'); ?>
34  </div>
35 
36  <div class="row">
37  <?php echo $form->labelEx($model, 'LimitsKey'); ?>
38  <?php
39  echo $form->textField($model, 'LimitsKey', array(
40  'size' => 32,
41  'maxlength' => 32,
42  'disabled' => isset($update),
43  )); ?>
44  <?php echo $form->error($model, 'LimitsKey'); ?>
45  </div>
46 
47  <div class="row">
48  <?php echo $form->labelEx($model, 'LimitsList'); ?>
49  <?php echo $form->textArea($model, 'LimitsList', array('rows' => 8, 'cols' => 60)); ?>
50  <?php echo $form->error($model, 'LimitsList'); ?>
51  </div>
52 
53  <div class="row buttons">
54  <?php echo CHtml::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Save')); ?>
55  </div>
56 
57 <?php $this->endWidget(); ?>
58 
59 </div><!-- form -->