initial commit

This commit is contained in:
2012-08-22 18:15:37 +02:00
commit 0856528f5e
120 changed files with 3048 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
.page-header= title 'Home'
ul.nav.nav-tabs.nav-stacked
- if list_open?
li.active= link_to '€ 23,45'.html_safe, '#'
li= link_to 'Place order', '/show_products?supplier_id=' + active_list.supplier.id
li= link_to 'Active list', '#'
li= link_to 'Request bill', '#'
li= link_to 'I have a question', '#'
- else
li= link_to 'Place order', '/select_qrcode'
li= link_to 'Subscribe to list', '#'
ul.nav.nav-tabs.nav-stacked
li= link_to 'View history', '#'
@@ -0,0 +1,4 @@
.page-header= title 'Select Qr code'
ul
- for table in @tables
li= link_to image_tag(url_for(qrcode_table_path(table, format: :png))), {action: :create_list, table_id: table.id}
@@ -0,0 +1,17 @@
table#products-table.table.table-striped.table-hover
tbody
- content_for :footer do
javascript:
jQuery(function(){
$.get('#{product_list_supplier_path(@supplier, format: :json).html_safe}', function(res){
window.products = res
body = $('#products-table tbody')
for(category in window.products){
body.append('<tr><td><h3>'+category+'<h3></td></tr>')
for(iproduct in window.products[category]){
body.append('<tr><td>'+window.products[category][iproduct].name+'</td></tr>')
}
}
})
})