<%= simple_form_for(@campaign, url: @action, html: {class: 'form-horizontal'}) do |frm| %>
<% if @campaign.errors.any? %>

<%= pluralize(@campaign.errors.count, "error") %> prohibited this campaign from being saved:

    <% @campaign.errors.full_messages.each do |msg| %>
  • <%= msg %>
  • <% end %>
<% end %>
<%= 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 :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 :address, label: 'Address' %> <%= frm.input :city, label: 'City' %> <%= frm.input :state, label: 'State' %> <%= frm.input :zip, label: 'ZIP' %> <%= frm.input :awards, label: 'Awards' %> <%= frm.input :background, label: 'Background' %> <%= frm.input :categories, label: 'Categories' %> <%= frm.input :companycolors, label: 'Company Colors' %> <%= frm.input :description, label: 'Description' %> <%= frm.input :facebookurl, label: 'Facebook URL' %> <%= frm.input :productsandservices, label: 'Products & Services' %> <%= frm.input :targetaudience, label: 'Target Audience' %> <%= frm.input :tollfreephone, label: 'Tollfree Phone' %> <%= frm.input :vpa, label: 'Client Service Rep' %>
<%= frm.simple_fields_for(:videolistings, html: {class: 'form-horizontal'}) do |vidlist| %>
<%= vidlist.input :videocode, label: 'Video Code' %> <%= vidlist.input :producttypeid, label: "Product Type", collection: producttypeid_list %> <%= vidlist.input :voiceoverselection, label: 'Voiceover Selection', collection: voiceoverselection_list %> <%= vidlist.input :musicselection, label: 'Music Selection', collection: musicselection_list %> <%= 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' %>
<% end %>
<%= frm.submit %>
<% end %>