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


<div class="two_third last">
        <div class="notification msginfo">
        <a class="close"></a>
        <p>Los campos marcados con <span class="required">*</span> son obligatorios.</p>
    </div><!-- notification msginfo -->

    <?php echo $form->errorSummary($model, "<a class='close'></a>", "", array('class'=>"notification msgerror")); ?>            
</div>
<br clear="all" />

<div class="widgetbox two_third last form_default">
    <h3>
        <span>
        <legend>Datos del usuario</legend>
        </span>
    </h3>
    <div class="content nopadding">
        <div class="padding1020 ">
            <?php echo $form->labelEx($model,'name'); ?>
            <div class="marginleft150">
                <?php echo $form->textField($model,'name',array('maxlength'=>255,'class'=>'mf')); ?>
                <?php echo $form->error($model,'name', array('class'=>'errortext')); ?>
            </div>
        </div>
        
        <div class="padding1020 borderbottom">
            <?php echo $form->labelEx($model,'email'); ?>
            <div class="marginleft150">
                <?php echo $form->textField($model,'email',array('maxlength'=>255,'class'=>'mf')); ?>
                <?php echo $form->error($model,'email', array('class'=>'errortext')); ?>
            </div>
        </div>

       <div class="padding1020 borderbottom">
           <?php echo $form->labelEx($model,'username'); ?>
           <div class="marginleft150">
                <?php echo $form->textField($model,'username',array('maxlength'=>255,'class'=>'mf')); ?>                                
                <?php echo $form->error($model,'username', array('class'=>'errortext')); ?>
           </div>
           
        </div>
        
        <div class="padding1020">
            <?php echo $form->labelEx($model,'password'); ?>
            <div class="marginleft150">
		<?php echo $form->passwordField($model,'password',array('maxlength'=>255, 'class'=>'sf')); ?>
		<?php echo $form->error($model,'password', array('class'=>'errortext')); ?>
            </div>
        </div>
        
        <div class="padding1020 borderbottom">
            <?php echo $form->labelEx($model,'password_repeat'); ?>
            <div class="marginleft150">
		<?php echo $form->passwordField($model,'password_repeat',array('maxlength'=>255, 'class'=>'sf')); ?>
		<?php echo $form->error($model,'password_repeat', array('class'=>'errortext')); ?>
            </div>
        </div>
        
        <div class="padding1020">
            <button type="submit"><?php echo $model->isNewRecord ? 'Crear' : 'Guardar'; ?></button>
        </div>
   </div>
</div> <!--widgetbox-->

<br clear="all" />

<?php $this->endWidget(); ?>

