37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
<div class="container">
|
|
<section>
|
|
<h1>Campaigns</h1>
|
|
<hr>
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Listing Code (Form Hash)</th>
|
|
<th>Processed?</th>
|
|
<th>Billing Code</th>
|
|
<th>Address</th>
|
|
<th>City</th>
|
|
<th>State</th>
|
|
<th>ZIP</th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @campaigns.each do |campaign| %>
|
|
<tr>
|
|
<td><%= link_to campaign.listingcode, campaign_path(campaign.listingcode) %></td>
|
|
<td><i class="glyphicon glyphicon-<% if campaign.processed? %>ok<% else %>remove<% end %>"></i> </td>
|
|
<td><%= campaign.billingcode %></td>
|
|
<td><%= campaign.address %></td>
|
|
<td><%= campaign.city %></td>
|
|
<td><%= campaign.state %></td>
|
|
<td><%= campaign.zip %></td>
|
|
<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>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
<%= link_to 'New Campaign', new_campaign_path %>
|
|
</section>
|
|
</div> |