Style upgrades and emberified supplier lists
This commit is contained in:
@@ -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)->
|
||||
|
||||
+2
-2
@@ -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')
|
||||
Reference in New Issue
Block a user