<h1 class="page-header"><?php echo $model->mailerContent->subject; ?></h1>

<div class="row">
	<div class="col-md-6">
		<h4>Emailer Details</h4>

		<table class="table table-bordered">
			<colgroup>
				<col class="col-md-4">
				<col class="col-md-8">
			</colgroup>
			<tr>
				<th>Subject</th>
				<td><?php echo $model->mailerContent->subject; ?></td>
			</tr>
			<tr>
				<th>Outbound Name</th>
				<td><?php echo $model->mailerContent->outbound_name; ?></td>
			</tr>
			<tr>
				<th>Date Created</th>
				<td><?php echo (new DateTime($model->mailerContent->date_created))->format('M d, Y'); ?></td>
			</tr>
		</table>
	</div>
	<div class="col-md-6">
		<h4>Link Details</h4>

		<table class="table table-bordered">
			<colgroup>
				<col class="col-md-4">
				<col class="col-md-8">
			</colgroup>
			<tr>
				<th>Variable Link</th>
				<td><?php echo $model->link_variable_name; ?></td>
			</tr>
			<tr>
				<th>Text</th>
				<td><?php echo $model->text_value; ?></td>
			</tr>
			<tr>
				<th>URL</th>
				<td><?php echo CHtml::link($model->url,$model->url); ?></td>
			</tr>
		</table>
	</div>
</div>


<div class="hidden"><?php Dev::pm($model); ?></div>

<h4>Contacts <?php echo (($dataType == MailerContentTracking::TYPE_SEED_DATA)? " ( SEEDS ) ":""); ?></h4>
<div class="table-responsive">
	<?php 
	$this->widget('zii.widgets.CListView', array(
		'dataProvider' => $dataProvider,
		'itemsTagName' => 'table',
		'itemsCssClass' => 'table table-hover',
		'template' => ' {items} {summary} {pager}',
		'itemView' => 'application.yii_app_emailer.yii_app_emailer_views.report._contact',
		'viewData' => array(
			'pagination' => $dataProvider->getPagination(),
			'model' => $model->mailerContent,
			'modelContentLinkVar' => $model
		),
		'pager' => array(
			// 'class' => 'BootstrapLinkPager', 
			'cssFile' => false, 
			'header' => false, 
			'firstPageLabel' => '&lt;&lt;',
			'prevPageLabel' => '&lt;',
			'nextPageLabel' => '&gt;',
			'lastPageLabel' => '&gt;&gt;',
		),
	));
	?>
</div>