annotate app/views/users/_mail_notifications.html.erb @ 1452:d6b9fd02bb89
feature_36_js_refactoring
Deprecated develoment branch.
author |
luisf <luis.figueira@eecs.qmul.ac.uk> |
date |
Fri, 11 Oct 2013 17:01:24 +0100 |
parents |
af80e5618e9b |
children |
cbb26bc654de |
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
|