From 4f32352fe62e47ad5ea760eb00493bdc061b2407 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 7 Jun 2015 20:06:31 -0400 Subject: Add user filter/condition for notifications --- app/Template/user/notifications.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'app/Template/user/notifications.php') diff --git a/app/Template/user/notifications.php b/app/Template/user/notifications.php index df5cbb9b..a425705d 100644 --- a/app/Template/user/notifications.php +++ b/app/Template/user/notifications.php @@ -5,15 +5,27 @@
form->csrf() ?> + form->checkbox('notifications_enabled', t('Enable email notifications'), '1', $notifications['notifications_enabled'] == 1) ?>
- form->checkbox('notifications_enabled', t('Enable email notifications'), '1', $notifications['notifications_enabled'] == 1) ?>
+
+ + + + form->radios('notifications_filter', array( + \Model\Notification::FILTER_NONE => t('All tasks'), + \Model\Notification::FILTER_ASSIGNEE => t('Only for tasks assigned to me'), + \Model\Notification::FILTER_CREATOR => t('Only for tasks created by me'), + \Model\Notification::FILTER_BOTH => t('Only for tasks created by me and assigned to me'), + ), $notifications) ?>
+ +



$project_name): ?> - form->checkbox('projects['.$project_id.']', $project_name, '1', isset($notifications['project_'.$project_id])) ?>
+ form->checkbox('projects['.$project_id.']', $project_name, '1', isset($notifications['project_'.$project_id])) ?>
-- cgit v1.2.3