mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 04:15:26 +00:00
Monotone-Parent: b8a1f679b2d8b5862c0fc73e8bedec0e7b8fdc84
Monotone-Revision: 78d012bb528bcbf5295b1d5241415fcb6465a307 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-05-03T16:11:29 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -64,45 +64,6 @@
|
||||
[[self clientObject] baseURL]];
|
||||
}
|
||||
|
||||
- (NSString *) _toolbarForCalObject
|
||||
{
|
||||
SOGoUser *currentUser;
|
||||
SOGoAppointmentObject *clientObject;
|
||||
NSString *filename, *email;
|
||||
iCalPerson *person;
|
||||
iCalPersonPartStat participationStatus;
|
||||
|
||||
clientObject = [self clientObject];
|
||||
currentUser = [[self context] activeUser];
|
||||
email = [currentUser email];
|
||||
if ([clientObject isOrganizer: email
|
||||
orOwner: [currentUser login]])
|
||||
filename = @"SOGoAppointmentObject.toolbar";
|
||||
else
|
||||
{
|
||||
if ([clientObject isParticipant: email])
|
||||
{
|
||||
person = [[clientObject component: NO] findParticipantWithEmail: email];
|
||||
participationStatus = [person participationStatus];
|
||||
if (participationStatus == iCalPersonPartStatAccepted)
|
||||
filename = @"SOGoAppointmentObjectDecline.toolbar";
|
||||
else if (participationStatus == iCalPersonPartStatDeclined)
|
||||
filename = @"SOGoAppointmentObjectAccept.toolbar";
|
||||
else
|
||||
filename = @"SOGoAppointmentObjectAcceptOrDecline.toolbar";
|
||||
}
|
||||
else
|
||||
filename = @"SOGoComponentClose.toolbar";
|
||||
}
|
||||
|
||||
return filename;
|
||||
}
|
||||
|
||||
- (NSString *) toolbar
|
||||
{
|
||||
return ([self _toolbarForCalObject]);
|
||||
}
|
||||
|
||||
/* icalendar values */
|
||||
- (BOOL) isAllDay
|
||||
{
|
||||
|
||||
@@ -79,45 +79,6 @@
|
||||
[[self clientObject] baseURL]];
|
||||
}
|
||||
|
||||
- (NSString *) _toolbarForCalObject
|
||||
{
|
||||
SOGoUser *currentUser;
|
||||
SOGoTaskObject *clientObject;
|
||||
NSString *filename, *email;
|
||||
iCalPerson *person;
|
||||
iCalPersonPartStat participationStatus;
|
||||
|
||||
clientObject = [self clientObject];
|
||||
currentUser = [[self context] activeUser];
|
||||
email = [currentUser email];
|
||||
if ([clientObject isOrganizer: email
|
||||
orOwner: [currentUser login]])
|
||||
filename = @"SOGoTaskObject.toolbar";
|
||||
else
|
||||
{
|
||||
if ([clientObject isParticipant: email])
|
||||
{
|
||||
person = [[clientObject component: NO] findParticipantWithEmail: email];
|
||||
participationStatus = [person participationStatus];
|
||||
if (participationStatus == iCalPersonPartStatAccepted)
|
||||
filename = @"SOGoTaskObjectDecline.toolbar";
|
||||
else if (participationStatus == iCalPersonPartStatDeclined)
|
||||
filename = @"SOGoTaskObjectAccept.toolbar";
|
||||
else
|
||||
filename = @"SOGoTaskObjectAcceptOrDecline.toolbar";
|
||||
}
|
||||
else
|
||||
filename = @"SOGoComponentClose.toolbar";
|
||||
}
|
||||
|
||||
return filename;
|
||||
}
|
||||
|
||||
- (NSString *) toolbar
|
||||
{
|
||||
return ([self _toolbarForCalObject]);
|
||||
}
|
||||
|
||||
/* icalendar values */
|
||||
- (void) setTaskStartDate: (NSCalendarDate *) newTaskStartDate
|
||||
{
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
xmlns:label="OGo:label"
|
||||
className="UIxComponentEditor"
|
||||
var:component="event"
|
||||
var:toolbar="toolbar"
|
||||
var:saveURL="saveURL">
|
||||
<!-- <label><span id="allDay" class="content"><input class="checkBox"
|
||||
type="checkbox" var:selection="isAllDay"
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
xmlns:label="OGo:label"
|
||||
className="UIxComponentEditor"
|
||||
var:component="todo"
|
||||
var:toolbar="toolbar"
|
||||
var:saveURL="saveURL">
|
||||
<span class="checkBoxList"><var:string label:value="Start:" />
|
||||
<span class="content"><input var:checked="hasStartDate"
|
||||
|
||||
Reference in New Issue
Block a user