@@ -1006,11 +1006,6 module ApplicationHelper | |||
|
1006 | 1006 | (blank ? [["(auto)", ""]] : []) + languages_options |
|
1007 | 1007 | end |
|
1008 | 1008 | |
|
1009 | def label_tag_for(name, option_tags = nil, options = {}) | |
|
1010 | label_text = l(("field_"+field.to_s.gsub(/\_id$/, "")).to_sym) + (options.delete(:required) ? @template.content_tag("span", " *", :class => "required"): "") | |
|
1011 | content_tag("label", label_text) | |
|
1012 | end | |
|
1013 | ||
|
1014 | 1009 | def labelled_form_for(*args, &proc) |
|
1015 | 1010 | args << {} unless args.last.is_a?(Hash) |
|
1016 | 1011 | options = args.last |
General Comments 0
You need to be logged in to leave comments.
Login now