diff --git a/src/IDF/Form/TabsConf.php b/src/IDF/Form/TabsConf.php index 3c64de2..9b4eb30 100644 --- a/src/IDF/Form/TabsConf.php +++ b/src/IDF/Form/TabsConf.php @@ -57,6 +57,20 @@ class IDF_Form_TabsConf extends Pluf_Form 'widget' => 'Pluf_Form_Widget_SelectInput', )); } + $ak = array('downloads_notification_email', + 'review_notification_email', + 'wiki_notification_email', + 'source_notification_email', + 'issues_notification_email',); + foreach ($ak as $key) { + $this->fields[$key] = new Pluf_Form_Field_Email( + array('required' => false, + 'label' => $key, + 'initial' => $this->conf->getVal($key, ''), + )); + } + + $this->fields['private_project'] = new Pluf_Form_Field_Boolean( array('required' => false, 'label' => __('Private project'), diff --git a/src/IDF/Views/Project.php b/src/IDF/Views/Project.php index 0c97580..d41a1d9 100644 --- a/src/IDF/Views/Project.php +++ b/src/IDF/Views/Project.php @@ -430,7 +430,12 @@ class IDF_Views_Project $params = array(); $keys = array('downloads_access_rights', 'source_access_rights', 'issues_access_rights', 'review_access_rights', - 'wiki_access_rights'); + 'wiki_access_rights', + 'downloads_notification_email', + 'review_notification_email', + 'wiki_notification_email', + 'source_notification_email', + 'issues_notification_email'); foreach ($keys as $key) { $_val = $request->conf->getVal($key, false); if ($_val !== false) { diff --git a/src/IDF/templates/idf/admin/tabs.html b/src/IDF/templates/idf/admin/tabs.html index 94611a9..366419a 100644 --- a/src/IDF/templates/idf/admin/tabs.html +++ b/src/IDF/templates/idf/admin/tabs.html @@ -12,34 +12,54 @@