Refactored pdf generation with newest prawn.
This commit is contained in:
parent
78cc423a46
commit
eb532babd6
31 changed files with 311 additions and 2118 deletions
|
|
@ -5,9 +5,9 @@ module OrdersHelper
|
|||
link_to text, order_path(order, :view => view), :remote => true
|
||||
end
|
||||
|
||||
def link_to_pdf(order, action)
|
||||
def order_pdf(order, document)
|
||||
link_to image_tag("save_pdf.png", :size => "16x16", :border => "0", :alt => "PDF erstellen"),
|
||||
{ :action => action, :id => order, :format => :pdf }, { :title => "PDF erstellen" }
|
||||
order_path(order, :document => document, :format => :pdf), { :title => "PDF erstellen" }
|
||||
end
|
||||
|
||||
def options_for_suppliers_to_select
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue