improvements

This commit is contained in:
2012-09-06 14:49:22 +02:00
parent 27d7fd304e
commit 161da7a82d
18 changed files with 209 additions and 81 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
.page-header= title t('supplier.active_lists.title', lists: List.model_name.human_plural)
.page-header
h3 = t('supplier.active_lists.title', lists: List.model_name.human_plural)
.well
table#active-lists-table.table
thead
+2 -1
View File
@@ -1,4 +1,5 @@
.page-header= title 'Active orders'
.page-header
h3 = t('supplier.active_orders.title', orders: Order.model_name.human_plural)
.well
table#active-orders-table.table
thead
+2
View File
@@ -1,2 +1,4 @@
.pull-right
= select_tag('current_section_selector', options_for_select([[current_supplier.name, '']] + current_supplier.sections.map{|s| ["- #{s.title}", s.id]}, params[:section_id]))
= render template: 'supplier/active_lists'
= render template: 'supplier/active_orders'
+19
View File
@@ -0,0 +1,19 @@
.page-header= title t('supplier.lists.show.title', list: List.model_name.human)
dl.dl-horizontal
dt= List.human_attribute_name(:created_at)
dd= l @list.created_at, format: :short
.well
table#list-table.table
thead
tr
th= Order.model_name.human
th.currency= Product.human_attribute_name(:price)
tbody
tr
td colspan=2 = slider_image
tfoot
- content_for :footer do
javascript:
jQuery(function(){
Qsupplier.load_list('#{@list.id}');
})
+1
View File
@@ -1,5 +1,6 @@
.page-header
.table-number
.supplier-name
h4= t('user.active_list.title', list: List.model_name.human)
.form-actions
= link_to t('helpers.links.place_order'), user_list_products_path, class: ['btn btn-primary']
+19 -3
View File
@@ -1,3 +1,19 @@
.page-header= title 'User list history'
p Todo
= render template: 'lists/show'
.page-header= title t('user.history_list.title', list: List.model_name.human)
dl.dl-horizontal
dt= List.human_attribute_name(:created_at)
dd= l @list.created_at, format: :short
.well
table#history-list-table.table
thead
tr
th= Order.model_name.human
th.currency= Product.human_attribute_name(:price)
tbody
tr
td colspan=2 = slider_image
tfoot
- content_for :footer do
javascript:
jQuery(function(){
Quser.load_history_list('#{@list.id}');
})
+1
View File
@@ -1,5 +1,6 @@
.page-header
.table-number
.supplier-name
h4= t('user.show_products.title', products: Product.model_name.human_plural)
.form-actions
= link_to t('helpers.links.show_active_list', list: List.model_name.human), user_active_list_path, class: ['btn btn']
@@ -1,5 +1,6 @@
.page-header
.table-number= @table.number
.supplier-name= @table.supplier.name
h4= t('user.show_products.title', products: Product.model_name.human_plural)
.well
table#products-table.table.table-hover