2006-06-15 21:34:10 +02:00
<?xml version="1.0" standalone="yes"?>
2007-11-10 01:02:30 +01:00
<!DOCTYPE div>
2006-06-15 21:34:10 +02:00
<div xmlns="http://www.w3.org/1999/xhtml"
2007-11-10 01:02:30 +01:00
xmlns:var="http://www.skyrix.com/od/binding"
xmlns:label="OGo:label"
xmlns:const="http://www.skyrix.com/od/constant"
xmlns:rsrc="OGo:url"
class="linked_attachment_frame"
>
2006-06-15 21:34:10 +02:00
<!-- TODO: add iMIP actions -->
2007-11-18 11:16:25 +01:00
<input id="iCalendarAttachment" type="hidden"
2009-09-10 20:31:20 +02:00
var:value="pathToAttachment"/>
2007-11-18 11:16:25 +01:00
2007-11-10 01:02:30 +01:00
<var:if condition="couldParseCalendar" const:negate="1">
<fieldset>
<legend>Parsing Error</legend>
The SOGo/SOPE iCalendar parser could not parse the body of this MIME part.
<pre><var:string value="flatContentAsString" /></pre>
</fieldset>
</var:if>
<var:if condition="couldParseCalendar">
2009-09-10 20:31:20 +02:00
<div class="popupMenu" id="contactsMenu">
<ul></ul>
</div>
2007-11-10 01:02:30 +01:00
<fieldset>
<legend>
<var:string label:value="Appointment"/>:
2009-09-10 20:31:20 +02:00
<strong><var:string value="inEvent.summary" /></strong> <!-- TODO: shorted title -->
2007-11-10 01:02:30 +01:00
<var:if condition="isLoggedInUserTheOrganizer">
(<var:string label:value="organized_by_you"/>)
</var:if>
<var:if condition="isLoggedInUserAnAttendee">
(<var:string label:value="you_are_an_attendee"/>)
</var:if>
</legend>
2007-11-18 11:16:25 +01:00
<var:if condition="inCalendar.method.uppercaseString" const:value="REQUEST">
2007-11-10 01:02:30 +01:00
<!-- sent to attendees to propose or update a meeting -->
<var:if condition="isLoggedInUserAnAttendee">
2008-08-28 19:22:36 +02:00
<var:if condition="hasCalendarAccess">
<p class="uix_ical_toolbar" id="iCalendarToolbar">
<var:if condition="currentUserAttendee.partStatWithDefault"
const:value="ACCEPTED" const:negate="YES">
<input id="iCalendarAccept" class="button"
type="button" label:value="Accept"/>
</var:if>
<var:if condition="currentUserAttendee.partStatWithDefault"
const:value="DECLINED" const:negate="YES">
<input id="iCalendarDecline" class="button"
type="button" label:value="Decline"/>
</var:if>
2009-09-10 20:31:20 +02:00
<var:if condition="currentUserAttendee.partStatWithDefault"
const:value="DELEGATED" const:negate="YES">
<input id="editDelegate" class="button"
type="button" label:value="Delegate ..." />
<span id="delegateEditor" style="display: none;">
2009-10-21 20:05:44 +02:00
<var:string label:value="Delegated to" />
2009-09-10 20:31:20 +02:00
<input name="delegatedTo" id="delegatedTo" type="text" />
<input class="button" type="button" id="iCalendarDelegate" name="delegateOK" value="OK" />
</span>
</var:if>
<var:if condition="currentUserAttendee.partStatWithDefault"
const:value="DELEGATED">
<span id="delegateEditor">
2009-10-21 20:05:44 +02:00
<var:string label:value="Delegated to" />
2009-09-10 20:31:20 +02:00
<input name="delegatedTo" id="delegatedTo" type="text" var:value="currentUserAttendee.delegatedTo.rfc822Email" var:uid="currentUserAttendee.delegatedTo.rfc822Email" style="display: none;" />
<a var:href="currentUserAttendee.delegatedTo" name="delegatedToLink" id="delegatedToLink"><var:string value="currentUserAttendee.delegatedTo.rfc822Email" /></a>
2009-10-21 20:05:44 +02:00
<input class="button" type="button" style="display: none;" id="iCalendarDelegate" name="delegateOK" value="OK" />
2009-09-10 20:31:20 +02:00
</span>
</var:if>
2008-08-28 19:22:36 +02:00
<!-- <input id="iCalendarTentative" class="button"
type="button" label:value="Tentative"/> -->
<var:if condition="isEventStoredInCalendar" const:negate="YES">
| <input id="iCalendarAddToCalendar" class="button"
type="button" label:value="Add to calendar"/>
</var:if>
</p>
</var:if>
2007-11-10 01:02:30 +01:00
<p>
<var:string label:value="Organizer" />
<a var:href="inEvent.organizer.email"
><var:string value="organizerDisplayName" /></a>
<var:string label:value="request_info" />
</p>
</var:if>
<var:if condition="isLoggedInUserAnAttendee" const:negate="YES">
<p>
<var:string label:value="Organizer" />
<a var:href="inEvent.organizer.email"
><var:string value="organizerDisplayName" /></a>
<var:string label:value="request_info_no_attendee" />
</p>
</var:if>
</var:if>
2008-08-28 19:22:36 +02:00
2007-11-18 11:16:25 +01:00
<var:if condition="inCalendar.method.uppercaseString" const:value="REPLY">
2007-11-10 01:02:30 +01:00
<!-- sent to organizer to update the status of the participant -->
<var:if condition="isReplySenderAnAttendee" const:negate="1">
<p><var:string label:value="reply_info_no_attendee" /></p>
</var:if>
<var:if condition="isReplySenderAnAttendee">
2008-06-02 22:05:38 +02:00
<var:if condition="canOriginalEventBeUpdated"
2007-11-18 11:16:25 +01:00
><p class="uix_ical_toolbar">
<input id="iCalendarUpdateUserStatus" class="button"
type="button" label:value="Update status"/>
2007-11-23 16:11:51 +01:00
</p>
2008-08-28 19:22:36 +02:00
<!-- TODO: replies to events not in the calendar? -->
2007-11-10 01:02:30 +01:00
2007-11-23 16:11:51 +01:00
<p>
Status Update:
<var:string label:value="$inReplyAttendee.partStatWithDefault" />,
was:
<var:string
label:value="$storedReplyAttendee.partStatWithDefault" />.
</p></var:if>
2007-11-10 01:02:30 +01:00
</var:if>
</var:if>
2006-06-15 21:34:10 +02:00
2007-11-18 11:16:25 +01:00
<var:if condition="inCalendar.method.uppercaseString" const:value="CANCEL">
2007-11-10 01:02:30 +01:00
<!-- sent to attendees to notify of the attendee being removed or the
event being deleted -->
<var:if condition="isEventStoredInCalendar">
<p class="uix_ical_toolbar">
<input id="iCalendarDeleteFromCalendar" class="button"
type="button" label:value="Delete from calendar"/>
</p>
</var:if>
<p>
<!-- todo: if there are no attendees, the whole meeting was stopped -->
<var:string label:value="cancel_info_text" />
</p>
</var:if>
2006-06-15 21:34:10 +02:00
2007-11-18 11:16:25 +01:00
<var:if condition="inCalendar.method.uppercaseString" const:value="ADD">
2007-11-10 01:02:30 +01:00
<!-- TODO -->
<p><var:string label:value="add_info_text" /></p>
2006-06-15 21:34:10 +02:00
</var:if>
2007-11-10 01:02:30 +01:00
2007-11-18 11:16:25 +01:00
<var:if condition="inCalendar.method.uppercaseString" const:value="PUBLISH">
2007-11-10 01:02:30 +01:00
<!-- none-scheduling event sent to someone for adding to the calendar -->
<p><var:string label:value="publish_info_text" /></p>
2006-06-15 21:34:10 +02:00
</var:if>
2007-11-10 01:02:30 +01:00
<var:if condition="isLoggedInUserTheOrganizer">
<!--
Possible Status:
REPLY => check whether it matches, if not suggest change, show
comment
REFRESH => add button to resent iCal
COUNTER => show panel to decide on counter
-->
2006-06-15 21:34:10 +02:00
</var:if>
2007-11-10 01:02:30 +01:00
<var:if condition="isLoggedInUserTheOrganizer" const:negate="1">
<!--
Possible Status:
REQUEST => ACCEPT, TENTATIVELY, DECLINE buttons with comment field
- only show buttons for attendees
PUBLISH => just the 'add to calendar' button, rewrite organizer?
ADD / CANCEL
DECLINE-COUNTER
-->
2006-06-15 21:34:10 +02:00
</var:if>
2007-11-10 01:02:30 +01:00
<!-- the user comment is used in replies -->
<var:if condition="inEvent.userComment.isNotEmpty">
<div class="linked_attachment_meta" style="background-color: white;">
<var:string value="inEvent.userComment" const:insertBR="1" />
</div>
<br />
2006-06-15 21:34:10 +02:00
</var:if>
<div class="linked_attachment_meta" style="background-color: white;">
2007-11-10 01:02:30 +01:00
<table border="0" class="linked_attachment_meta">
<tr>
<td><var:string label:value="Time"/>:</td>
<td>
<!-- TODO: we need a better viewer for that -->
2009-03-24 21:50:18 +01:00
<var:string value="startDate" />
<var:if condition="inEvent.isAllDay" const:negate="YES">
<var:string value="startTime" />
</var:if>
<var:if condition="isEndDateOnSameDay">
<var:if condition="inEvent.isAllDay" const:negate="YES">
<var:string label:value="to" />
<var:string value="endTime" />
</var:if>
</var:if>
<var:if condition="isEndDateOnSameDay" const:negate="YES">
<var:string label:value="to" />
<var:string value="endDate" />
<var:if condition="inEvent.isAllDay" const:negate="YES">
<var:string value="endTime" />
</var:if>
</var:if>
2007-11-10 01:02:30 +01:00
</td>
</tr>
<tr>
<td><var:string label:value="Organizer"/>:</td>
<td>
<a var:href="authorativeEvent.organizer.email"
><var:string value="organizerDisplayName" /></a>
</td>
</tr>
<tr>
<td valign="top"><var:string label:value="Attendees"/>:</td>
2009-09-10 20:31:20 +02:00
<td id="iCalAttendees">
2008-12-05 17:11:54 +01:00
<var:foreach list="authorativeEvent.participants" item="attendee">
2009-09-10 20:31:20 +02:00
<var:if condition="attendee.delegatedTo" const:negate="YES"><!-- don't show attendees that delegated the invitation --><span var:class="currentAttendeeClass"><a var:href="attendee.email">
<var:string value="attendeeForDisplay"/></a>
(<var:string label:value="$attendee.partStatWithDefault" /><var:if condition="attendee.delegatedTo"> <var:string label:value="to" /> <var:string value="attendee.delegatedTo.rfc822Email" /></var:if><var:if condition="attendee.delegatedFrom">, <var:string label:value="delegated from" /> <var:string value="attendee.delegatedFrom.rfc822Email" /></var:if>)</span>
<br /></var:if>
2007-11-10 01:02:30 +01:00
</var:foreach>
</td>
</tr>
2008-12-05 17:11:54 +01:00
<var:if condition="authorativeEvent.comment.isNotEmpty">
2007-11-10 01:02:30 +01:00
<tr> <!-- description in iCal -->
<td valign="top"><var:string label:value="Comment"/>:</td>
<td>
<var:string value="authorativeEvent.comment" const:insertBR="1" />
</td>
</tr>
</var:if>
</table>
2006-06-15 21:34:10 +02:00
</div>
2007-11-10 01:02:30 +01:00
</fieldset>
</var:if><!-- could parse -->
<!--
2006-06-15 21:34:10 +02:00
<var:string value="appointment" />
<br />
<br />
<br />
2007-11-10 01:02:30 +01:00
-->
2008-01-24 16:03:12 +01:00
<!-- <pre style="display: none;"><var:string value="flatContentAsString" /></pre> -->
2006-06-15 21:34:10 +02:00
</div>