comparison app/views/my/.svn/text-base/account.rhtml.svn-base @ 37:94944d00e43c

* Update to SVN trunk rev 4411
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 19 Nov 2010 13:24:41 +0000
parents 513646585e45
children
comparison
equal deleted inserted replaced
22:40f7cfd4df19 37:94944d00e43c
30 </div> 30 </div>
31 31
32 <div class="splitcontentright"> 32 <div class="splitcontentright">
33 <h3><%=l(:field_mail_notification)%></h3> 33 <h3><%=l(:field_mail_notification)%></h3>
34 <div class="box"> 34 <div class="box">
35 <%= select_tag 'notification_option', options_for_select(@notification_options, @notification_option), 35 <%= render :partial => 'users/mail_notifications' %>
36 :onchange => 'if ($("notification_option").value == "selected") {Element.show("notified-projects")} else {Element.hide("notified-projects")}' %>
37 <% content_tag 'div', :id => 'notified-projects', :style => (@notification_option == 'selected' ? '' : 'display:none;') do %>
38 <p><% User.current.projects.each do |project| %>
39 <label><%= check_box_tag 'notified_project_ids[]', project.id, @user.notified_projects_ids.include?(project.id) %> <%=h project.name %></label><br />
40 <% end %></p>
41 <p><em><%= l(:text_user_mail_option) %></em></p>
42 <% end %>
43 <p><label><%= check_box_tag 'no_self_notified', 1, @user.pref[:no_self_notified] %> <%= l(:label_user_mail_no_self_notified) %></label></p>
44 </div> 36 </div>
45 37
46 <h3><%=l(:label_preferences)%></h3> 38 <h3><%=l(:label_preferences)%></h3>
47 <div class="box tabular"> 39 <div class="box tabular">
48 <% fields_for :pref, @user.pref, :builder => TabularFormBuilder, :lang => current_language do |pref_fields| %> 40 <%= render :partial => 'users/preferences' %>
49 <p><%= pref_fields.check_box :hide_mail %></p>
50 <p><%= pref_fields.select :time_zone, ActiveSupport::TimeZone.all.collect {|z| [ z.to_s, z.name ]}, :include_blank => true %></p>
51 <p><%= pref_fields.select :comments_sorting, [[l(:label_chronological_order), 'asc'], [l(:label_reverse_chronological_order), 'desc']] %></p>
52 <% end %>
53 </div> 41 </div>
54 42
55 </div> 43 </div>
56 <% end %> 44 <% end %>
57 45