vidpush/app/views/campaigns/show.html.erb

147 lines
5.2 KiB
Plaintext
Raw Normal View History

2014-04-25 02:02:21 +00:00
<div class="container">
<section>
<div class="pull-right">
<%= link_to 'Edit Campaign', edit_campaign_path(@campaign.listingcode) %> |
<%= link_to 'Back to Campaigns', campaigns_path %>
2014-04-22 19:22:36 +00:00
</div>
<h1><%= @campaign.advertisername %></h1>
<hr>
<p id="notice"><%= notice %></p>
<div class="row">
<div class="col-md-8">
<ul>
2014-04-25 20:35:42 +00:00
<% unless @campaign.listingcode.blank? %>
2014-04-25 16:13:44 +00:00
<li>
<p><strong>Listing Code</strong><br>
<%= @campaign.listingcode %></p>
</li>
<% end %>
2014-04-25 20:35:42 +00:00
<% unless @campaign.description.blank? %>
2014-04-25 16:13:44 +00:00
<li>
<p><strong>Description</strong><br>
<%= @campaign.description %></p>
</li>
<% end %>
2014-04-25 20:35:42 +00:00
<% unless @campaign.productsandservices.blank? %>
2014-04-25 16:13:44 +00:00
<li>
<p><strong>Products & Services</strong><br>
<%= @campaign.productsandservices %></p>
</li>
<% end %>
2014-04-25 20:35:42 +00:00
<% unless @campaign.websiteurl.blank? %>
2014-04-25 16:13:44 +00:00
<li>
<p><strong>Websiteurl</strong><br>
<%= @campaign.websiteurl %></p>
</li>
<% end %>
2014-04-25 20:35:42 +00:00
<% unless @campaign.vpa.blank? %>
2014-04-25 16:13:44 +00:00
<li>
<p><strong>Client Services Rep</strong><br>
<%= @campaign.vpa %></p>
</li>
<% end %>
2014-04-25 20:35:42 +00:00
<% unless @campaign.billingcode.blank? %>
2014-04-25 16:13:44 +00:00
<li>
<p><strong>Billing Code</strong><br>
<%= @campaign.billingcode %></p>
</li>
<% end %>
2014-04-25 20:35:42 +00:00
<% unless @campaign.emailaddress.blank? %>
2014-04-25 16:13:44 +00:00
<li>
<p><strong>Email Address</strong><br>
<%= @campaign.emailaddress %></p>
</li>
<% end %>
2014-04-25 20:35:42 +00:00
<% unless @campaign.businessphone.blank? %>
2014-04-25 16:13:44 +00:00
<li>
<p><strong>Business Phone</strong><br>
<%= number_to_phone @campaign.businessphone %></p>
</li>
<% end %>
2014-04-25 20:35:42 +00:00
<% unless @campaign.contactphone.blank? %>
2014-04-25 16:13:44 +00:00
<li>
<p><strong>Contact Phone</strong><br>
<%= number_to_phone @campaign.contactphone %></p>
</li>
<% end %>
2014-04-25 20:35:42 +00:00
<% unless @campaign.customerfirstname.blank? %>
2014-04-25 16:13:44 +00:00
<li>
<p><strong>Customer First Name</strong><br>
<%= @campaign.customerfirstname %></p>
</li>
<% end %>
2014-04-25 20:35:42 +00:00
<% unless @campaign.customerlastname.blank? %>
2014-04-25 16:13:44 +00:00
<li>
<p><strong>Customer Last Name</strong><br>
<%= @campaign.customerlastname %></p>
</li>
<% end %>
2014-04-25 20:35:42 +00:00
<% unless @campaign.address.blank? %>
2014-04-25 16:13:44 +00:00
<li>
<p><strong>Address</strong><br>
<%= @campaign.address %></p>
</li>
<% end %>
2014-04-25 20:35:42 +00:00
<% if @campaign.city.blank? || @campaign.state || @campaign.zip %>
2014-04-25 16:13:44 +00:00
<li>
<p><strong>City, State, Zip</strong><br>
<%= @campaign.city %>, <%= us_states item: @campaign.state %>, <%= @campaign.zip %></p>
</li>
<% end %>
2014-04-25 20:35:42 +00:00
<% unless @campaign.awards.blank? %>
2014-04-25 16:13:44 +00:00
<li>
<p><strong>Awards</strong><br>
<%= @campaign.awards %></p>
</li>
<% end %>
2014-04-25 20:35:42 +00:00
<% unless @campaign.background.blank? %>
2014-04-25 16:13:44 +00:00
<li>
<p><strong>Background</strong><br>
<%= @campaign.background %></p>
</li>
<% end %>
2014-04-25 20:35:42 +00:00
<% unless @campaign.categories.blank? %>
2014-04-25 16:13:44 +00:00
<li>
<p><strong>Industry Categories</strong><br>
<%= @campaign.categories %></p>
</li>
<% end %>
2014-04-25 20:35:42 +00:00
<% unless @campaign.companycolors.blank? %>
2014-04-25 16:13:44 +00:00
<li>
<p><strong>Company Colors</strong><br>
<%= @campaign.companycolors %></p>
</li>
<% end %>
2014-04-25 20:35:42 +00:00
<% unless @campaign.facebookurl.blank? %>
2014-04-25 16:13:44 +00:00
<li>
<p><strong>Facebook URL</strong><br>
<%= @campaign.facebookurl %></p>
</li>
<% end %>
2014-04-25 20:35:42 +00:00
<% unless @campaign.targetaudience.blank? %>
2014-04-25 16:13:44 +00:00
<li>
<p><strong>Target Audience</strong><br>
<%= @campaign.targetaudience %></p>
</li>
<% end %>
2014-04-25 20:35:42 +00:00
<% unless @campaign.tollfreephone.blank? %>
2014-04-25 16:13:44 +00:00
<li>
<p><strong>Tollfree Phone</strong><br>
<%= @campaign.tollfreephone %></p>
</li>
<% end %>
</ul>
</div>
<div class="col-md-4 videolisting">
<ul class="blue-box-container">
<% @campaign.videolistings.each do |videolisting| %>
<li class="blue-box"><%= render 'videolisting', videolisting: videolisting %></li>
<% end %>
2014-04-25 20:35:42 +00:00
<% if @campaign.videolistings.blank? %>
<li><p>No Video Listings for this Campaign.</p></li>
<% end %>
</ul>
</div>
</div>
2014-04-25 02:02:21 +00:00
</section>
</div>