2014-04-22 16:52:28 +00:00
|
|
|
<%= 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| %>
|
2014-04-25 21:14:09 +00:00
|
|
|
<!--<% if @campaign.errors.any? %>
|
2014-04-25 17:10:57 +00:00
|
|
|
<div class="error_explanation">
|
2014-04-24 15:58:38 +00:00
|
|
|
<ul>
|
|
|
|
<% @campaign.errors.full_messages.each do |msg| %>
|
2014-04-30 18:41:57 +00:00
|
|
|
<li class="alert alert-danger"><%= msg.html_safe %></li>
|
2014-04-24 15:58:38 +00:00
|
|
|
<% end %>
|
|
|
|
</ul>
|
2014-04-09 21:39:48 +00:00
|
|
|
</div>
|
2014-04-25 21:14:09 +00:00
|
|
|
<% end %>-->
|
2014-04-08 15:49:31 +00:00
|
|
|
|
2014-04-09 21:39:48 +00:00
|
|
|
<div class="row">
|
2014-04-25 16:28:59 +00:00
|
|
|
<div class="col-md-8">
|
2014-04-22 17:44:49 +00:00
|
|
|
<%= frm.input :advertisername,
|
2014-07-02 18:30:08 +00:00
|
|
|
label: 'Business Name',
|
2014-04-24 15:58:38 +00:00
|
|
|
hint: "The name of the company." %>
|
2014-04-22 19:22:36 +00:00
|
|
|
<%= frm.input :listingcode,
|
2014-04-24 15:58:38 +00:00
|
|
|
label: 'Listing Code',
|
2014-07-02 18:30:08 +00:00
|
|
|
as: :hidden %>
|
2014-04-22 19:22:36 +00:00
|
|
|
<%= frm.input :description,
|
2014-04-24 15:58:38 +00:00
|
|
|
label: 'Description',
|
|
|
|
as: 'text',
|
|
|
|
hint: "Used for script research." %>
|
2014-04-22 19:22:36 +00:00
|
|
|
<%= frm.input :productsandservices,
|
2014-04-24 15:58:38 +00:00
|
|
|
label: 'Products & Services',
|
|
|
|
hint: "Used in script and video research. List of items, Type product or service, then press enter to add another item." %>
|
2014-04-22 19:42:39 +00:00
|
|
|
<%= frm.input :websiteurl,
|
2014-04-22 16:52:28 +00:00
|
|
|
label: 'Website URL',
|
|
|
|
hint: "Used for script research and may be used in the video if they are including websites in the video graphics." %>
|
2014-05-05 18:07:33 +00:00
|
|
|
<%= frm.input :vpa,
|
2014-07-02 18:30:08 +00:00
|
|
|
label: 'MIS Rep' %>
|
2014-05-05 18:07:33 +00:00
|
|
|
<%= frm.input :vpa_email,
|
2014-07-02 18:30:08 +00:00
|
|
|
label: 'MIS Rep Email' %>
|
|
|
|
|
|
|
|
<%= frm.input :emailaddress,
|
2014-04-22 16:52:28 +00:00
|
|
|
label: 'Email Address' %>
|
|
|
|
<%= frm.input :businessphone,
|
|
|
|
label: 'Business Phone' %>
|
2014-07-02 18:30:08 +00:00
|
|
|
|
2014-04-22 16:52:28 +00:00
|
|
|
<%= frm.input :address,
|
|
|
|
label: 'Address' %>
|
|
|
|
<%= frm.input :city,
|
|
|
|
label: 'City' %>
|
|
|
|
<%= frm.input :state,
|
2014-04-22 17:44:49 +00:00
|
|
|
label: 'State',
|
|
|
|
collection: us_states%>
|
2014-04-22 16:52:28 +00:00
|
|
|
<%= 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,
|
2014-04-23 21:59:19 +00:00
|
|
|
label: 'Industry Categories',
|
2014-04-22 16:52:28 +00:00
|
|
|
hint: "Used in script and video research." %>
|
|
|
|
<%= frm.input :companycolors,
|
|
|
|
label: 'Company Colors',
|
2014-04-22 20:49:09 +00:00
|
|
|
hint: "Comma separated.",
|
|
|
|
placeholder: "ex: red, white, blue" %>
|
2014-04-22 16:52:28 +00:00
|
|
|
<%= 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." %>
|
2014-04-24 15:58:38 +00:00
|
|
|
</div>
|
2014-04-09 21:39:48 +00:00
|
|
|
|
2014-04-25 16:28:59 +00:00
|
|
|
<div class="col-md-4 videolisting">
|
2014-04-25 21:14:09 +00:00
|
|
|
|
2014-04-24 00:33:59 +00:00
|
|
|
<%= frm.simple_fields_for(:videolistings, html: {class: 'form-horizontal'}) do |videolisting| %>
|
|
|
|
<%= render 'videolisting_fields', :f => videolisting %>
|
2014-04-09 21:39:48 +00:00
|
|
|
<% end %>
|
2014-04-24 00:33:59 +00:00
|
|
|
<div class="links">
|
2014-04-25 15:50:37 +00:00
|
|
|
<%= link_to_add_association 'Add Video Listing', frm, :videolistings %>
|
2014-04-24 00:33:59 +00:00
|
|
|
</div>
|
2014-04-24 15:58:38 +00:00
|
|
|
</div>
|
2014-04-09 21:39:48 +00:00
|
|
|
</div>
|
|
|
|
|
2014-04-07 18:41:34 +00:00
|
|
|
<div class="actions">
|
2014-04-29 17:03:46 +00:00
|
|
|
<%= frm.submit "Save For Later", :name => "save" %>
|
|
|
|
<%= frm.submit "Publish", :name => "send", data: { confirm: 'Once you send to BetterVideo, you cannot edit again. Are you sure?' } %>
|
2014-04-07 18:41:34 +00:00
|
|
|
</div>
|
2014-04-25 15:50:37 +00:00
|
|
|
<% end %>
|