moved cost_types widget into redmine_reporting plugin as its not an engine feature

pull/6827/head
Philipp Tessenow 13 years ago
parent 12a46d30b7
commit 221865942d
  1. 22
      lib/widget/cost_types.rb

@ -1,22 +0,0 @@
class Widget::CostTypes < Widget::Base
def render_with_options(options, &block)
@cost_types = options.delete(:cost_types)
@selected_type_id = options.delete(:selected_type_id)
super(options, &block)
end
def render
write contents
end
def contents
content_tag :div do
available_cost_type_tabs(@subject).map do |id, label|
type_selection = radio_button_tag("unit", id, id == @selected_type_id)
type_selection += label_tag "unit_#{id}", h(label)
type_selection
end.join("</br>")
end
end
end
Loading…
Cancel
Save