<?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 $this->renderPartial('_nav-buttons');?>
    
<div class="callout">
    <label><?php echo Yii::t('list_pages', 'Your subscribe form url is:');?></label><br />
    <div class="col-lg-10">
        <input type="text" value="<?php echo Yii::app()->apps->getAppUrl('frontend', 'lists/'.$list->list_uid.'/subscribe', true);?>" class="form-control"/>
    </div>
    <div class="col-lg-2">
        <a class="btn btn-default" href="<?php echo Yii::app()->apps->getAppUrl('frontend', 'lists/'.$list->list_uid.'/subscribe', true);?>" target="_blank"><?php echo Yii::t('list_pages', 'View it in your browser');?></a>
    </div>
    <div class="clearfix"><!-- --></div>
</div>

<?php $this->renderPartial('_form');?>