<?php $this->pageTitle=Yii::t('profind', 'Cambiar la password'); ?>

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

                <?php
                $form = $this->beginWidget('CActiveForm', array(
                    'id' => 'cambiar-password-form',
                    'enableAjaxValidation' => true,
                    'htmlOptions' => array(
                        'class' => 'form-horizontal'
                        )
                    ));
                ?>

                <fieldset>
                    <div class="control-group formSep">
                        <?php echo $form->labelEx($formulario, 'passwordAnterior', array('class' => 'control-label')); ?>
                        <div class="controls">
                            <?php echo $form->passwordField($formulario, 'passwordAnterior', array('class' => 'input-xlarge')); ?>
                        </div>
                    </div>

                    <div class="control-group">
                        <div class="sepH_b">
                            <?php echo $form->labelEx($formulario, 'password', array('class' => 'control-label')); ?>
                            <div class="controls">
                                <?php echo $form->passwordField($formulario, 'password', array('class' => 'input-xlarge')); ?>
                            </div>
                        </div>
                        <?php echo $form->labelEx($formulario, 'passwordRepetida', array('class' => 'control-label')); ?>
                        <div class="controls">
                            <?php echo $form->passwordField($formulario, 'passwordRepetida', array('class' => 'input-xlarge')); ?>
                        </div>              
                    </div>

                    <div class="form-actions">
                        <button type="submit" class="btn btn-primary"><?php echo Yii::t('profind', 'Cambiar la contraseña'); ?></button>
                        <button class="btn"><?php echo Yii::t('profind', 'Cancelar'); ?></button>
                    </div>                        
                </fieldset>
                <?php $this->endWidget(); ?>
            </div>
            <div class="span4">
            </div>
        </div>
    </div>
</div>
