annotate app/views/users/_mail_notifications.html.erb @ 868:e203d95588cd feature_135

Close obsolete branch feature_135
author Chris Cannam
date Tue, 12 Apr 2011 18:03:18 +0100
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