39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
<h1>Listing campaigns</h1>
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Client ID</th>
|
|
<th>Listing Code</th>
|
|
<th>Billing Code</th>
|
|
<th>Address</th>
|
|
<th>City</th>
|
|
<th>State</th>
|
|
<th>ZIP</th>
|
|
<th>Processed?</th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% @campaigns.each do |campaign| %>
|
|
<tr>
|
|
<td><%= link_to campaign.clientid, campaign_path(campaign.clientid) %></td>
|
|
<td><%= campaign.listingcode %></td>
|
|
<td><%= campaign.billingcode %></td>
|
|
<td><%= campaign.address %></td>
|
|
<td><%= campaign.city %></td>
|
|
<td><%= campaign.state %></td>
|
|
<td><%= campaign.zip %></td>
|
|
<td><%= campaign.processed? %></td>
|
|
<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>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<br>
|
|
|
|
<%= link_to 'New Campaign', new_campaign_path %>
|