update html styles

This commit is contained in:
Tyrel Souza 2014-04-24 11:58:38 -04:00
parent daa16765ca
commit 65c10c4909
2 changed files with 26 additions and 32 deletions

View File

@ -4,43 +4,38 @@
file: :vertical_file_input, file: :vertical_file_input,
boolean: :vertical_boolean boolean: :vertical_boolean
}) do |frm| %> }) do |frm| %>
<div class="row"> <% if @campaign.errors.any? %>
<div class="col-md-1"></div> <div class="row">
<div class="col-md-10 error_explanation">
<div class="col-md-10"> <h2><%= pluralize(@campaign.errors.count, "error") %> prohibited this campaign from being saved:</h2>
<% if @campaign.errors.any? %> <ul>
<div id="error_explanation"> <% @campaign.errors.full_messages.each do |msg| %>
<h2><%= pluralize(@campaign.errors.count, "error") %> prohibited this campaign from being saved:</h2> <li><%= msg %></li>
<ul> <% end %>
<% @campaign.errors.full_messages.each do |msg| %> </ul>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
</div> </div>
<div class="col-md-1"></div> </div>
</div> <% end %>
<div class="row"> <div class="row">
<div class="col-md-4 col-md-offset-1"> <div class="col-md-5">
<%= frm.input :advertisername, <%= frm.input :advertisername,
label: 'Advertiser Name', label: 'Advertiser Name',
hint: "The name of the company." %> hint: "The name of the company." %>
<%= frm.input :listingcode, <%= frm.input :listingcode,
label: 'Listing Code', label: 'Listing Code',
hint: "This should be the same as Intake Form's Form Hash." %> hint: "This should be the same as Intake Form's Form Hash." %>
<%= frm.input :clientid, <%= frm.input :clientid,
label: 'Client ID', label: 'Client ID',
hint: 'An identifier provided by BetterVideo.' %> hint: 'An identifier provided by BetterVideo.' %>
<%= frm.input :description, <%= frm.input :description,
label: 'Description', label: 'Description',
as: 'text', as: 'text',
hint: "Used for script research." %> hint: "Used for script research." %>
<%= frm.input :productsandservices, <%= frm.input :productsandservices,
label: 'Products & Services', label: 'Products & Services',
hint: "Used in script and video research. List of items, Type product or service, then press enter to add another item." %> hint: "Used in script and video research. List of items, Type product or service, then press enter to add another item." %>
<%= frm.input :websiteurl, <%= frm.input :websiteurl,
label: 'Website URL', label: 'Website URL',
hint: "Used for script research and may be used in the video if they are including websites in the video graphics." %> 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, <%= frm.input :tollfreephone,
label: 'Tollfree Phone', label: 'Tollfree Phone',
hint: "Toll-free phone number of business. Used in video creation." %> hint: "Toll-free phone number of business. Used in video creation." %>
</div> </div>
<div class="col-md-3"> <div class="col-md-5 videolisting">
<div class="videolisting">
<%= frm.simple_fields_for(:videolistings, html: {class: 'form-horizontal'}) do |videolisting| %> <%= frm.simple_fields_for(:videolistings, html: {class: 'form-horizontal'}) do |videolisting| %>
<%= render 'videolisting_fields', :f => videolisting %> <%= render 'videolisting_fields', :f => videolisting %>
<% end %> <% end %>
<div class="links"> <div class="links">
[<%= link_to_add_association 'Add Videolisting', frm, :videolistings %>] [<%= link_to_add_association 'Add Videolisting', frm, :videolistings %>]
</div> </div>
</div> </div>
</div>
</div> </div>

View File

@ -1,6 +1,8 @@
<%= link_to 'Back', campaigns_path %> <%= link_to 'Back', campaigns_path %>
<div class="col-md-offset-1 col-md-10">
<h1>New campaign</h1> <h1>New campaign</h1>
<%= render 'form' %> <%= render 'form' %>
</div>