<?php $this->pageTitle=Yii::app()->name . ' | '.UserModule::t("Change Password");
?>

<?php
$this->beginWidget(
    'booster.widgets.TbPanel',
    array(
        'title' => 'Change Password',
        'headerIcon' => 'lock',
        'htmlOptions' => array('class' => 'well'),
    )
);
?>
<?php $formWidget=$this->beginWidget('UActiveForm', array(
    'id'=>'recovery-form',
    'type'=>'horizontal',
    /*'enableAjaxValidation'=>true,
    'disableAjaxValidationAttributes'=>array('RegistrationForm_verifyCode'),
    'clientOptions'=>array(
        'validateOnSubmit'=>true,
    ),
    'htmlOptions' => array('enctype'=>'multipart/form-data'),*/
)); ?>
<p class="note"><?php echo UserModule::t('Fields with <span class="required">*</span> are required.'); ?></p>
<?php echo CHtml::errorSummary($form); ?>

<?php echo $formWidget->passwordFieldGroup($form, 'password',array(
    'wrapperHtmlOptions' => array(
        'class' => 'col-sm-4',
    ),
    'hint' => UserModule::t("Minimal password length 4 symbols.")
)); ?>

<?php echo $formWidget->passwordFieldGroup($form, 'verifyPassword',array(
    'wrapperHtmlOptions' => array(
        'class' => 'col-sm-4',
    ),
)); ?>

<?php $this->widget(
    'booster.widgets.TbButton',
    array(
        'buttonType' => 'submit',
        'context' => 'primary',
        'label' => UserModule::t('Save')
    )
);
?>

<?php $this->endWidget(); unset($formWidget);?>
<?php $this->endWidget(); ?>
<!-- form -->