diff --git a/app/helpers/settings_helper.rb b/app/helpers/settings_helper.rb
index e57b75fc..6dc33a8e 100644
--- a/app/helpers/settings_helper.rb
+++ b/app/helpers/settings_helper.rb
@@ -71,4 +71,14 @@ module SettingsHelper
label = options.delete(:label)
label != false ? content_tag("label", l(label || "setting_#{setting}")) : ''
end
+
+ # Renders a notification field for a Redmine::Notifiable option
+ def notification_field(notifiable)
+ return content_tag(:label,
+ check_box_tag('settings[notified_events][]',
+ notifiable.name,
+ Setting.notified_events.include?(notifiable.name)) +
+ l_or_humanize(notifiable.name, :prefix => 'label_'),
+ :class => notifiable.parent.present? ? "parent" : '')
+ end
end
diff --git a/app/views/settings/_notifications.rhtml b/app/views/settings/_notifications.rhtml
index 2c62cdf9..bf2b9d87 100644
--- a/app/views/settings/_notifications.rhtml
+++ b/app/views/settings/_notifications.rhtml
@@ -12,11 +12,13 @@
-