2014-04-15 20:59:07 +00:00
|
|
|
<%= simple_form_for(@campaign, url: @action, html: {class: 'form-horizontal'}) do |frm| %>
|
2014-04-09 21:39:48 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-1"></div>
|
|
|
|
|
|
|
|
<div class="col-md-10">
|
|
|
|
<% if @campaign.errors.any? %>
|
|
|
|
<div id="error_explanation">
|
|
|
|
<h2><%= pluralize(@campaign.errors.count, "error") %> prohibited this campaign from being saved:</h2>
|
|
|
|
<ul>
|
|
|
|
<% @campaign.errors.full_messages.each do |msg| %>
|
|
|
|
<li><%= msg %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-1"></div>
|
2014-04-08 15:49:31 +00:00
|
|
|
</div>
|
|
|
|
|
2014-04-07 21:24:08 +00:00
|
|
|
|
2014-04-09 21:39:48 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-1"></div>
|
|
|
|
<div class="col-md-5">
|
|
|
|
<%= frm.input :clientid, label: 'Client ID' %>
|
|
|
|
<%= frm.input :listingcode, label: 'Listing Code' %>
|
|
|
|
<%= frm.input :websiteurl, label: 'Website URL'%>
|
|
|
|
<%= frm.input :advertisername, label: 'Advertiser Name' %>
|
|
|
|
<%= frm.input :billingcode, label: 'Billing Code' %>
|
|
|
|
<%= frm.input :emailaddress, label: 'Email Address' %>
|
|
|
|
<%= frm.input :salesrep, label: 'Sales Rep' %>
|
|
|
|
<%= frm.input :salesrepemail, label: 'Sales Rep Email' %>
|
|
|
|
<%= frm.input :businessphone, label: 'Business Phone' %>
|
|
|
|
<%= frm.input :contactphone, label: 'Contact Phone' %>
|
|
|
|
|
|
|
|
<%= frm.input :customerfirstname, label: 'Customer First Name' %>
|
|
|
|
<%= frm.input :customerlastname, label: 'Customer Last Name' %>
|
|
|
|
<%= frm.input :address1, label: 'Address Line 1' %>
|
|
|
|
<%= frm.input :address2, label: 'Address Line 2' %>
|
|
|
|
<%= frm.input :city, label: 'City' %>
|
|
|
|
<%= frm.input :state, label: 'State' %>
|
|
|
|
<%= frm.input :zip, label: 'ZIP' %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-5">
|
|
|
|
<div class="videolisting">
|
|
|
|
<%= frm.simple_fields_for(:videolistings, html: {class: 'form-horizontal'}) do |vidlist| %>
|
|
|
|
<div class="<%= cycle('odd','even') %>">
|
|
|
|
<%= vidlist.input :videocode, label: 'Video Code' %>
|
|
|
|
<%= vidlist.input :producttypeid, label: 'Product Type ID' %>
|
|
|
|
<%= vidlist.input :remoteassetsarchive, label: 'Remote Assets Archive' %>
|
|
|
|
<%= vidlist.input :voiceoverselection, label: 'Voiceover Selection' %>
|
|
|
|
<%= vidlist.input :musicselection, label: 'Music Selection' %>
|
|
|
|
<%= vidlist.input :clientprovidedscript, label: 'Client Provided Script' %>
|
|
|
|
<%= vidlist.input :keywords, label: 'Keywords' %>
|
|
|
|
<%= vidlist.input :focus, label: 'Focus' %>
|
|
|
|
<%= vidlist.input :notes, label: 'Notes' %>
|
|
|
|
<%= vidlist.input :asseturls, label: 'Asset Urls' %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-1"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2014-04-07 21:24:08 +00:00
|
|
|
|
2014-04-07 18:41:34 +00:00
|
|
|
<div class="actions">
|
2014-04-07 21:24:08 +00:00
|
|
|
<%= frm.submit %>
|
2014-04-07 18:41:34 +00:00
|
|
|
</div>
|
|
|
|
<% end %>
|