2009-01-06 11:49:19 +01:00
|
|
|
module OrdersHelper
|
|
|
|
|
2009-01-29 01:57:51 +01:00
|
|
|
def update_articles_link(order, text, view)
|
|
|
|
link_to_remote text, :url => order_path(order, :view => view),
|
|
|
|
:update => 'articles', :before => "Element.show('loader')", :success => "Element.hide('loader')",
|
|
|
|
:method => :get
|
|
|
|
end
|
|
|
|
|
|
|
|
def link_to_pdf(order, action)
|
|
|
|
link_to image_tag("save_pdf.png", :size => "16x16", :border => "0", :alt => "PDF erstellen"),
|
|
|
|
{ :action => action, :id => order, :format => :pdf }, { :title => "PDF erstellen" }
|
2009-01-06 11:49:19 +01:00
|
|
|
end
|
|
|
|
end
|