more clarity whether a number is number units or boxes

This commit is contained in:
wvengen 2013-11-25 15:13:54 +01:00
parent bd1b932775
commit 9c340ec08e
2 changed files with 20 additions and 3 deletions

View file

@ -252,3 +252,15 @@ tr.unavailable {
.input-append button.add-on { .input-append button.add-on {
height: inherit; height: inherit;
} }
// show package icon after amount of package numbers
.package {
background: url(package-bg.png) no-repeat right center;
}
i.package {
width: 18px;
color: transparent; // hide text inside
}
.input-nano {
width: 30px;
}

View file

@ -8,9 +8,14 @@
%td.name{title: order_title.join("\n")}= order_article.article.name %td.name{title: order_title.join("\n")}= order_article.article.name
%td #{order_article.article.unit_quantity} × #{order_article.article.unit} %td #{order_article.article.unit_quantity} × #{order_article.article.unit}
%td #{order_article.quantity} + #{order_article.tolerance} %td #{order_article.quantity} + #{order_article.tolerance}
%td= order_article.units_to_order
%td= order_article.units_billed
%td %td
= form.text_field :units_received, class: 'input-mini', data: {'units-expected' => units_expected} = order_article.units_to_order
%i.package pkg
%td
- unless order_article.units_billed.nil?
= order_article.units_billed
%i.package pkg
%td
= form.text_field :units_received, class: 'input-nano package', data: {'units-expected' => units_expected}
/ TODO add almost invisible text_field for entering single units / TODO add almost invisible text_field for entering single units
%td.units_delta %td.units_delta