update html styles
This commit is contained in:
parent
daa16765ca
commit
65c10c4909
@ -4,12 +4,9 @@
|
||||
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">
|
||||
<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| %>
|
||||
@ -17,14 +14,12 @@
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="col-md-1"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<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." %>
|
||||
@ -94,8 +89,7 @@
|
||||
hint: "Toll-free phone number of business. Used in video creation." %>
|
||||
</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 %>
|
||||
@ -105,8 +99,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="actions">
|
||||
<%= frm.submit %>
|
||||
|
@ -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