Style upgrades and emberified supplier lists

This commit is contained in:
2014-04-24 16:41:08 +02:00
parent 546e4499ea
commit 27a1022eb4
56 changed files with 321 additions and 139 deletions
@@ -10,6 +10,7 @@ Qsupplier.App.IndexRoute = Ember.Route.extend
#lists: @store.filter 'list', (l)-> l.get('state') == 'active' # DOES NOT WORK!!!! (yet)
# use filter to create a scope on all the records
lists: @store.filter 'list', -> true
# mayby @store.all 'list' will work better!!!! (2014-04-24 a more experienced benjamin :)
orders: @store.filter 'order', -> true
sections: @store.find 'section'
setupController: (controller, model)->
@@ -1,4 +1,4 @@
Qsupplier.App.ListsRoute = Ember.Route.extend
Qsupplier.App.ListsIndexRoute = Ember.Route.extend
#model: -> @store.find 'list'
setupController: (controller, model)->
controller.set 'date', (new Date()).toISOString().substr(0,10)
controller.set 'date', (new Date()).toISOString().substr(0,10) unless controller.get('date')