vidpush/app/views/campaigns/_form.html.erb
2014-04-22 15:42:39 -04:00

151 lines
7.5 KiB
Plaintext

<%= simple_form_for(@campaign, url: @action, wrapper_mappings: {
check_boxes: :vertical_radio_and_checkboxes,
radio_buttons: :vertical_radio_and_checkboxes,
file: :vertical_file_input,
boolean: :vertical_boolean
}) 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-4 col-md-offset-1">
<%= frm.input :advertisername,
label: 'Advertiser Name',
hint: "The name of the company." %>
<%= frm.input :listingcode,
label: 'Listing Code',
hint: "This should be the same as Intake Form's Form Hash." %>
<%= frm.input :clientid,
label: 'Client ID',
hint: 'An identifier provided by BetterVideo.' %>
<%= frm.input :description,
label: 'Description',
as: 'text',
hint: "Used for script research." %>
<%= frm.input :productsandservices,
label: 'Products & Services',
hint: "Used in script and video research. List of items, Type product or service, then press enter to add another item.",
input_html: {data: {role: "tagsinput" }} %>
<%= frm.input :websiteurl,
label: 'Website URL',
hint: "Used for script research and may be used in the video if they are including websites in the video graphics." %>
<%= frm.input :vpa,
label: 'Client Service Rep',
hint: "This is the full name of the client services representative, as entered in the BetteVideo system associated with this order. This feature is designed for sales reps that are well known to the system. This feature is typically used for automated communication." %>
<%= frm.input :billingcode,
label: 'Billing Code',
hint: "Market or billing code. Should match a billing code in the BetterVideo system so it can be associated." %>
<%= 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',
collection: us_states%>
<%= frm.input :zip,
label: 'ZIP' %>
<%= frm.input :awards,
label: 'Awards',
hint: "Used in script and video research." %>
<%= frm.input :background,
label: 'Background',
hint: "This is the background of the company and is used for script research." %>
<%= frm.input :categories,
label: 'Categories',
hint: "Used in script and video research." %>
<%= frm.input :companycolors,
label: 'Company Colors',
hint: "List of items, Type color, then press enter to add another item.",
placeholder: "ex: red, white, blue",
input_html: {data: {role: "tagsinput" }} %>
<%= frm.input :facebookurl,
label: 'Facebook URL',
hint: "Used for script and photo research." %>
<%= frm.input :targetaudience,
label: 'Target Audience',
hint: "Used in script and video research." %>
<%= frm.input :tollfreephone,
label: 'Tollfree Phone',
hint: "Toll-free phone number of business. Used in video creation." %>
</div>
<div class="col-md-3">
<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',
hint: "Unique identifier for every video." %>
<%= vidlist.input :producttypeid,
label: "Product Type",
collection: producttypeid_list,
hint: "What type of content to create for this video. The types available are dependant on the pre-defined list of products." %>
<%= vidlist.input :voiceoverselection,
label: 'Voiceover Selection',
collection: voiceoverselection_list,
hint: "What type of voiceover talent to use." %>
<%= vidlist.input :musicselection,
label: 'Music Selection',
collection: musicselection_list,
hint: "What type of music to use in the video." %>
<%= vidlist.input :clientprovidedscript,
label: 'Client Provided Script',
as: 'text',
hint: "If the customer has provided a script for BetterVideo to use. Formatting is text only." %>
<%= vidlist.input :keywords,
label: 'Keywords',
hint: "Keywords for use in VSEO campaigns or indexing such as Google or YouTube.",
input_html: {data: {role: "tagsinput" }} %>
<%= vidlist.input :focus,
label: 'Focus',
hint: "Information used to guide BetterVideo in creating the video." %>
<%= vidlist.input :notes,
label: 'Notes',
hint: "Notes and/or instructions sent in this field are used by the editors to aid in production of the video." %>
<%= vidlist.input :asseturls,
label: 'Asset Urls',
placeholder: "ex: http://www.company.com/logo.png, http://www.company.com/background.png",
hint: "A list of all file assets. List of items, Type asset url, then press enter to add another item.",
input_html: {data: {role: "tagsinput" }}%>
</div>
<% end %>
</div>
</div>
</div>
<div class="actions">
<%= frm.submit %>
</div>
<% end %>