Upgrade emblem template
This commit is contained in:
@@ -29,6 +29,10 @@ Ember.Application.initializer
|
||||
application.inject('component', 'globals', 'global:variables')
|
||||
application.inject('route', 'globals', 'global:variables')
|
||||
|
||||
#Ember.Application.initializer
|
||||
# name: 'storeInComponents'
|
||||
# initialize: (container, application)->
|
||||
# container.typeInjection('component', 'store', 'store:main')
|
||||
@App = Ember.Application.create
|
||||
LOG_TRANSITIONS: true
|
||||
rootElement: '#ember-app-container'
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
App.MenuItemProductOrdersComponent = Ember.Component.extend
|
||||
templateName: 'components/menu/product_orders'
|
||||
product_orders: (->
|
||||
debugger
|
||||
).property()
|
||||
layoutName: 'components/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')
|
||||
classNameBindings: ['product_orders.length:show:hide', 'currentRoute:active']
|
||||
currentRoute: (-> @get('targetObject.currentRouteName') is 'product_orders' ).property('targetObject.currentRouteName')
|
||||
orderTotal: Ember.computed 'product_orders.@each.total', ->
|
||||
3
|
||||
click: ->
|
||||
@get('controller').transitionToRoute 'product_orders'
|
||||
|
||||
@@ -1 +1 @@
|
||||
span=currency controller.controllers.product_orders.orderTotal
|
||||
span=currency orderTotal
|
||||
|
||||
@@ -5,15 +5,15 @@
|
||||
if globals.list.id
|
||||
link-to 'index' class="top-menu-logo with-list"
|
||||
= image-tag 'user/logo-small.png'
|
||||
= menu-item route="active_list" reference_controller=controller
|
||||
= menu-item route="table" route_param=globals.list.table.id reference_controller=controller
|
||||
= menu-item-list-needs-help reference_controller=controller
|
||||
= menu-item-list-needs-payment reference_controller=controller
|
||||
= menu-item route="active_list"
|
||||
= menu-item route="table" route_param=globals.list.table.id
|
||||
= menu-item-list-needs-help
|
||||
= menu-item-list-needs-payment
|
||||
else
|
||||
link-to 'index' class="top-menu-logo without-list"
|
||||
= image-tag 'user/logo-small.png'
|
||||
= menu-item-scan-qr reference_controller=controller
|
||||
= menu-item-product-orders reference_controller=controller
|
||||
= menu-item-scan-qr
|
||||
= menu-item-product-orders
|
||||
if globals.list
|
||||
.extra-info{action "showSupplierStatusInfo"}
|
||||
.supplier-info-row
|
||||
|
||||
Reference in New Issue
Block a user