<div class="row-fluid">
    <div class="span12">
        <h3 class="heading"><?php echo Yii::t('profind', 'Perfil'); ?></h3>
        <div class="row-fluid">
            <div class="span8">
                <?php if($model->hasErrors()) { ?>
                    <div class="alert alert-error">
                        <a data-dismiss="alert" class="close">×</a>
                        <?php echo CHtml::errorSummary($model, 
                                '<strong>' . Yii::t('profind', 'Se han encontrado errores') . '</strong>',
                                '', 
                                array('firstError' => true)); ?>
                    </div>
                <?php } ?>

                <?php
                $form = $this->beginWidget('CActiveForm', array(
                    'id' => 'usuario-form',
                    'enableAjaxValidation' => false,
                    'htmlOptions' => array(
                        'class' => 'form-horizontal'
                    )
                        ));
                ?>
                
                <fieldset>
                    <div class="control-group formSep">
                        <div class="sepH_b">
                            <?php echo $form->labelEx($model, 'nombre', array('class' => 'control-label')); ?>
                            <div class="controls">
                                <?php echo $form->textField($model, 'nombre', array('class' => 'input-xlarge')); ?>
                            </div>
                        </div>
                        <?php echo $form->labelEx($model, 'apellidos', array('class' => 'control-label')); ?>
                        <div class="controls">
                            <?php echo $form->textField($model, 'apellidos', array('class' => 'input-xlarge')); ?>
                        </div>              
                    </div>
                    <div class="control-group formSep">
                        <?php echo $form->labelEx($model, 'email', array('class' => 'control-label')); ?>
                        <div class="controls">
                            <div class="input-prepend">
                                <span class="add-on"><i class="icon-envelope"></i></span>
                                <?php echo $form->textField($model, 'email', array('class' => 'input-xlarge')); ?>
                            </div>                                

                        </div>
                    </div>
                    <div class="control-group formSep">
                        <?php echo $form->labelEx($model, 'telefono', array('class' => 'control-label')); ?>
                        <div class="controls">
                            <?php echo $form->textField($model, 'telefono', array('class' => 'input-xlarge')); ?>
                        </div>
                    </div>
                    <div class="control-group formSep">
                        <?php echo $form->labelEx($model, 'localidad', array('class' => 'control-label')); ?>
                        <div class="controls">
                            <?php echo $form->textField($model, 'localidad', array('class' => 'input-xlarge')); ?>
                        </div>
                    </div>
                    <div class="control-group formSep">
                        <?php echo $form->labelEx($model, 'titulo', array('class' => 'control-label')); ?>
                        <div class="controls">
                            <?php echo $form->textField($model, 'titulo', array('class' => 'input-xlarge')); ?>
                        </div>
                    </div>                        
                    <div class="control-group">
                        <?php echo $form->labelEx($model, 'descripcion', array('class' => 'control-label')); ?>
                        <div class="controls">
                            <?php echo $form->textArea($model, 'descripcion', array('class' => 'input-xlarge')); ?>
                        </div>
                    </div>
                    <div class="form-actions">
                        <button type="submit" class="btn btn-primary"><?php echo $model->isNewRecord ? Yii::t('profind', 'Crear') : Yii::t('profind', 'Guardar cambios'); ?></button>
                        <button class="btn"><?php echo Yii::t('profind', 'Cancelar'); ?></button>
                    </div>                        
                </fieldset>
                <?php $this->endWidget(); ?>
            </div>
            <div class="span4">
            </div>
        </div>
    </div>
</div>
