diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-27 20:13:56 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-27 20:13:56 +0000 |
commit | ce6cf66f6c3af26383cd25ed012d908be4b40bae (patch) | |
tree | dfecb66fd8cca4de280494515e0ad21ec6f32dfd /app/views/users | |
parent | a4a8b6381e4a162da85319e216a770ee7bd82202 (diff) | |
download | redmine-ce6cf66f6c3af26383cd25ed012d908be4b40bae.tar.gz redmine-ce6cf66f6c3af26383cd25ed012d908be4b40bae.zip |
Custom fields refactoring: most of code moved from controllers to models (using new module ActsAsCustomizable).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1592 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/users')
-rw-r--r-- | app/views/users/_form.rhtml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/users/_form.rhtml b/app/views/users/_form.rhtml index 09a798468..799ebde47 100644 --- a/app/views/users/_form.rhtml +++ b/app/views/users/_form.rhtml @@ -8,9 +8,9 @@ <p><%= f.text_field :mail, :required => true %></p> <p><%= f.select :language, lang_options_for_select %></p> -<% for @custom_value in @custom_values %> - <p><%= custom_field_tag_with_label @custom_value %></p> -<% end if @custom_values%> +<% @user.custom_field_values.each do |value| %> + <p><%= custom_field_tag_with_label :user, value %></p> +<% end %> <p><%= f.check_box :admin, :disabled => (@user == User.current) %></p> </div> |