##// END OF EJS Templates
Do not add invalid label attribute to input tags....
Jean-Philippe Lang -
r8444:f56949af8b2a
parent child
Show More
@@ -24,14 +24,14 class Redmine::Views::LabelledFormBuilder < ActionView::Helpers::FormBuilder
24 %w(date_select)).each do |selector|
24 %w(date_select)).each do |selector|
25 src = <<-END_SRC
25 src = <<-END_SRC
26 def #{selector}(field, options = {})
26 def #{selector}(field, options = {})
27 label_for_field(field, options) + super
27 label_for_field(field, options) + super(field, options.except(:label))
28 end
28 end
29 END_SRC
29 END_SRC
30 class_eval src, __FILE__, __LINE__
30 class_eval src, __FILE__, __LINE__
31 end
31 end
32
32
33 def select(field, choices, options = {}, html_options = {})
33 def select(field, choices, options = {}, html_options = {})
34 label_for_field(field, options) + super
34 label_for_field(field, options) + super(field, choices, options, html_options.except(:label))
35 end
35 end
36
36
37 # Returns a label tag for the given field
37 # Returns a label tag for the given field
General Comments 0
You need to be logged in to leave comments. Login now