annotate app/views/users/.svn/text-base/_mail_notifications.html.erb.svn-base @ 904:0a8317a50fa0
redmine-1.1
Close obsolete branch redmine-1.1
author |
Chris Cannam |
date |
Fri, 14 Jan 2011 12:53:21 +0000 |
parents |
af80e5618e9b |
children |
|
rev |
line source |
chris@37
|
1 <p>
|
Chris@117
|
2 <%= select_tag 'user[mail_notification]', options_for_select(user_mail_notification_options(@user), @user.mail_notification),
|
Chris@117
|
3 :onchange => 'if (this.value == "selected") {Element.show("notified-projects")} else {Element.hide("notified-projects")}' %>
|
chris@37
|
4 </p>
|
Chris@117
|
5 <% content_tag 'div', :id => 'notified-projects', :style => (@user.mail_notification == 'selected' ? '' : 'display:none;') do %>
|
chris@37
|
6 <p><% @user.projects.each do |project| %>
|
chris@37
|
7 <label><%= check_box_tag 'notified_project_ids[]', project.id, @user.notified_projects_ids.include?(project.id) %> <%=h project.name %></label><br />
|
chris@37
|
8 <% end %></p>
|
chris@37
|
9 <p><em><%= l(:text_user_mail_option) %></em></p>
|
chris@37
|
10 <% end %>
|
chris@37
|
11 <p><label><%= l(:label_user_mail_no_self_notified) %></label><%= check_box_tag 'no_self_notified', 1, @user.pref[:no_self_notified] %></p>
|
chris@37
|
12
|