<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'manager-form',
    'enableAjaxValidation'=>false,
));
?>

    <fieldset>
    <legend><?php echo $title;?></legend>

    <p class="note">打<span class="required">*</span>的为必填</p>

    <?php echo $form->errorSummary($model);?>

    <div class="row">
        <?php echo $form->labelEx($model,'username');?>
        <?php echo $form->textField($model,'username',array('size'=>20,'maxlength'=>20,'id'=>'text'));?>
        <?php echo $form->error($model,'username');?>
    </div>

    <?php if ($model->isNewRecord):?>
        <div class="row">
            <?php echo $form->labelEx($model,'password');?>
            <?php echo $form->passwordField($model,'password',array('size'=>40,'maxlength'=>40));?>
            <?php echo $form->error($model,'password');?>
        </div>
    <?php endif;?>

    <div class="row">
        <?php echo $form->labelEx($model,'status');?>
        <?php echo $form->dropDownList($model, 'status', Manager::$status, array('separator'=>''));?>
        <?php echo $form->error($model,'status');?>
    </div>
    
    <div class="row">
        <?php echo $form->labelEx($model,'remark');?>
        <?php echo $form->textArea($model,'remark',array('size'=>60,'maxlength'=>255));?>
        <?php echo $form->error($model,'remark');?>
    </div>

    <div class="row buttons">
        <?php echo CHtml::submitButton($model->isNewRecord ? '创建' : '保存');?>
    </div>
    </fieldset>
<?php $this->endWidget();?>

</div>