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

<div class="panel panel-default">
    <div class="panel-heading">
        <div class="pull-left">
            <h3 class="panel-title">
                <span class="glyphicon glyphicon-list-alt"></span> <?php echo Yii::t('list_export', 'Export options');?>
            </h3>
        </div>
        <div class="pull-right">
            <?php echo CHtml::link(Yii::t('app', 'Cancel'), array('lists/overview', 'list_uid' => $list->list_uid), array('class' => 'btn btn-default btn-xs', 'title' => Yii::t('app', 'Cancel')));?>
            <?php echo CHtml::link(Yii::t('app', 'Refresh'), array('list_export/index', 'list_uid' => $list->list_uid), array('class' => 'btn btn-default btn-xs', 'title' => Yii::t('app', 'Refresh')));?>
        </div>
        <div class="clearfix"><!-- --></div>
    </div>
    <div class="panel-body">
        
        <div class="panel panel-default panel-template-box">
            <div class="panel-heading"><h3 class="panel-title"><?php echo Yii::t('list_export', 'Export in CSV');?></h3></div>
            <div class="panel-body">
                <?php echo Yii::t('list_export', 'Easily export all your list subscribers into a CSV file.');?>
            </div>
            <div class="panel-footer">
                <div class="pull-left">
                    <a href="<?php echo $this->createUrl('list_export/csv', array('list_uid' => $list->list_uid));?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-export"></span> <?php echo Yii::t('list_export', 'Click to export');?></a>
                </div>
                <div class="clearfix"><!-- --></div>
            </div>
        </div>

    </div>
    <div class="panel-footer"></div>
</div>