vidpush/app/views/campaigns/index.html.erb
Tyrel Souza 8b747da6dc updates
2014-04-08 15:27:38 -04:00

37 lines
892 B
Plaintext

<h1>Listing campaigns</h1>
<table>
<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>
<td><%= link_to 'Show', campaign %></td>
<td><%= link_to 'Edit', edit_campaign_path(campaign) %></td>
<td><%= link_to 'Destroy', campaign, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New Campaign', new_campaign_path %>