add testing device images and a lot more, before bootstrap:themed
This commit is contained in:
@@ -59,8 +59,8 @@ root.Qrammer =
|
||||
return
|
||||
window.location = '/' if res['message'] && !res['ok']
|
||||
window.location = '/view_active_list' if res['ok']
|
||||
load_active_order_list: (supplier_id) ->
|
||||
$.get('/suppliers/'+supplier_id+'/active_order_list.json', (res) ->
|
||||
load_active_orders: (supplier_id) ->
|
||||
$.get('/suppliers/'+supplier_id+'/active_orders.json', (res) ->
|
||||
body = $('#active-orders-table tbody')
|
||||
body.find('tr').remove()
|
||||
foot = $('#active-orders-table tfoot')
|
||||
@@ -112,7 +112,11 @@ root.Qrammer =
|
||||
)(list, row)
|
||||
close_btn.click(close_callback)
|
||||
|
||||
row.append($('<td></td>').text(list._id))
|
||||
icons_td = $('<td class="status-icons"></td>').appendTo(row)
|
||||
icons_td.append('<li class="icon-hand-up"></li>') if list.need_help # or icon-bell
|
||||
icons_td.append('<li class="icon-check"></li>') if list.needs_payment
|
||||
|
||||
row.append($('<td></td>').text(list.table_number))
|
||||
row.append($('<td class="currency"></td>').html(Qrammer.currency(list.total_amount)))
|
||||
td_buttons = $('<td class="actions"></td>')
|
||||
td_buttons.append(close_btn)
|
||||
|
||||
Reference in New Issue
Block a user