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-22 16:52:28 +00:00
|
|
|
<th>Listing Code(Form Hash)</th>
|
|
|
|
<th>Processed?</th>
|
2014-04-21 17:19:52 +00:00
|
|
|
<th>Billing Code</th>
|
2014-04-14 18:41:53 +00:00
|
|
|
<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>
|
2014-04-07 18:41:34 +00:00
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
<% @campaigns.each do |campaign| %>
|
|
|
|
<tr>
|
2014-04-22 15:02:40 +00:00
|
|
|
<td><%= link_to campaign.listingcode, campaign_path(campaign.listingcode) %></td>
|
2014-04-22 16:52:28 +00:00
|
|
|
<td><i class="glyphicon glyphicon-<% if campaign.processed? %>ok<% else %>remove<% end %>"></i> </td>
|
2014-04-21 17:19:52 +00:00
|
|
|
<td><%= campaign.billingcode %></td>
|
2014-04-21 15:54:28 +00:00
|
|
|
<td><%= campaign.address %></td>
|
2014-04-07 18:41:34 +00:00
|
|
|
<td><%= campaign.city %></td>
|
|
|
|
<td><%= campaign.state %></td>
|
|
|
|
<td><%= campaign.zip %></td>
|
2014-04-22 15:02:40 +00:00
|
|
|
<td><%= link_to 'Edit', edit_campaign_path(campaign.listingcode) %></td>
|
|
|
|
<td><%= link_to 'Destroy', campaign_path(campaign.listingcode), 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 %>
|