Permalink
Browse files

remove unused helper. fix quick_order_form. update references in view

  • Loading branch information...
1 parent 020a1b6 commit 5881e38aa19b3c062c4dd3e1cbfa8b72b8066e82 @gfmurphy committed Feb 17, 2012
@@ -1,2 +0,0 @@
-module QuickOrderHelper
-end
@@ -1,13 +1,11 @@
Spree::BaseHelper.module_eval do
-
def quick_order_form(rows = 3, *args, &b)
-
opt = args.extract_options!
fid = opt.fetch(:id) { '' }
fclass = opt.fetch(:class) { 'spree_quick_order_form' }
- render :partial => 'quick_order/form', :locals => { :rows => rows, :fid => fid, :fclass => fclass }
-
+ render :partial => 'spree/quick_order/form', :locals => { :rows => rows, :fid => fid, :fclass => fclass }
+
end
end
@@ -1,6 +1,6 @@
<% content_for :sidebar do %>
<div data-hook="homepage_sidebar_navigation">
- <%= render 'shared/taxonomies' %>
+ <%= render 'spree/shared/taxonomies' %>
</div>
<% end %>
@@ -10,8 +10,8 @@
<%= form_tag( sku_populate_cart_path, :method=>'post') do |f| %>
<fieldset>
<span class="spree_quick_order_sku">SKU</span><span class="spree_quick_order_qty">Qty</span>
-
- <% @bulk_order.rows.each_with_index do |r, i| %>
+
+ <% @bulk_order.rows.each_with_index do |r, i| %>
<p class="<%= r.last["error"] ? 'bulk_error_row' : '' %>" ><%= text_field_tag ("quickcartrows[#{i}][sku]"), "#{r.last["sku"]}", :class => 'title', :size => 15 %>
<%= number_field_tag ("quickcartrows[#{i}][quantity]"), "#{r.last["quantity"]}", :class => 'title', :size => 3, :min => 1 %></p>
<% end if @bulk_order.has_rows? %>
@@ -25,4 +25,4 @@
<%= image_tag('icons/add-to-cart.png') + t(:add_to_cart) %>
<% end %>
</fieldset>
-<% end %>
+<% end %>

0 comments on commit 5881e38

Please sign in to comment.