Add hidden supplier orders display route

This commit is contained in:
2014-09-20 19:57:54 +02:00
parent b2d973c542
commit 42bd03339a
6 changed files with 54 additions and 2 deletions
@@ -2,7 +2,8 @@ td.user-info.show-for-large-up
each user in view.content.list.users
= user.facebook_image_tag
td.status-icons
span.active-order.fa.fa-check.fa-lg
if view.content.active
span.active-order.fa.fa-check.fa-lg
td= view.content.display
td.numeric.table_number: App.TableNumberWithInfoView contextBinding="view.content.list"
td.section_title: link-to 'section' view.content.list.table.section.id: span=view.content.list.table.section.title
@@ -0,0 +1,28 @@
dl.orders-display-nav.sub-nav
dd.active data-section="all": a.active{action "clearActiveSection"} href="" All
each section in sections
dd data-section=section.id: a{action "setActiveSection" section} href="#" = section.title
table.table
thead
tr
th.user-info
th.status-icons
th=t 'models.order'
th.numeric=t 'table_number'
th=t 'models.section'
th.currency=t 'active_orders.price'
th.time
tbody
each order in orders
tr
td
each user in order.list.users
= user.facebook_image_tag
td.status-icons
if order.active
span.active-order.fa.fa-check.fa-lg
td= order.display
td.numeric.table_number: App.TableNumberWithInfoView contextBinding="order.list"
td.section_title: link-to 'section' order.list.table.section.id: span=order.list.table.section.title
td.currency=currency order.total
td.time= time order.created_at format="HH:mm"