Upgrade emblem template
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
LOG_TRANSITIONS: true
|
||||
LOG_VIEW_LOOKUPS: true
|
||||
rootElement: '#ember-app-container'
|
||||
store: -> @__container__.lookup('controller:application').store
|
||||
store: -> @__container__.lookup('service:store')
|
||||
@App.modals = Ember.Namespace.create()
|
||||
@Modals = @App.modals
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
App.MySelectComponent = Ember.Component.extend
|
||||
# possible passed-in values with their defaults:
|
||||
layoutName: 'supplier/app/form/my-select'
|
||||
layoutName: 'form/my-select'
|
||||
content: null
|
||||
prompt: null
|
||||
optionValuePath: 'id'
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
App.ListOrderComponent = Ember.Component.extend
|
||||
layoutName: 'lists/list-order'
|
||||
layoutName: 'list/order'
|
||||
classNames: ['list-order-container']
|
||||
classNameBindings: ['order.state']
|
||||
@@ -1,5 +1,5 @@
|
||||
.row: .small-12.columns
|
||||
h2.main-section-header=t 'models.list'
|
||||
partial "list_content"
|
||||
partial "list/content"
|
||||
link-to 'lists' class="button"
|
||||
span=t 'list.go_to_lists'
|
||||
|
||||
@@ -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