annotate app/views/users/.svn/text-base/_mail_notifications.html.erb.svn-base @ 213:00e958b1f6f8
feature_72
DEV commit: working in the repository config tab
author |
luisf <luis.figueira@eecs.qmul.ac.uk> |
date |
Wed, 09 Feb 2011 16:22:31 +0000 |
parents |
94944d00e43c |
children |
af80e5618e9b |
rev |
line source |
chris@37
|
1 <p>
|
chris@37
|
2 <%= select_tag 'notification_option', options_for_select(@notification_options.collect {|o| [l(o.last), o.first]}, @notification_option.to_sym),
|
chris@37
|
3 :onchange => 'if ($("notification_option").value == "selected") {Element.show("notified-projects")} else {Element.hide("notified-projects")}' %>
|
chris@37
|
4 </p>
|
chris@37
|
5 <% content_tag 'div', :id => 'notified-projects', :style => (@notification_option == '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
|