Multi theme support and supplier order facebook info option

This commit is contained in:
2014-03-17 11:31:02 +01:00
parent c4e002104c
commit 90316d5b25
25 changed files with 316 additions and 13 deletions
@@ -31,3 +31,5 @@ Qsupplier.App.IndexController = Ember.ObjectController.extend
$.post('/supplier/mark_order_in_process', order_id: id)
if order = Qsupplier.App.Order.findCached(id)
order.set('state', 'active')
showListInfo: (view, link)->
debugger
@@ -1,5 +1,6 @@
td {{view.content.display}}
td.numeric.table_number {{view.content.list.table.number}}
td.numeric.table_number
view Qsupplier.App.ActiveOrderTableNumberView contextBinding=view.content
td.section_title {{view.content.section.title}}
td.currency {{currency view.content.price }}
td.actions
@@ -0,0 +1,3 @@
.number= list.table_number
.extra-list-info
img.spinner src="/assets/spinner.gif" alt=""
@@ -13,3 +13,8 @@ div class="table-actions table-actions-#{unbound table.id}"
button{ action closeList table.active_list } class="btn btn-warning btn-small close-list" {{t 'list.close_list'}}
/.table-action-row
a href="suppliers_table_path(@table)" {{t 'section.tables_view.table_actions.got_to_table'}}
if editmode
.table-settings
select
option Round
option rectangular
@@ -0,0 +1,10 @@
Qsupplier.App.ActiveOrderTableNumberView = Ember.View.extend
tagName: 'span'
templateName: 'active_order_table_number'
classNames: 'active_order_table_number'
click: ->
$el = $(@get('element')).find('.extra-list-info')
return $el.hide() if $el.is(':visible')
$el.show()
$.get Routes.extra_info_suppliers_list_path(@get('context.list.id')), (res)->
$el.html(res)