vidpush/app/views/campaigns/_form.html.erb
2014-04-08 11:49:31 -04:00

61 lines
1.7 KiB
Plaintext

<%= simple_form_for(@campaign) do |frm| %>
<% 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 class="row">
<div class="small-6 medium-6 large-6 columns">
<%= frm.input :clientid %>
<%= frm.input :listingcode %>
<%= frm.input :billingcode %>
<%= frm.input :advertisername %>
<%= frm.input :address1 %>
<%= frm.input :address2 %>
<%= frm.input :city %>
<%= frm.input :state %>
<%= frm.input :zip %>
<%= frm.input :emailaddress %>
<%= frm.input :customerfirstname %>
<%= frm.input :customerlastname %>
<%= frm.input :salesrep %>
<%= frm.input :salesrepemail %>
<%= frm.input :businessphone %>
<%= frm.input :contactphone %>
<%= frm.input :websiteurl %>
</div>
<div class="small-6 medium-6 large-6 columns">
<ul>
<%= frm.simple_fields_for :videolistings do |vidlist| %>
<li>
<%= vidlist.input :videocode %>
<%= vidlist.input :producttypeid %>
<%= vidlist.input :remoteassetsarchive %>
<%= vidlist.input :voiceoverselection %>
<%= vidlist.input :musicselection %>
<%= vidlist.input :clientprovidedscript %>
<%= vidlist.input :keywords %>
<%= vidlist.input :focus %>
<%= vidlist.input :notes %>
<%= vidlist.input :asseturls %>
</li>
<% end %>
</ul>
</div>
</div>
<div class="actions">
<%= frm.submit %>
</div>
<% end %>