<?php defined('MW_PATH') || exit('No direct script access allowed');

/**
 * This file is part of the MailWizz EMA application.
 * 
 * @package MailWizz EMA
 * @author Serban George Cristian <cristian.serban@mailwizz.com> 
 * @link http://www.mailwizz.com/
 * @copyright 2013-2014 MailWizz EMA (http://www.mailwizz.com)
 * @license http://www.mailwizz.com/license/
 * @since 1.0
 */
 
?>

<?php $form = $this->beginWidget('CActiveForm'); ?>
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title"><?php echo Yii::t('users', 'Please login');?></h3>
    </div>
    <div class="panel-body">
        <div class="form-group">
            <?php echo $form->labelEx($model, 'email');?>
            <?php echo $form->textField($model, 'email', $model->getHtmlOptions('email')); ?>
            <?php echo $form->error($model, 'email');?>
        </div>
        <div class="form-group">
            <?php echo $form->labelEx($model, 'password');?>
            <?php echo $form->passwordField($model, 'password', $model->getHtmlOptions('password')); ?>
            <?php echo $form->error($model, 'password');?>
        </div>
        <div class="checkbox">
          <label>
            <?php echo $form->checkBox($model, 'remember_me') . ' ' . $model->getAttributeLabel('remember_me');?>
          </label>
        </div>
    </div>
    <div class="panel-footer">
        <div class="pull-left">
            <a href="<?php echo $this->createUrl('guest/forgot_password')?>" class="btn btn-default"><?php echo Yii::t('users', 'Forgot password?');?></a>
        </div>
        <div class="pull-right">
            <button type="submit" class="btn btn-default btn-submit" data-loading-text="<?php echo Yii::t('app', 'Please wait, processing...');?>"><?php echo Yii::t('app', 'Login');?></button>
        </div>
        <div class="clearfix"><!-- --></div>
    </div>
</div>
<?php $this->endWidget();?>