views cleaning

git-svn-id: http://redmine.rubyforge.org/svn/trunk@22 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2006-09-03 10:25:21 +00:00
parent 552d99d664
commit 893a433165
7 changed files with 24 additions and 16 deletions

View File

@@ -115,6 +115,12 @@ module ApplicationHelper
options[:html].store :class, "tabular"
form_for(name, object, options.merge({ :builder => TabularFormBuilder, :lang => current_language}), &proc)
end
def check_all_links(form_name)
link_to_function(l(:button_check_all), "checkAll('#{form_name}', true)") +
" | " +
link_to_function(l(:button_uncheck_all), "checkAll('#{form_name}', false)")
end
end
class TabularFormBuilder < ActionView::Helpers::FormBuilder