footer layout

This commit is contained in:
ohsab 2014-12-09 22:36:24 +01:00
parent 0216ecfaf5
commit 6c51972248
4 changed files with 34 additions and 8 deletions

View file

@ -94,3 +94,8 @@ footer ul li {
.center{
text-align: center;
}
.debug_dump{
width: 100%;
margin-top: 30px;
}

View file

@ -1,3 +1,17 @@
// Place all the styles related to the Orders controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
.form_products{
border-width: 1px;
border-color: #000;
border-style: solid;
margin-bottom: 2px;
}
.form_total{
border-width: 1px;
border-color: #000;
border-style: solid;
}

View file

@ -10,12 +10,16 @@
<body>
<%= render "layouts/header" %>
<div class="container">
<%= yield %>
<div class="container" >
<%= yield %>
</div>
<%= render "layouts/footer" %>
<%= debug(params) if Rails.env.development? %>
</div>
<%= debug(params) if Rails.env.development? %>
</body>
</html>

View file

@ -1,13 +1,16 @@
<%= @user.name %>
<h3><%= @user.name %></h3>
<%= form_for( @order, url: user_orders_path(@user)) do |f| %>
<%= render 'application/errors', model: @order %>
<div id="form_products">
<div class="col-md-2 thumbnail form_products">
<%= f.fields_for :order_products do |op_field| %>
<%= render 'order_products/form_row', f: op_field %>
<% end %>
</div>
<%= render 'order_products/total_price', f: f %>
<%= f.submit "Order", class: "btn btn-primary " %>
<div class="col-md-12 form_total">
<%= render 'order_products/total_price', f: f %>
<%= f.submit "Order", class: "btn btn-primary " %>
</div>
<% end %>