Permalink
Browse files

change class and text on 'order now' button

  • Loading branch information...
1 parent 5881e38 commit 9b1eece1c7b11c2656ed87c09dd03fb31ddda40b @gfmurphy gfmurphy committed Feb 17, 2012
Showing with 7 additions and 6 deletions.
  1. +5 −5 app/views/spree/quick_order/_form.html.erb
  2. +2 −1 config/locales/en.yml
View
10 app/views/spree/quick_order/_form.html.erb
@@ -2,15 +2,15 @@
<% fid = fid.nil? ? '' : fid %>
<% fclass = fclass.nil? ? 'spree_quick_order_fieldset' : fclass %>
-<%= form_tag( sku_populate_cart_path, :method=>'post', :class=>fclass, :id=>fid ) do |f| %>
+<%= form_tag(sku_populate_cart_path, :method=>'post', :class=>fclass, :id=>fid ) do |f| %>
<fieldset>
<span class="spree_quick_order_sku">SKU</span><span class="spree_quick_order_qty">Qty</span>
<% rows.times do |i| %>
- <p><%= text_field_tag ("quickcartrows[#{i}][sku]"), "", :class => 'spos_sku', :size => 15, :min => 1 %>
- <%= number_field_tag ("quickcartrows[#{i}][quantity]"), 1, :class => 'spos_qty', :size => 3, :min => 1 %></p>
+ <p><%= text_field_tag ("quickcartrows[#{i}][sku]"), "", :class => 'spos_sku', :size => 15, :min => 1 %>
+ <%= number_field_tag ("quickcartrows[#{i}][quantity]"), 1, :class => 'spos_qty', :size => 3, :min => 1 %></p>
<% end %>
- <%= button_tag :class => 'small primary', :id => 'add-to-cart-button' do %>
- <%= image_tag('icons/add-to-cart.png') + t(:add_to_cart) %>
+ <%= button_tag :class => 'large primary', :id => 'add-to-cart-button' do %>
+ <%= image_tag('icons/add-to-cart.png') + t(:order_now) %>
<% end %>
</fieldset>
<% end %>
View
3 config/locales/en.yml
@@ -1,2 +1,3 @@
en:
- quick_order_form: "Quick Order Form"
+ quick_order_form: "Quick Order Form"
+ order_now: "Order Now"

0 comments on commit 9b1eece

Please sign in to comment.