Current state with 6 failures is considered to be better than the previous one
This commit is contained in:
@@ -18,6 +18,13 @@ Qsupplier.App.SectionController = Ember.ObjectController.extend
|
||||
@send 'openModal', 'modal_section_add_tables', @get('model')
|
||||
arrangeTables: ->
|
||||
@send 'openModal', 'modal_section_arrange_tables', @get('model')
|
||||
editTable: (table)->
|
||||
@modal 'edit_table',
|
||||
model: table
|
||||
ok: ->
|
||||
table.save()
|
||||
close: ->
|
||||
table.rollback()
|
||||
destroySection: ->
|
||||
@send 'openModal', 'modal_confirm',
|
||||
title: t('helpers.links.are_you_sure')
|
||||
|
||||
@@ -8,7 +8,7 @@ Qsupplier.App.Table = DS.Model.extend
|
||||
# occupied: attr 'boolean'
|
||||
section: DS.belongsTo('section')
|
||||
#active_list: DS.belongsTo('list', key: 'active_list')
|
||||
active_list: DS.belongsTo('list')
|
||||
active_list: DS.belongsTo('list', async: true)
|
||||
#list: DS.belongsTo('list')
|
||||
#active_list: (->
|
||||
#@get('list')
|
||||
|
||||
@@ -4,12 +4,14 @@
|
||||
span.needs_help
|
||||
span.active_order
|
||||
if table.active_list
|
||||
div class="table-actions table-actions-#{unbound table.id}"
|
||||
div.table-actions
|
||||
.title= table.number
|
||||
.table-action-row
|
||||
Qsupplier.App.MarkListHelpedButtonView content=table.active_list
|
||||
Qsupplier.App.CloseListButtonView content=table.active_list
|
||||
.table-action-row=currency table.active_list.total
|
||||
/.table-action-row
|
||||
a{action "editTable" table}: span.fa.fa-lg.fa-wrench
|
||||
each user in table.active_list.users
|
||||
img src=user.facebook_image
|
||||
if editmodedisabled
|
||||
|
||||
Reference in New Issue
Block a user