Improve article header consistency

This commit is contained in:
wvengen 2015-11-18 22:42:31 +01:00
parent dcf921dc8d
commit 6a0147d2e7
4 changed files with 15 additions and 10 deletions

View file

@ -1,11 +1,13 @@
%tbody{id: "oa_#{order_article.id}"}
- if not defined?(heading) or heading
%tr.list-heading
%th.name{:colspan => "4"}>
= order_article.article.name + ' '
= "(#{order_article.article.unit}, #{number_to_currency order_article.price.fc_price}"
- pkg_info = pkg_helper(order_article.price)
= ", #{pkg_info}".html_safe unless pkg_info.blank?
)
%th{:colspan => "4"}>
%h4.name.pull-left
= order_article.article.name
%small
= "(#{order_article.article.unit}, #{number_to_currency order_article.price.fc_price}"
- pkg_info = pkg_helper(order_article.price)
= ", #{pkg_info}".html_safe unless pkg_info.blank?
)
- for goa in order_article.group_order_articles.ordered
= render 'shared/articles_by/article_single_goa', goa: goa, edit: (edit rescue nil)