ui design update
This commit is contained in:
parent
dd138da1a6
commit
a439f26b67
4 changed files with 22 additions and 11 deletions
|
|
@ -25,4 +25,13 @@ module OrdersHelper
|
|||
units_info += ", #{order_article.units_received} received" unless order_article.units_received.nil?
|
||||
end
|
||||
end
|
||||
|
||||
# can be article or article_price
|
||||
def pkg_helper(article, icon=true)
|
||||
if icon
|
||||
"<i class='package'> × #{article.unit_quantity}</i>".html_safe
|
||||
else
|
||||
"<span class='package'> × #{article.unit_quantity}</span>".html_safe
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue