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 AccountUsersController */
3 /* @var $model AccountUsers */
4 /* @var $form CActiveForm */
5 ?>
6 
7 <div class="form">
8 
9 <?php $form = $this->beginWidget('CActiveForm', array(
10  'id' => 'account-users-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,'UserId'); ?>
24  <?php echo $form->textField($model,'UserId',array('size'=>20,'maxlength'=>20)); ?>
25  <?php echo $form->error($model,'UserId');*/ ?>
26  </div>
27 
28  <div class="row">
29  <?php echo $form->labelEx($model, 'AccountTypeId'); ?>
30  <?php
31  //echo $form->textField($model,'AccountTypeId',array('size'=>20,'maxlength'=>20));
32  echo $form->dropDownList($model, 'AccountTypeId',
33  CHtml::listData(AccountTypes::model()->findAll(), 'Id', 'Type'
34  ));
35  ?>
36  <?php echo $form->error($model, 'AccountTypeId'); ?>
37  </div>
38 
39  <div class="row buttons">
40  <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
41  </div>
42 
43 <?php $this->endWidget(); ?>
44 
45 </div><!-- form -->