<?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.1
 */
 
?>

<?php $form = $this->beginWidget('CActiveForm'); ?>
<div class="panel panel-default">
    <div class="panel-heading">
        <div class="pull-left">
            <h3 class="panel-title">
                <span class="glyphicon glyphicon-cloud-upload"></span> <?php echo Yii::t('update', 'Update application');?>
            </h3>
        </div>
        <div class="pull-right">
        </div>
        <div class="clearfix"><!-- --></div>
    </div>
    <div class="panel-body">
        <div class="callout">
            <?php echo Yii::t('update', 'Your current application version is {version}', array('{version}' => '<span class="badge">'.$versionInDb.'</span>'));?><br />
            <?php echo Yii::t('update', 'The update process will try to update it to version {version}', array('{version}' => '<span class="badge">'.$versionInFile.'</span>'));?><br />
            <?php echo Yii::t('update', 'Please backup all your data before proceeding.');?><br />
            <br />
            <?php echo Yii::t('update', 'Your application has been moved offline until the update process is done.');?><br />
        </div>
    </div>
    <div class="panel-footer">
        <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('update', 'Start update process');?></button>
        </div>
        <div class="clearfix"><!-- --></div>
    </div>
</div>
<?php $this->endWidget(); ?>