Permalink
Browse files

print_buttons option was removed in pull request #3, now restored

  • Loading branch information...
1 parent a16cbbe commit aca3bba7c09388698fd1eb81d3c8ff483ad8dc89 @bfolkens committed Apr 4, 2012
@@ -1,5 +1,6 @@
module Spree
class PrintInvoiceConfiguration < Preferences::Configuration
+ preference :print_buttons, :string, :default => 'invoice'
preference :print_invoice_logo_path, :string, :default => Spree::Config[:admin_interface_logo]
end
end
@@ -1,5 +1,5 @@
<% if @order.completed_at? %>
- <% buttons = "invoice"
+ <% buttons = Spree::PrintInvoice::Config[:print_buttons]
buttons = buttons.split(",").collect{|b| b.strip } %>
<% buttons.each do |button| %>
<%= button_link_to('Invoice', spree.admin_order_path(@order, :pdf , :template => button)) %>

0 comments on commit aca3bba

Please sign in to comment.