Mercurial > hg > soundsoftware-site
diff app/views/settings/.svn/text-base/_notifications.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 | 07fa8a8b56a8 |
line wrap: on
line diff
--- a/app/views/settings/.svn/text-base/_notifications.rhtml.svn-base Fri Sep 24 14:06:04 2010 +0100 +++ b/app/views/settings/.svn/text-base/_notifications.rhtml.svn-base Fri Nov 19 13:24:41 2010 +0000 @@ -7,13 +7,22 @@ <p><%= setting_check_box :bcc_recipients %></p> <p><%= setting_check_box :plain_text_mail %></p> + +<p><%= setting_select(:default_notification_option, User::MAIL_NOTIFICATION_OPTIONS.collect {|o| [l(o.last), o.first.to_s]}) %></p> + </div> -<fieldset class="box settings" id="notified_events"><legend><%=l(:text_select_mail_notifications)%></legend> - <%= setting_multiselect(:notified_events, - @notifiables.collect {|notifiable| [l_or_humanize(notifiable, :prefix => 'label_'), notifiable]}, :label => false) %> +<fieldset class="box" id="notified_events"><legend><%=l(:text_select_mail_notifications)%></legend> +<%= hidden_field_tag 'settings[notified_events][]', '' %> +<% @notifiables.each do |notifiable| %> +<%= notification_field notifiable %> +<br /> +<% end %> +<p><%= check_all_links('notified_events') %></p> +</fieldset> - <p><%= check_all_links('notified_events') %></p> +<fieldset class="box"><legend><%= l(:setting_emails_header) %></legend> +<%= setting_text_area :emails_header, :label => false, :class => 'wiki-edit', :rows => 5 %> </fieldset> <fieldset class="box"><legend><%= l(:setting_emails_footer) %></legend>