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

61 lines
1.7 KiB
Plaintext
Raw Normal View History

2014-04-07 21:24:08 +00:00
<%= simple_form_for(@campaign) do |frm| %>
2014-04-07 18:41:34 +00:00
<% 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 %>
2014-04-07 21:24:08 +00:00
<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>
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 %>