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,12 +4,9 @@
file: :vertical_file_input, file: :vertical_file_input,
boolean: :vertical_boolean boolean: :vertical_boolean
}) do |frm| %> }) do |frm| %>
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-10">
<% if @campaign.errors.any? %> <% if @campaign.errors.any? %>
<div id="error_explanation"> <div class="row">
<div class="col-md-10 error_explanation">
<h2><%= pluralize(@campaign.errors.count, "error") %> prohibited this campaign from being saved:</h2> <h2><%= pluralize(@campaign.errors.count, "error") %> prohibited this campaign from being saved:</h2>
<ul> <ul>
<% @campaign.errors.full_messages.each do |msg| %> <% @campaign.errors.full_messages.each do |msg| %>
@ -17,14 +14,12 @@
<% end %> <% end %>
</ul> </ul>
</div> </div>
</div>
<% end %> <% end %>
</div>
<div class="col-md-1"></div>
</div>
<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." %>
@ -94,8 +89,7 @@
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 %>
@ -105,8 +99,6 @@
</div> </div>
</div> </div>
</div>
<div class="actions"> <div class="actions">
<%= frm.submit %> <%= frm.submit %>

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>