commit
0b63edd40e
|
@ -26,11 +26,13 @@
|
||||||
}
|
}
|
||||||
button.product {
|
button.product {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
height: 100px;
|
||||||
p {
|
p {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
img {
|
img {
|
||||||
|
max-height: 70%;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
.col-md-2{ data: { name: product.name } }
|
.col-md-2{ data: { name: product.name } }
|
||||||
%button.btn.btn-default.product{ data: { product: product.id, dismiss: :modal } }
|
%button.btn.btn-default.product{ data: { product: product.id, dismiss: :modal } }
|
||||||
%p= product.name
|
%p= product.name
|
||||||
= image_tag product.avatar(:dagschotel), class: "center"
|
= image_tag product.avatar(:dagschotel), class: "center img-responsive"
|
||||||
.modal-footer
|
.modal-footer
|
||||||
%button.btn.btn-default{ data: { dismiss: :modal } }
|
%button.btn.btn-default{ data: { dismiss: :modal } }
|
||||||
Close
|
Close
|
||||||
|
|
|
@ -5,8 +5,9 @@
|
||||||
= form_tag nil, id: "from_barcode_form", data: { url: URI.join(root_url, "barcodes").to_s } do
|
= form_tag nil, id: "from_barcode_form", data: { url: URI.join(root_url, "barcodes").to_s } do
|
||||||
%input.center-block{ type: :number, name: :id, autofocus: true }
|
%input.center-block{ type: :number, name: :id, autofocus: true }
|
||||||
= "- OR -"
|
= "- OR -"
|
||||||
%button.btn.btn-default.center-block{ data: { toggle: :modal, target: "#products_modal" } }
|
%p
|
||||||
Select Product Without Barcode
|
%button.btn.btn-default.center-block{ data: { toggle: :modal, target: "#products_modal" } }
|
||||||
|
Select Product Without Barcode
|
||||||
.col-md-4.col-md-offset-1
|
.col-md-4.col-md-offset-1
|
||||||
= form_for [@user, @order] do |f|
|
= form_for [@user, @order] do |f|
|
||||||
= render 'errors', object: @order
|
= render 'errors', object: @order
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
.row
|
.row
|
||||||
.col-md-7
|
.col-md-7
|
||||||
%h4.pull-right Select a product to link the barcode to an existing product ...
|
%h4.center Select a product to link the barcode to an existing product ...
|
||||||
#product_buttons.row
|
%p
|
||||||
- Product.all.each do |product|
|
#product_buttons.row
|
||||||
.col-md-3
|
- Product.all.each do |product|
|
||||||
= button_to product_barcodes_path(product), class: "btn btn-default product", data: { product: product.id, dismiss: :modal }, params: { "barcode[code]" => params[:barcode] } do
|
%tr
|
||||||
%p= product.name
|
.col-md-3
|
||||||
= image_tag product.avatar(:dagschotel), class: "center"
|
= button_to product_barcodes_path(product), class: "btn btn-default product", data: { product: product.id, dismiss: :modal }, params: { "barcode[code]" => params[:barcode] } do
|
||||||
|
%p= product.name
|
||||||
|
= image_tag product.avatar(:dagschotel), class: "center img-responsive"
|
||||||
.col-md-5
|
.col-md-5
|
||||||
%h4 or create a new one
|
%h4 or create a new one
|
||||||
= render 'products/form'
|
= render 'products/form'
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
= content_for :title, "Login"
|
= content_for :title, "Login"
|
||||||
If this is the first time you log in, an account will be created for you.
|
%p
|
||||||
|
If this is the first time you log in, an account will be created for you.
|
||||||
%div
|
%div
|
||||||
= link_to "Sign in with Zeus WPI account.", omniauth_authorize_path("user", "zeuswpi"), class: "btn btn-large btn-primary"
|
= link_to "Sign in with Zeus WPI account.", omniauth_authorize_path("user", "zeuswpi"), class: "btn btn-large btn-primary"
|
||||||
|
|
Loading…
Reference in a new issue