Add styling to stockentry

This commit is contained in:
benji 2015-09-26 12:13:43 +02:00
parent efa85e7758
commit bd27ac3cca
8 changed files with 35 additions and 29 deletions

View file

@ -1,3 +0,0 @@
// Place all the styles related to the admins controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

View file

@ -1,3 +0,0 @@
// Place all the styles related to the callbacks controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

View file

@ -1,3 +0,0 @@
// Place all the styles related to the sessions controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

View file

@ -1,3 +0,0 @@
// Place all the styles related to the stock controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

View file

@ -0,0 +1,22 @@
#stock_entry {
border: 1px solid #ccc;
background-color: #F5F5F5;
padding: 20px;
border-radius: 8px;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
table {
margin-bottom: 20px;
border-spacing: 10px;
border-collapse: separate;
tr:last-child td {
border-top: 1px dashed;
padding-top: 10px;
}
td {
/* padding: 10px; */
}
}
}

View file

@ -1,3 +0,0 @@
// Place all the styles related to the welcome controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

View file

@ -1,5 +1,5 @@
.row
.col-md-6.col-md-offset-3
#stock_entry.col-md-6.col-md-offset-3
= form_for @product do |f|
%table
%tr
@ -8,9 +8,8 @@
%tr
%td Purchase
%td
%input.form-control.new_stock{ type: :number, data: { increment: true, target: "#product_stock" }}
%input.form-control.new_stock{ type: :number, autofocus: true, data: { increment: true, target: "#product_stock" }}
%tr
%td New stock
%td= f.number_field :stock, data:{ default: f.object.stock }, class: "form-control"
%tr
%td= f.submit "Update stock"
= f.submit "Update stock", class: "btn btn-primary form-control"