update html styles
This commit is contained in:
parent
daa16765ca
commit
65c10c4909
@ -4,43 +4,38 @@
|
||||
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 %>
|
||||
<% if @campaign.errors.any? %>
|
||||
<div class="row">
|
||||
<div class="col-md-10 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>
|
||||
<div class="col-md-1"></div>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4 col-md-offset-1">
|
||||
<div class="col-md-5">
|
||||
<%= frm.input :advertisername,
|
||||
label: 'Advertiser Name',
|
||||
hint: "The name of the company." %>
|
||||
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." %>
|
||||
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." %>
|
||||
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." %>
|
||||
label: 'Products & Services',
|
||||
hint: "Used in script and video research. List of items, Type product or service, then press enter to add another item." %>
|
||||
<%= 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." %>
|
||||
@ -92,19 +87,16 @@
|
||||
<%= frm.input :tollfreephone,
|
||||
label: 'Tollfree Phone',
|
||||
hint: "Toll-free phone number of business. Used in video creation." %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="videolisting">
|
||||
<div class="col-md-5 videolisting">
|
||||
<%= frm.simple_fields_for(:videolistings, html: {class: 'form-horizontal'}) do |videolisting| %>
|
||||
<%= render 'videolisting_fields', :f => videolisting %>
|
||||
<% end %>
|
||||
<div class="links">
|
||||
[<%= link_to_add_association 'Add Videolisting', frm, :videolistings %>]
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
<%= link_to 'Back', campaigns_path %>
|
||||
<div class="col-md-offset-1 col-md-10">
|
||||
|
||||
<h1>New campaign</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user