60 lines
1.8 KiB
Plaintext
60 lines
1.8 KiB
Plaintext
.row: .small-12.columns
|
|
= sections-header active_section=globals.active_section
|
|
if (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
|
|
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|
|
|
tr
|
|
td= list.users.length
|
|
= dashboard-active-list list=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|
|
|
= dashboard-active-order order=order
|