From 437690119b0b1bd462d45f2367c1fe805e529972 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Tue, 28 Sep 2010 22:13:06 +0000 Subject: Allow admins to edit user's email notifications and preferences. #3503 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4223 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/users/_mail_notifications.html.erb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 app/views/users/_mail_notifications.html.erb (limited to 'app/views/users/_mail_notifications.html.erb') diff --git a/app/views/users/_mail_notifications.html.erb b/app/views/users/_mail_notifications.html.erb new file mode 100644 index 000000000..d29250893 --- /dev/null +++ b/app/views/users/_mail_notifications.html.erb @@ -0,0 +1,12 @@ +

+<%= 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")}' %> +

+<% content_tag 'div', :id => 'notified-projects', :style => (@notification_option == 'selected' ? '' : 'display:none;') do %> +

<% @user.projects.each do |project| %> +
+<% end %>

+

<%= l(:text_user_mail_option) %>

+<% end %> +

<%= check_box_tag 'no_self_notified', 1, @user.pref[:no_self_notified] %>

+ -- cgit v1.2.3