footer layout
This commit is contained in:
parent
0216ecfaf5
commit
6c51972248
4 changed files with 34 additions and 8 deletions
|
@ -94,3 +94,8 @@ footer ul li {
|
||||||
.center{
|
.center{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.debug_dump{
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 30px;
|
||||||
|
}
|
||||||
|
|
|
@ -1,3 +1,17 @@
|
||||||
// Place all the styles related to the Orders controller here.
|
// Place all the styles related to the Orders controller here.
|
||||||
// They will automatically be included in application.css.
|
// They will automatically be included in application.css.
|
||||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
// 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;
|
||||||
|
}
|
||||||
|
|
|
@ -10,12 +10,16 @@
|
||||||
<body>
|
<body>
|
||||||
<%= render "layouts/header" %>
|
<%= render "layouts/header" %>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
<div class="container" >
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
|
</div>
|
||||||
<%= render "layouts/footer" %>
|
<%= render "layouts/footer" %>
|
||||||
|
<%= debug(params) if Rails.env.development? %>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= debug(params) if Rails.env.development? %>
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
<%= @user.name %>
|
<h3><%= @user.name %></h3>
|
||||||
|
|
||||||
<%= form_for( @order, url: user_orders_path(@user)) do |f| %>
|
<%= form_for( @order, url: user_orders_path(@user)) do |f| %>
|
||||||
<%= render 'application/errors', model: @order %>
|
<%= 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| %>
|
<%= f.fields_for :order_products do |op_field| %>
|
||||||
<%= render 'order_products/form_row', f: op_field %>
|
<%= render 'order_products/form_row', f: op_field %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<%= render 'order_products/total_price', f: f %>
|
<div class="col-md-12 form_total">
|
||||||
<%= f.submit "Order", class: "btn btn-primary " %>
|
<%= render 'order_products/total_price', f: f %>
|
||||||
|
<%= f.submit "Order", class: "btn btn-primary " %>
|
||||||
|
</div>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in a new issue