2014-04-07 18:41:34 +00:00
|
|
|
<h1>Listing campaigns</h1>
|
2014-04-14 18:41:53 +00:00
|
|
|
<table class="table table-striped">
|
2014-04-07 18:41:34 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2014-04-14 18:41:53 +00:00
|
|
|
<th>Client ID</th>
|
|
|
|
<th>Listing Code</th>
|
|
|
|
<th>Address</th>
|
2014-04-07 18:41:34 +00:00
|
|
|
<th>City</th>
|
|
|
|
<th>State</th>
|
2014-04-14 18:41:53 +00:00
|
|
|
<th>ZIP</th>
|
|
|
|
<th>Processed?</th>
|
2014-04-07 18:41:34 +00:00
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
<% @campaigns.each do |campaign| %>
|
|
|
|
<tr>
|
2014-04-14 18:41:53 +00:00
|
|
|
<td><%= link_to campaign.clientid, campaign_path(campaign.clientid) %></td>
|
2014-04-07 18:41:34 +00:00
|
|
|
<td><%= campaign.listingcode %></td>
|
|
|
|
<td><%= campaign.address1 %></td>
|
|
|
|
<td><%= campaign.city %></td>
|
|
|
|
<td><%= campaign.state %></td>
|
|
|
|
<td><%= campaign.zip %></td>
|
2014-04-14 18:41:53 +00:00
|
|
|
<td><%= campaign.processed? %></td>
|
2014-04-09 18:12:14 +00:00
|
|
|
<td><%= link_to 'Edit', edit_campaign_path(campaign.clientid) %></td>
|
|
|
|
<td><%= link_to 'Destroy', campaign_path(campaign.clientid), method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
2014-04-07 18:41:34 +00:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<%= link_to 'New Campaign', new_campaign_path %>
|