end of day commit
This commit is contained in:
@@ -1,6 +1,24 @@
|
||||
button onClick='Qrammer.build_product_list()' class='btn btn-inverse'Lijst
|
||||
table#products-table.table.table-striped.table-hover
|
||||
tbody
|
||||
- content_for :sidebar do
|
||||
table#active-order-table.table.hide
|
||||
thead
|
||||
tr
|
||||
th Product
|
||||
th #
|
||||
th.currency Total
|
||||
th
|
||||
tbody
|
||||
tfoot
|
||||
tr
|
||||
td colspan=2
|
||||
button class="btn btn-primary" onClick="Qrammer.order_active_list('/order_active_list')" Bestellen
|
||||
|
|
||||
button class="btn btn btn-warning" onClick="Qrammer.clear_active_list()" Clear
|
||||
td.currency
|
||||
strong#active-order-total
|
||||
td
|
||||
- content_for :footer do
|
||||
javascript:
|
||||
jQuery(function(){
|
||||
@@ -8,12 +26,12 @@ table#products-table.table.table-striped.table-hover
|
||||
window.products = res
|
||||
body = $('#products-table tbody')
|
||||
for(var category in window.products){
|
||||
body.append('<tr><td colspan="3"><h3>'+category+'<h3></td></tr>');
|
||||
body.append('<tr><td colspan="3"><h4>'+category+'<h4></td></tr>');
|
||||
var category_ref = window.products[category];
|
||||
for(var iproduct = 0; iproduct < window.products[category].length; iproduct++){
|
||||
var product_index = iproduct;
|
||||
row = $('<tr></tr>');
|
||||
button = $('<button class="btn btn-primary">Add</button>');
|
||||
button = $('<button class="btn btn-mini btn-primary">Add</button>');
|
||||
var callback = (function(ref){
|
||||
return function(){ Qrammer.add_product(ref[product_index]) }
|
||||
})(category_ref)
|
||||
|
||||
Reference in New Issue
Block a user