Files
mozo-backend/app/assets/javascripts/supplier/app/templates/index.emblem
T
2015-08-17 15:13:31 +02:00

62 lines
2.0 KiB
Plaintext

.row: .small-12.columns
= sections-header section=globals.active_section
can "manage" globals.current_supplier
unless globals.current_supplier.open
.alert-box.alert.radius data-alert=true
= t 'supplier.you_are_currently_closed_alert'
a{ action "markSupplierOpen" }= t 'supplier.open_for_orders'
.page-header
div.dashboard-section-selection
/App.HomeSectionSelectorView selectionBinding="globals.active_section" content=controller.sections prompt=globals.current_supplier.name
/= home-section-selector sectionBinding="globals.active_section"
/= view "home-section-jumper"
if active_lists.length
h3.dashboard-lists-header{action "toggleDashboardLists"}
if show_lists
span.icon
else
span.icon.collapsed
=t 'active_lists.title'
span= list_number_info
else
h3=t 'dashboard.active_lists.no_lists'
if show_lists_table
table.active-lists-table.table
thead
tr
th.user-info.show-for-large-up
th.status-icons
th.numeric=t 'table_number'
th=t 'models.section'
th.currency=t 'active_lists.price'
th.actions
tbody
each active_lists as |list|
= view "active-list" content=list
.page-header
if active_orders.length
h3.dashboard-orders-header{action "toggleDashboardOrders"}
if show_orders
span.icon
else
span.icon.collapsed
=t 'active_orders.title'
span= order_number_info
else
h3= t 'dashboard.active_orders.no_orders'
if show_orders_table
table.active-orders-table.table
thead
tr
th.user-info.show-for-large-up
th.status-icons
th=t 'models.order'
th.numeric=t 'table_number'
th=t 'models.section'
th.currency=t 'active_orders.price'
th.time
th.actions
tbody
each active_orders as |order|
= view "active-order" content=order