Improved user product category layout

This commit is contained in:
2014-09-05 15:06:35 +02:00
parent 0b3f67ab88
commit a2618eb42e
4 changed files with 44 additions and 43 deletions
@@ -1,5 +1,3 @@
hr.hide-for-medium-up
.clearfix
.panel .panel
ul.product-orders ul.product-orders
each product_order in product_orders each product_order in product_orders
@@ -14,15 +14,14 @@
if tableCanTakeOrders if tableCanTakeOrders
.large-6.columns .large-6.columns
each product_category in supplier.product_categories each product_category in supplier.product_categories
.product-category-container
if product_category.products if product_category.products
hr
h4.product_category-title{action "toggleProductCategory" product_category} h4.product_category-title{action "toggleProductCategory" product_category}
if product_category.collapsed if product_category.collapsed
span.icon.collapsed span.icon.collapsed
else else
span.icon span.icon
= product_category.name = product_category.name
hr
unless product_category.collapsed unless product_category.collapsed
ul.product_category-products ul.product_category-products
each product in product_category.products each product in product_category.products
@@ -41,9 +40,8 @@
.large12 .large12
each product_category in supplier.product_categories each product_category in supplier.product_categories
if product_category.products if product_category.products
hr .product_category-container
h4= product_category.name h4.product-category-title= product_category.name
hr
ul.product_category-products ul.product_category-products
each product in product_category.products each product in product_category.products
li class="order-product-#{unbound product.id}" li class="order-product-#{unbound product.id}"
@@ -7,7 +7,6 @@
@import ./qmodal @import ./qmodal
@import ./display_fields @import ./display_fields
@import ./qproduct_orders @import ./qproduct_orders
@import ./qproduct_categories
@import ./form_additions @import ./form_additions
@import ./qindex @import ./qindex
@import ./qlists @import ./qlists
@@ -1,7 +1,10 @@
ul.product_category-products .product-category-container
list-style: none border-top: 1px solid #ddd
.product_category-title border-bottom: 1px solid #ddd
margin-bottom: 5px
h4.product_category-title
cursor: pointer cursor: pointer
margin-bottom: 5px
.icon .icon
@extend .fa @extend .fa
@extend .fa-arrow-down @extend .fa-arrow-down
@@ -9,6 +12,9 @@ ul.product_category-products
padding-right: 10px padding-right: 10px
&.collapsed &.collapsed
@extend .fa-arrow-right @extend .fa-arrow-right
ul.product_category-products
list-style: none
margin: 0 0 5px rem-calc(1.0)
.product_category-products .product_category-products
.product-price .product-price
float: right float: right