From 38a3b7bb4f29aa676c7af0dccde3d87973b1007e Mon Sep 17 00:00:00 2001 From: Alexandre Cloutier Date: Tue, 26 Aug 2014 13:36:42 -0400 Subject: [PATCH] print calendars events&Tasks with colors - either borders or backgrounds --- UI/Scheduler/UIxCalListingActions.m | 2 +- UI/Scheduler/UIxCalViewPrint.h | 4 +- UI/Scheduler/UIxCalViewPrint.m | 2 +- UI/Templates/SchedulerUI/UIxCalViewPrint.wox | 51 ++-- UI/WebServerResources/SchedulerUI.js | 11 +- UI/WebServerResources/UIxCalViewPrint.css | 21 +- UI/WebServerResources/UIxCalViewPrint.js | 245 +++++++++++++++---- 7 files changed, 246 insertions(+), 90 deletions(-) diff --git a/UI/Scheduler/UIxCalListingActions.m b/UI/Scheduler/UIxCalListingActions.m index 70964eac7..aa8749fb6 100644 --- a/UI/Scheduler/UIxCalListingActions.m +++ b/UI/Scheduler/UIxCalListingActions.m @@ -99,7 +99,7 @@ static NSArray *tasksFields = nil; @"c_status", @"c_title", @"c_enddate", @"c_classification", @"c_location", @"c_category", @"editable", @"erasable", - @"c_priority", nil]; + @"c_priority", @"c_owner", nil]; [tasksFields retain]; } } diff --git a/UI/Scheduler/UIxCalViewPrint.h b/UI/Scheduler/UIxCalViewPrint.h index a0977d594..dd3326bec 100644 --- a/UI/Scheduler/UIxCalViewPrint.h +++ b/UI/Scheduler/UIxCalViewPrint.h @@ -19,9 +19,9 @@ * Boston, MA 02111-1307, USA. */ -#include +#include -@interface UIxCalViewPrint : UIxComponent +@interface UIxCalViewPrint : UIxCalendarSelector { id item; SOGoUserSettings *us; diff --git a/UI/Scheduler/UIxCalViewPrint.m b/UI/Scheduler/UIxCalViewPrint.m index eb432c02a..813e2e2ad 100644 --- a/UI/Scheduler/UIxCalViewPrint.m +++ b/UI/Scheduler/UIxCalViewPrint.m @@ -80,7 +80,7 @@ static NSArray *layoutItems = nil; SOGoUser *activeUser; NSString *parentView; - activeUser = [context activeUser]; + activeUser = [[self context] activeUser]; us = [activeUser userSettings]; parentView = [[us objectForKey:@"Calendar"] objectForKey:@"View" ]; diff --git a/UI/Templates/SchedulerUI/UIxCalViewPrint.wox b/UI/Templates/SchedulerUI/UIxCalViewPrint.wox index f8370f0f5..3b344da12 100644 --- a/UI/Templates/SchedulerUI/UIxCalViewPrint.wox +++ b/UI/Templates/SchedulerUI/UIxCalViewPrint.wox @@ -8,7 +8,14 @@ xmlns:label="OGo:label" className="UIxPageFrame" const:popup="YES"> - +
@@ -34,12 +41,10 @@ + + + +
- -