diff options
author | Etienne Massip <etienne.massip@gmail.com> | 2012-06-01 13:38:03 +0000 |
---|---|---|
committer | Etienne Massip <etienne.massip@gmail.com> | 2012-06-01 13:38:03 +0000 |
commit | 121ce2a3900cd9fcb67df7fbcb7bd660d3251f79 (patch) | |
tree | f91514ad3482cb9b01ee89797512d5c86ba10397 /lib/redmine/views/labelled_form_builder.rb | |
parent | fc7b790081af8118ae7f82c3a5e775e8d85e67ec (diff) | |
download | redmine-121ce2a3900cd9fcb67df7fbcb7bd660d3251f79.tar.gz redmine-121ce2a3900cd9fcb67df7fbcb7bd660d3251f79.zip |
Use time_zone_select specific helper.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9744 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/views/labelled_form_builder.rb')
-rw-r--r-- | lib/redmine/views/labelled_form_builder.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/redmine/views/labelled_form_builder.rb b/lib/redmine/views/labelled_form_builder.rb index 9b88632b6..f6ba0bfcb 100644 --- a/lib/redmine/views/labelled_form_builder.rb +++ b/lib/redmine/views/labelled_form_builder.rb @@ -34,6 +34,10 @@ class Redmine::Views::LabelledFormBuilder < ActionView::Helpers::FormBuilder label_for_field(field, options) + super(field, choices, options, html_options.except(:label)).html_safe end + def time_zone_select(field, priority_zones = nil, options = {}, html_options = {}) + label_for_field(field, options) + super(field, priority_zones, options, html_options.except(:label)).html_safe + end + # Returns a label tag for the given field def label_for_field(field, options = {}) return ''.html_safe if options.delete(:no_label) |