Add product orders menu item
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
App.ApplicationController = Ember.Controller.extend
|
||||
needs: ['product_orders']
|
||||
join_request_sent: false
|
||||
notice: ''
|
||||
actions:
|
||||
|
||||
@@ -13,4 +13,5 @@ App.Router.map ->
|
||||
@resource 'lists', ->
|
||||
@resource 'list', path: ':list_id'
|
||||
@route 'settings'
|
||||
@route 'product_orders'
|
||||
@route 'error'
|
||||
|
||||
@@ -10,6 +10,7 @@ header.top-menu
|
||||
App.MenuItemView route='table' route_param=list.table.id
|
||||
App.MenuItemListNeedsHelpView
|
||||
App.MenuItemListNeedsPaymentView
|
||||
App.MenuItemProductOrdersView
|
||||
section.extra-info
|
||||
if list
|
||||
.supplier-info-row
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
span=currency controller.controllers.product_orders.orderTotal
|
||||
@@ -1,6 +1,6 @@
|
||||
App.MenuItemListNeedsPaymentView = Ember.View.extend Ember.ViewTargetActionSupport,
|
||||
action: 'listNeedsPayment'
|
||||
templateName: "menu_item_list_needs_payment"
|
||||
templateName: "menu/list_needs_payment"
|
||||
classNames: 'menu-list-item callout'
|
||||
classNameBindings: ['controller.list.needs_payment:active']
|
||||
click: ->
|
||||
@@ -8,4 +8,3 @@ App.MenuItemListNeedsPaymentView = Ember.View.extend Ember.ViewTargetActionSuppo
|
||||
@set 'controller.notice', t('list_needs_payment.payment_already_requested')
|
||||
else
|
||||
@triggerAction() #action: 'listNeedsPayment'
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
App.MenuItemProductOrdersView = Ember.View.extend
|
||||
templateName: 'menu/product_orders'
|
||||
classNames: ['menu-list-item', 'menu-list-item-product-orders']
|
||||
classNameBindings: ['controller.controllers.product_orders.product_orders.length:show:hide', 'currentRoute:active']
|
||||
currentRoute: (-> @get('controller.currentRouteName') is 'product_orders' ).property('controller.currentRouteName')
|
||||
click: ->
|
||||
@get('controller').transitionToRoute 'product_orders'
|
||||
Reference in New Issue
Block a user