Save progress

This commit is contained in:
2014-03-30 15:55:22 +02:00
parent e179f6e582
commit 013a41b9f6
71 changed files with 1699 additions and 107 deletions
@@ -2,7 +2,7 @@
h2=t 'models.list'
p Hoi
= controller
if model.extended_version
if model.is_extended_version
h3 Extended
else
h3 Not extended
@@ -1,4 +1,5 @@
.row
h2= List products for table
/.row
.large-6.columns
each product_category in controller
hr
@@ -0,0 +1,37 @@
.row
h2
=t 'models.table'
|
= number
if showJoinButton
if join_request_sent
button.disabled
span.fa.fa-spinner.fa-spin.fa-lg
span Waiting for approval
else
button{action joinOccupiedTable} Join occupied table
if tableCanTakeOrders
.large-6.columns
each product_category in supplier.product_categories
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'
else
.large12
each product_category in supplier.product_categories
if product_category.products
hr
h4= product_category.name
hr
ul.product_category-products
each product in product_category.products
li
span= product.name
span.right.currency=currency product.price