<?php
$this->pageTitle = Yii::app()->name . ' - ' . UserModule::t("Restore");
$this->breadcrumbs = array(
    UserModule::t("Login") => array('/user/login'),
    UserModule::t("Restore"),
);
?>
<div class="page-header"><h1><?php echo UserModule::t("Restore"); ?></h1></div>
<?php if (Yii::app()->user->hasFlash('recoveryMessage')): ?>
    <div class="success">
	<?php echo Yii::app()->user->getFlash('recoveryMessage'); ?>
    </div>
<?php else: ?>
    <div class="col-xs-12">
	<?php echo CHtml::beginForm(); ?>
	<?php echo CHtml::errorSummary($form); ?>
	<?php echo CHtml::activeLabel($form, 'login_or_email'); ?>
	<?php echo CHtml::activeTextField($form, 'login_or_email') ?>
        <p class="hint"><?php echo UserModule::t("Please enter your login or email addres."); ?></p>
        <div class="row submit">
	    <?php echo CHtml::submitButton(UserModule::t("Restore")); ?>
        </div>
	<?php echo CHtml::endForm(); ?>
    </div>
<?php endif; ?>