End of day commit

This commit is contained in:
2014-07-29 22:01:46 +02:00
parent f780dfc529
commit 640dbc37b8
9 changed files with 70 additions and 40 deletions
@@ -0,0 +1,2 @@
Qsupplier.App.TablesIndexController = Ember.ArrayController.extend
tables: (-> @get('model')).property('model')
@@ -8,6 +8,8 @@ Qsupplier.App.Router.map ->
@route '/', queryParams: ['section_id']
@resource 'sections', ->
@resource 'section', path: ':section_id'
@resource 'tables', ->
@resource 'table', path: ':table_id'
@resource 'lists', ->
@resource 'list', path: ':list_id'
@route 'settings'
@@ -0,0 +1,2 @@
Qsupplier.App.TablesIndexRoute = Ember.Route.extend
model: -> @store.all('table')
@@ -0,0 +1 @@
= outlet
@@ -0,0 +1,18 @@
h1=t 'models.plural.table'
if tables
table.table
thead
tr
th=t 'attributes.table.number'
th.link=t 'models.section'
th.timestamp= t 'attributes.table.created_at'
th.actions=t 'helpers.actions.title'
tbody
each table in tables
tr
td: a= table.number
td.link
if table.section
= link-to 'sections:section' table.section
td.numeric=time table.created_at
td.actions
@@ -5,6 +5,7 @@ Qsupplier.App.ApplicationView = Ember.View.extend
'.top-menu-root': '/'
'.top-menu-lists': 'lists'
'.top-menu-sections': 'sections'
'.top-menu-tables': 'tables'
'.top-menu-lists': 'lists'
'.supplier-settings-link': 'settings'