Skip to content
Browse files

Update for Spree 1.3

  • Loading branch information...
1 parent a86c832 commit b51a73818536ea3678c1c76f4862e4beb1a593dd Ted Lilley committed Jan 29, 2013
View
3 Versionfile
@@ -1,4 +1,5 @@
-"1.2.x" => { :branch => "master" }
+"1.3.x" => { :branch => "1-3-stable" }
+"1.2.x" => { :branch => "1-2-stable" }
"1.1.x" => { :branch => "1-1-stable" }
"1.0.x" => { :branch => "1-0-stable" }
"0.60.x" => { :branch => "0-60-stable" }
View
5 app/overrides/admin_order_edit_print_buttons_decorator.rb
@@ -1,5 +0,0 @@
-Deface::Override.new(:virtual_path => "spree/admin/orders/edit",
- :name => "print_buttons",
- :insert_bottom => "[data-hook='admin_order_edit_buttons'], #admin_order_edit_buttons[data-hook]",
- :partial => "spree/admin/orders/print_buttons",
- :disabled => false)
View
5 app/overrides/admin_order_show_print_buttons_decorator.rb
@@ -1,5 +0,0 @@
-Deface::Override.new(:virtual_path => "spree/admin/orders/show",
- :name => "print_buttons",
- :insert_bottom => "[data-hook='admin_order_show_buttons'], #admin_order_show_buttons[data-hook]",
- :partial => "spree/admin/orders/print_buttons",
- :disabled => false)
View
5 app/overrides/layouts_admin_print_buttons_decorator.rb
@@ -0,0 +1,5 @@
+Deface::Override.new(:virtual_path => "spree/layouts/admin",
+ :name => "print_buttons",
+ :insert_top => "[data-hook='toolbar']>ul",
+ :partial => "spree/admin/orders/print_buttons",
+ :disabled => false)
View
2 app/views/spree/admin/orders/_print_buttons.html.erb
@@ -2,6 +2,6 @@
<% buttons = Spree::PrintInvoice::Config[:print_buttons]
buttons = buttons.split(",").collect{|b| b.strip } %>
<% buttons.each do |button| %>
- <%= button_link_to(t(button.to_s + "_print"), spree.admin_order_path(@order, :pdf , :template => button)) %>
+ <li><%= button_link_to(t(button.to_s + "_print"), spree.admin_order_path(@order, :pdf , :template => button)) %></li>
<% end %>
<% end %>

0 comments on commit b51a738

Please sign in to comment.
Something went wrong with that request. Please try again.