fix distributed spelling problem

This commit is contained in:
2012-11-20 20:44:26 +01:00
parent d177a450fa
commit c74b9ae04b
3 changed files with 4 additions and 2 deletions
@@ -61,3 +61,5 @@ table
.table-count .table-count
&:after &:after
content: " - " content: " - "
.go-to-tables-view.hide
display: inline-block
@@ -132,7 +132,7 @@ module Suppliers
def arrange_tables def arrange_tables
@section = Section.find_by_supplier_and_id(current_supplier, params[:id]) @section = Section.find_by_supplier_and_id(current_supplier, params[:id])
case params[:option] case params[:option]
when 'distribute' then @section.arrange_tables_in_grid when 'distributed' then @section.arrange_tables_in_grid
when 'by_row' then @section.arrange_tables_in_rows_of(params[:row_count].to_i) when 'by_row' then @section.arrange_tables_in_rows_of(params[:row_count].to_i)
when 'by_column' then @section.arrange_tables_in_columns_of(params[:column_count].to_i) when 'by_column' then @section.arrange_tables_in_columns_of(params[:column_count].to_i)
end end
+1 -1
View File
@@ -1,6 +1,6 @@
.pull-right .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]), id: :section_selector) = select_tag('current_section_selector', options_for_select([[current_supplier.name, '']] + current_supplier.sections.map{|s| ["- #{s.title}", s.id]}, params[:section_id]), id: :section_selector)
a.icon-arrow-right.hide href=tables_view_suppliers_section_path('0000') a.icon-arrow-right.go-to-tables-view.hide href=tables_view_suppliers_section_path('0000')
= render template: 'supplier/active_lists' = render template: 'supplier/active_lists'
= render template: 'supplier/active_orders' = render template: 'supplier/active_orders'
- content_for :footer do - content_for :footer do