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

<?php if(Yii::app()->user->hasFlash('recoveryMessage')): ?>
<div class="success">
<?php echo Yii::app()->user->getFlash('recoveryMessage'); ?>
</div>
<?php else: ?>
    <?php
    $this->beginWidget(
        'booster.widgets.TbPanel',
        array(
            'title' => 'Recovery',
            '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'),*/
    )); ?>

    <?php echo $formWidget->textFieldGroup($form, 'login_or_email',array(
        'wrapperHtmlOptions' => array(
            'class' => 'col-sm-4',
        ),
    'hint' => UserModule::t("Please enter your login or email addres.")
    )); ?>

    <?php $this->widget(
        'booster.widgets.TbButton',
        array(
            'buttonType' => 'submit',
            'context' => 'primary',
            'label' => UserModule::t('Restore')
        )
    );
    ?>
    <?php $this->endWidget(); unset($formWidget); ?>
    <?php $this->endWidget(); ?>
<!-- form -->
<?php endif; ?>