<?php $this->pageTitle=Yii::app()->name . ' | '.UserModule::t("Change Password");
$this->menu=Yii::app()->controller->getMenu();
?>
<?php
$this->beginWidget(
    'booster.widgets.TbPanel',
    array(
        'title' => UserModule::t('Change password'),
        'headerIcon' => 'fa fa-key',
        //'htmlOptions' => array('class' => 'well'),
    )
);
?>

<?php $form=$this->beginWidget('UActiveForm', array(
    'id'=>'changepassword-form',
    'type'=>'horizontal',
    'enableAjaxValidation'=>true,
    'clientOptions'=>array(
        'validateOnSubmit'=>true,
    ),
)); ?>

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

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

<?php echo $form->passwordFieldGroup($model, '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($form) ?>
<?php $this->endWidget(); ?>
<!-- form -->