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

80 lines
3.3 KiB
Plaintext

<%= simple_form_for(@campaign, url: @action, html: {class: 'form-horizontal'}) do |frm| %>
<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>
</div>
<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 :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' %>
</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", 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' %>
</div>
<% end %>
</div>
</div>
<div class="col-md-1"></div>
</div>
<div class="actions">
<%= frm.submit %>
</div>
<% end %>