2013-08-01 10:33:49 +08:00
|
|
|
<p>
|
2015-01-21 18:12:04 +08:00
|
|
|
<%= label_tag "user_mail_notification", l(:description_user_mail_notification), :class => "hidden-for-sighted_bak" , :style=> 'margin-right: 5px;'%>
|
2013-08-01 10:33:49 +08:00
|
|
|
<%= select_tag(
|
|
|
|
'user[mail_notification]',
|
|
|
|
options_for_select(
|
|
|
|
user_mail_notification_options(@user), @user.mail_notification),
|
|
|
|
:onchange => 'if (this.value == "selected") {$("#notified-projects").show();} else {$("#notified-projects").hide();}'
|
|
|
|
) %>
|
|
|
|
</p>
|
|
|
|
<%= content_tag 'div', :id => 'notified-projects', :style => (@user.mail_notification == 'selected' ? '' : 'display:none;') do %>
|
2014-11-13 09:13:44 +08:00
|
|
|
<p><em style="color: #acaeb1"><%= l(:text_user_mail_option) %></em></p>
|
|
|
|
<%= render_project_nested_lists_new(@user.projects) do |project|
|
2013-08-01 10:33:49 +08:00
|
|
|
content_tag('label',
|
|
|
|
check_box_tag(
|
|
|
|
'notified_project_ids[]',
|
|
|
|
project.id,
|
|
|
|
@user.notified_projects_ids.include?(project.id)
|
|
|
|
) + ' ' + h(project.name)
|
|
|
|
)
|
|
|
|
end %>
|
2014-11-13 09:13:44 +08:00
|
|
|
|
2013-08-01 10:33:49 +08:00
|
|
|
<% end %>
|
|
|
|
<p>
|
|
|
|
<label>
|
|
|
|
<%= l(:label_user_mail_no_self_notified) %>
|
|
|
|
<%= check_box_tag 'no_self_notified', 1, @user.pref[:no_self_notified] %>
|
|
|
|
</label>
|
|
|
|
</p>
|