To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / users / _mail_notifications.html.erb @ 912:5e80956cc792
History | View | Annotate | Download (950 Bytes)
| 1 | 37:94944d00e43c | chris | <p>
|
|---|---|---|---|
| 2 | 909:cbb26bc654de | Chris | <%= label_tag "user_mail_notification", l(:description_user_mail_notification), :class => "hidden-for-sighted" %>
|
| 3 | 119:8661b858af72 | Chris | <%= 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")}' %>
|
||
| 5 | 37:94944d00e43c | chris | </p>
|
| 6 | 119:8661b858af72 | Chris | <% content_tag 'div', :id => 'notified-projects', :style => (@user.mail_notification == 'selected' ? '' : 'display:none;') do %>
|
| 7 | 37:94944d00e43c | chris | <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><%= l(:text_user_mail_option) %></em></p> |
||
| 11 | <% end %>
|
||
| 12 | 909:cbb26bc654de | Chris | <p><label><%= l(:label_user_mail_no_self_notified) %><%= check_box_tag 'no_self_notified', 1, @user.pref[:no_self_notified] %></label></p> |