<?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,'nombre'); ?>
            <div class="marginleft150">
                <?php echo $form->textField($model,'nombre',array('maxlength'=>255,'class'=>'mf')); ?>
                <?php echo $form->error($model,'nombre', array('class'=>'errortext')); ?>
            </div>
        </div>

        <div class="padding1020 borderbottom">
            <?php echo $form->labelEx($model,'apellidos'); ?>
            <div class="marginleft150">
		<?php echo $form->textField($model,'apellidos',array('maxlength'=>255, 'class'=>'sf')); ?>
		<?php echo $form->error($model,'apellidos', 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,'titulo'); ?>
            <div class="marginleft150">
		<?php echo $form->textField($model,'titulo',array('maxlength'=>255, 'class'=>'sf')); ?>
		<?php echo $form->error($model,'titulo', array('class'=>'errortext')); ?>
            </div>
        </div>

        <div class="padding1020 borderbottom">
            <?php echo $form->labelEx($model,'localidad'); ?>
            <div class="marginleft150">
		<?php echo $form->textField($model,'localidad',array('maxlength'=>255, 'class'=>'sf')); ?>
		<?php echo $form->error($model,'localidad', array('class'=>'errortext')); ?>
            </div>
        </div>

        <div class="padding1020 borderbottom">
            <?php echo $form->labelEx($model,'telefono'); ?>
            <div class="marginleft150">
		<?php echo $form->textField($model,'telefono',array('maxlength'=>255, 'class'=>'sf')); ?>
		<?php echo $form->error($model,'telefono', array('class'=>'errortext')); ?>
            </div>
        </div>
       
        <div class="padding1020 borderbottom">
            <?php echo $form->labelEx($model,'descripcion'); ?>
            <div class="marginleft150">
		<?php echo $form->textArea($model,'descripcion',array('class'=>'sf')); ?>
		<?php echo $form->error($model,'descripcion', array('class'=>'errortext')); ?>
            </div>
        </div>
       
       
        <?php 
/*        $this->renderPartial('_empresa', array(
                'model'=>$model->empresa,
            'form'=>$form,
            ));
 */
        ?>
       
        <div class="padding1020">
            <button type="submit"><?php echo $model->isNewRecord ? 'Crear' : 'Guardar'; ?></button>
        </div>
   </div>
</div> <!--widgetbox-->

<br clear="all" />

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

