Campaigns


<% @campaigns.each do |campaign| %> <% end %>
Listing Code (Form Hash) Advertiser Sent? Percent of Videos Completed Address City State ZIP
<%= link_to campaign.listingcode, campaign_path(campaign.listingcode) %> <%= campaign.advertisername %> <%= number_to_percentage(campaign.video_completion_percent, precision: 0) %> <%= campaign.address %> <%= campaign.city %> <%= campaign.state %> <%= campaign.zip %> <%= link_to 'Edit', edit_campaign_path(campaign.listingcode) unless campaign.sent %> <%= link_to 'Destroy', campaign_path(campaign.listingcode), method: :delete, data: { confirm: 'Are you sure?' } if admin_signed_in? %>
<%= link_to 'New Campaign', new_campaign_path unless Rails.env.production? %>