user ember progress

This commit is contained in:
2014-03-26 17:48:54 +01:00
parent 4e75c72097
commit 6af7dc74af
19 changed files with 129 additions and 35 deletions
@@ -1 +1,19 @@
h2 Active list
.row
h2=t 'active_list.title'
if list.orders
ul.active_list-orders
each order in list.orders
li class=order.state
= order.display
span.currency= currency order.total
if displayTotal
li.total
= t 'total'
span.currency= currency list.total
else
p
span=t 'active_list.no_orders_explanation'
br
link-to 'list_products' class="button"
span=t 'list_products.title'
@@ -1,9 +1,13 @@
.row
.large-6.columns
each product_category in controller
hr
h4= product_category.name
hr
each product in product_category.products
a{action addProduct product}= product.name
if product_category.products
hr
h4= product_category.name
hr
ul.product_category-products
each product in product_category.products
li
a{action addProduct product}= product.name
span.right.currency=currency product.price
.large-6.columns= render 'product_orders'
@@ -1,6 +1,6 @@
hr.hide-for-medium-up
if model
a.tiny.button.right{action clearProductOrders} href="#" x
a.tiny.button.right{action clearProductOrders} href="#" ×
.clearfix
.panel
ul.product-orders
@@ -9,11 +9,13 @@ if model
= product_order.quantity
| x
= product_order.product.name
a.product_order-remove.right{action removeProductOrder product_order}
span.fa.fa-close.fa-lg x
span.currency=currency product_order.total
else
li= t 'product_orders.no_orders'
li.total
= t 'product_orders.total'
span.currency=currency orderTotal
span.right.currency=currency orderTotal
if model
a.tiny.button.right{action orderProducts} href="#"= t 'product_orders.order_button'