Sha256: c3cba017457f5917cde44051ad8701f9a73749b741fb37738ca398b84c981b19

Contents?: true

Size: 512 Bytes

Versions: 2

Compression:

Stored size: 512 Bytes

Contents

module Admin::ActivitiesWithPricesHelper

  def render_action_link(link, url_options, record)
    return super(link, url_options, record) unless link.action == 'move_to_invoice'

    url_for_dialog = url_for( 
      :controller => url_options[:controller],
      :action => link.action, 
      :eid => url_options[:eid],
      :id => url_options[:id]
    )

    link_to_function link.label, "Modalbox.show('#{url_for_dialog}', {title: 'Move Activity to Invoice ...', width: 700}); return false;"
  end
  
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
brisk-bills-0.8.2 app/helpers/admin/activities_with_prices_helper.rb
brisk-bills-0.8.1 app/helpers/admin/activities_with_prices_helper.rb