Mercurial > hg > soundsoftware-site
annotate app/views/users/.svn/text-base/_mail_notifications.html.erb.svn-base @ 589:b8549c67f9a7 bug_213
Fix #213
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 12 Aug 2011 14:51:48 +0100 |
parents | af80e5618e9b |
children |
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 |