2014-04-07 18:41:34 +00:00
|
|
|
<h1>Listing campaigns</h1>
|
2014-04-08 19:27:38 +00:00
|
|
|
<table>
|
2014-04-07 18:41:34 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Clientid</th>
|
|
|
|
<th>Listingcode</th>
|
|
|
|
<th>Address1</th>
|
|
|
|
<th>City</th>
|
|
|
|
<th>State</th>
|
|
|
|
<th>Zip</th>
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
<% @campaigns.each do |campaign| %>
|
|
|
|
<tr>
|
|
|
|
<td><%= campaign.clientid %></td>
|
|
|
|
<td><%= campaign.listingcode %></td>
|
|
|
|
<td><%= campaign.address1 %></td>
|
|
|
|
<td><%= campaign.city %></td>
|
|
|
|
<td><%= campaign.state %></td>
|
|
|
|
<td><%= campaign.zip %></td>
|
2014-04-09 18:12:14 +00:00
|
|
|
<td><%= link_to 'Show', campaign_path(campaign.clientid) %></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>
|
2014-04-07 18:41:34 +00:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<%= link_to 'New Campaign', new_campaign_path %>
|