##// END OF EJS Templates
code layout cleanup app/views/users/_mail_notifications.html.erb...
Toshi MARUYAMA -
r9552:e1268faa4ae7
parent child
Show More
@@ -1,13 +1,31
1 1 <p>
2 2 <%= label_tag "user_mail_notification", l(:description_user_mail_notification), :class => "hidden-for-sighted" %>
3 <%= select_tag 'user[mail_notification]', options_for_select(user_mail_notification_options(@user), @user.mail_notification),
4 :onchange => 'if (this.value == "selected") {Element.show("notified-projects")} else {Element.hide("notified-projects")}' %>
3 <%= select_tag(
4 'user[mail_notification]',
5 options_for_select(
6 user_mail_notification_options(@user), @user.mail_notification),
7 :onchange => 'if (this.value == "selected") {Element.show("notified-projects")} else {Element.hide("notified-projects")}'
8 ) %>
5 9 </p>
6 10 <%= content_tag 'div', :id => 'notified-projects', :style => (@user.mail_notification == 'selected' ? '' : 'display:none;') do %>
7 <p><% @user.projects.each do |project| %>
8 <label><%= check_box_tag 'notified_project_ids[]', project.id, @user.notified_projects_ids.include?(project.id) %> <%=h project.name %></label><br />
9 <% end %></p>
10 <p><em class="info"><%= l(:text_user_mail_option) %></em></p>
11 <p>
12 <% @user.projects.each do |project| %>
13 <label>
14 <%= check_box_tag(
15 'notified_project_ids[]',
16 project.id,
17 @user.notified_projects_ids.include?(project.id)
18 ) %>
19 <%= h(project.name) %>
20 </label>
21 <br />
22 <% end %>
23 </p>
24 <p><em class="info"><%= l(:text_user_mail_option) %></em></p>
11 25 <% end %>
12 <p><label><%= l(:label_user_mail_no_self_notified) %><%= check_box_tag 'no_self_notified', 1, @user.pref[:no_self_notified] %></label></p>
13
26 <p>
27 <label>
28 <%= l(:label_user_mail_no_self_notified) %>
29 <%= check_box_tag 'no_self_notified', 1, @user.pref[:no_self_notified] %>
30 </label>
31 </p>
General Comments 0
You need to be logged in to leave comments. Login now