|
|
@@ -24,14 +24,14 @@ class Redmine::Views::LabelledFormBuilder < ActionView::Helpers::FormBuilder |
|
|
|
%w(date_select)).each do |selector| |
|
|
|
src = <<-END_SRC |
|
|
|
def #{selector}(field, options = {}) |
|
|
|
label_for_field(field, options) + super |
|
|
|
label_for_field(field, options) + super(field, options.except(:label)) |
|
|
|
end |
|
|
|
END_SRC |
|
|
|
class_eval src, __FILE__, __LINE__ |
|
|
|
end |
|
|
|
|
|
|
|
def select(field, choices, options = {}, html_options = {}) |
|
|
|
label_for_field(field, options) + super |
|
|
|
label_for_field(field, options) + super(field, choices, options, html_options.except(:label)) |
|
|
|
end |
|
|
|
|
|
|
|
# Returns a label tag for the given field |