rendered paste body<?php use_helper('Javascript') ?>
<div id="list">
<div id="title">
Campaign List
</div>
<div id="main">
<table class="basicList">
<thead>
<tr>
<th> </th>
<th>Name</th>
<th>Customer</th>
<th>Start</th>
<th>Finish</th>
<th># of prospects</th>
<th>Created at</th>
<th>Updated at</th>
</tr>
</thead>
<tbody>
<?php foreach ($campaigns as $campaign): ?>
<tr>
<td class="delete"><?php echo link_to(image_tag('../images/delete.gif'), 'campaign/delete?id='.$campaign->getId(), 'post=true&confirm=Are you sure?') ?></td>
<td class="even">
<?php echo link_to_remote($campaign->getName(), array(
'update' => 'wrapper_main',
'url' => 'campaign/show?id='.$campaign->getId(),
)) ?>
</td>
<td class="uneven"><?php echo $campaign->getCustomerLink() ?></td>
<td class="even"><?php echo $campaign->getStart() ?></td>
<td class="uneven"><?php echo $campaign->getFinish() ?></td>
<td class="even"><?php echo link_to($campaign->getProspectList(), 'prospect/campaignList?id='.$campaign->getId()) ?></td>
<td class="uneven"><?php echo $campaign->getCreatedAt() ?></td>
<td class="even"><?php echo $campaign->getUpdatedAt() ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="footer">
<ul>
<li><?php echo link_to('create', 'campaign/create') ?></li>
</ul>
</div>
</div>