Mercurial > hg > soundsoftware-site
diff app/views/users/.svn/text-base/_mail_notifications.html.erb.svn-base @ 119:8661b858af72
* Update to Redmine trunk rev 4705
author | Chris Cannam |
---|---|
date | Thu, 13 Jan 2011 14:12:06 +0000 |
parents | 94944d00e43c |
children |
line wrap: on
line diff
--- a/app/views/users/.svn/text-base/_mail_notifications.html.erb.svn-base Fri Nov 19 14:05:24 2010 +0000 +++ b/app/views/users/.svn/text-base/_mail_notifications.html.erb.svn-base Thu Jan 13 14:12:06 2011 +0000 @@ -1,8 +1,8 @@ <p> -<%= select_tag 'notification_option', options_for_select(@notification_options.collect {|o| [l(o.last), o.first]}, @notification_option.to_sym), - :onchange => 'if ($("notification_option").value == "selected") {Element.show("notified-projects")} else {Element.hide("notified-projects")}' %> +<%= select_tag 'user[mail_notification]', options_for_select(user_mail_notification_options(@user), @user.mail_notification), + :onchange => 'if (this.value == "selected") {Element.show("notified-projects")} else {Element.hide("notified-projects")}' %> </p> -<% content_tag 'div', :id => 'notified-projects', :style => (@notification_option == 'selected' ? '' : 'display:none;') do %> +<% content_tag 'div', :id => 'notified-projects', :style => (@user.mail_notification == 'selected' ? '' : 'display:none;') do %> <p><% @user.projects.each do |project| %> <label><%= check_box_tag 'notified_project_ids[]', project.id, @user.notified_projects_ids.include?(project.id) %> <%=h project.name %></label><br /> <% end %></p>