Improve article header consistency
This commit is contained in:
parent
dcf921dc8d
commit
6a0147d2e7
4 changed files with 15 additions and 10 deletions
|
@ -119,6 +119,9 @@ table {
|
||||||
td:first-child {
|
td:first-child {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
small {
|
||||||
|
color: inherit; // keep it readable instead of gray
|
||||||
|
}
|
||||||
}
|
}
|
||||||
th.numeric, td.numeric {
|
th.numeric, td.numeric {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
%tbody{id: "oa_#{order_article.id}"}
|
%tbody{id: "oa_#{order_article.id}"}
|
||||||
- if not defined?(heading) or heading
|
- if not defined?(heading) or heading
|
||||||
%tr.list-heading
|
%tr.list-heading
|
||||||
%th.name{:colspan => "4"}>
|
%th{:colspan => "4"}>
|
||||||
= order_article.article.name + ' '
|
%h4.name.pull-left
|
||||||
|
= order_article.article.name
|
||||||
|
%small
|
||||||
= "(#{order_article.article.unit}, #{number_to_currency order_article.price.fc_price}"
|
= "(#{order_article.article.unit}, #{number_to_currency order_article.price.fc_price}"
|
||||||
- pkg_info = pkg_helper(order_article.price)
|
- pkg_info = pkg_helper(order_article.price)
|
||||||
= ", #{pkg_info}".html_safe unless pkg_info.blank?
|
= ", #{pkg_info}".html_safe unless pkg_info.blank?
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
%table.table.table-hover.list#articles_by_articles
|
%table.table.table-condensed.table-hover.list#articles_by_articles
|
||||||
%thead.list-heading
|
%thead.list-heading
|
||||||
%tr
|
%tr
|
||||||
%th{:style => 'width:70%'}= Ordergroup.model_name.human
|
%th{:style => 'width:70%'}= Ordergroup.model_name.human
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
%table.table.table-hover.list#articles_by_groups
|
%table.table.table-condensed.table-hover.list#articles_by_groups
|
||||||
%thead.list-heading
|
%thead.list-heading
|
||||||
%tr
|
%tr
|
||||||
%th{:style => "width:40%"}= heading_helper Article, :name
|
%th{:style => "width:40%"}= heading_helper Article, :name
|
||||||
|
|
Loading…
Reference in a new issue