| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
|---|
| 3 |
<xsl:template match="attendees"> |
|---|
| 4 |
<xsl:param name="trash">yes</xsl:param> |
|---|
| 5 |
<table id="attendees" class="widget" cellspacing="0"> |
|---|
| 6 |
<tr> |
|---|
| 7 |
<th colspan="4">Attendees</th> |
|---|
| 8 |
</tr> |
|---|
| 9 |
<tr class="subHead"> |
|---|
| 10 |
<xsl:if test="$trash = 'yes'"><td></td></xsl:if> |
|---|
| 11 |
<td>attendee</td> |
|---|
| 12 |
<td>role</td> |
|---|
| 13 |
<td>status</td> |
|---|
| 14 |
</tr> |
|---|
| 15 |
<xsl:for-each select="attendee"> |
|---|
| 16 |
<xsl:sort select="cn" order="ascending" case-order="upper-first"/> |
|---|
| 17 |
<xsl:sort select="attendeeUri" order="ascending" case-order="upper-first"/> |
|---|
| 18 |
<xsl:variable name="attendeeUri" select="attendeeUri"/> |
|---|
| 19 |
<tr> |
|---|
| 20 |
<xsl:if test="$trash = 'yes'"> |
|---|
| 21 |
<td class="trash"> |
|---|
| 22 |
<a href="{$event-attendeesForEvent}&uri={$attendeeUri}&attendee=true&delete=true" title="remove"> |
|---|
| 23 |
<img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="remove"/> |
|---|
| 24 |
</a> |
|---|
| 25 |
</td> |
|---|
| 26 |
</xsl:if> |
|---|
| 27 |
<td> |
|---|
| 28 |
<a href="{$attendeeUri}"> |
|---|
| 29 |
<xsl:choose> |
|---|
| 30 |
<xsl:when test="cn != ''"> |
|---|
| 31 |
<xsl:value-of select="cn"/> |
|---|
| 32 |
</xsl:when> |
|---|
| 33 |
<xsl:otherwise> |
|---|
| 34 |
<xsl:value-of select="attendeeUri"/> |
|---|
| 35 |
</xsl:otherwise> |
|---|
| 36 |
</xsl:choose> |
|---|
| 37 |
</a> |
|---|
| 38 |
</td> |
|---|
| 39 |
<td class="role"> |
|---|
| 40 |
<xsl:value-of select="role"/> |
|---|
| 41 |
</td> |
|---|
| 42 |
<td class="status"> |
|---|
| 43 |
<xsl:value-of select="partstat"/> |
|---|
| 44 |
</td> |
|---|
| 45 |
</tr> |
|---|
| 46 |
</xsl:for-each> |
|---|
| 47 |
</table> |
|---|
| 48 |
</xsl:template> |
|---|
| 49 |
|
|---|
| 50 |
<xsl:template match="formElements" mode="attendeeRespond"> |
|---|
| 51 |
<xsl:variable name="subscriptionId" select="subscriptionId"/> |
|---|
| 52 |
<xsl:variable name="calPathEncoded" select="form/calendar/encodedPath"/> |
|---|
| 53 |
<xsl:variable name="calPath" select="form/calendar/path"/> |
|---|
| 54 |
<xsl:variable name="guid" select="guid"/> |
|---|
| 55 |
<xsl:variable name="recurrenceId" select="recurrenceId"/> |
|---|
| 56 |
<!-- The name "eventForm" is referenced by several javascript functions. Do not |
|---|
| 57 |
change it without modifying bedework.js --> |
|---|
| 58 |
<form name="eventForm" method="post" action="{$schedule-attendeeRespond}" id="standardForm"> |
|---|
| 59 |
<input type="hidden" name="updateEvent" value="true"/> |
|---|
| 60 |
<input type="hidden" name="endType" value="date"/> |
|---|
| 61 |
<h2> |
|---|
| 62 |
<xsl:choose> |
|---|
| 63 |
<xsl:when test="form/status = 'CANCELLED'"> |
|---|
| 64 |
Meeting Cancelled |
|---|
| 65 |
</xsl:when> |
|---|
| 66 |
<xsl:otherwise> |
|---|
| 67 |
Meeting Request |
|---|
| 68 |
<xsl:if test="guidcals/calendar"> (update)</xsl:if> |
|---|
| 69 |
</xsl:otherwise> |
|---|
| 70 |
</xsl:choose> |
|---|
| 71 |
</h2> |
|---|
| 72 |
<table class="common" cellspacing="0"> |
|---|
| 73 |
<tr> |
|---|
| 74 |
<th colspan="2" class="commonHeader"> |
|---|
| 75 |
Organizer: |
|---|
| 76 |
<xsl:choose> |
|---|
| 77 |
<xsl:when test="organizer/cn != ''"> |
|---|
| 78 |
<xsl:value-of select="organizer/cn"/> |
|---|
| 79 |
</xsl:when> |
|---|
| 80 |
<xsl:otherwise> |
|---|
| 81 |
<xsl:value-of select="substring-after(organizer/organizerUri,'mailto:')"/> |
|---|
| 82 |
</xsl:otherwise> |
|---|
| 83 |
</xsl:choose> |
|---|
| 84 |
</th> |
|---|
| 85 |
</tr> |
|---|
| 86 |
|
|---|
| 87 |
<tr> |
|---|
| 88 |
<td class="fieldname"> |
|---|
| 89 |
Calendar: |
|---|
| 90 |
</td> |
|---|
| 91 |
<td class="fieldval scheduleActions"> |
|---|
| 92 |
<xsl:choose> |
|---|
| 93 |
<xsl:when test="not(guidcals/calendar)"> |
|---|
| 94 |
<!-- the event has not been added to a calendar, so this is the |
|---|
| 95 |
first request --> |
|---|
| 96 |
|
|---|
| 97 |
<!-- the string "user/" should not be hard coded; fix this --> |
|---|
| 98 |
<xsl:variable name="userPath">user/<xsl:value-of select="/bedework/userid"/></xsl:variable> |
|---|
| 99 |
<xsl:variable name="writableCalendars"> |
|---|
| 100 |
<xsl:value-of select=" |
|---|
| 101 |
count(/bedework/myCalendars//calendar[calType = '1' and |
|---|
| 102 |
currentAccess/current-user-privilege-set/privilege/write-content]) + |
|---|
| 103 |
count(/bedework/mySubscriptions//calendar[calType = '1' and |
|---|
| 104 |
currentAccess/current-user-privilege-set/privilege/write-content and |
|---|
| 105 |
(not(contains(path,$userPath)))])"/> |
|---|
| 106 |
</xsl:variable> |
|---|
| 107 |
<xsl:choose> |
|---|
| 108 |
<xsl:when test="$writableCalendars = 1"> |
|---|
| 109 |
<!-- there is only 1 writable calendar, so find it by looking down both trees at once --> |
|---|
| 110 |
<xsl:variable name="newCalPath"><xsl:value-of select="/bedework/myCalendars//calendar[calType = '1' and |
|---|
| 111 |
currentAccess/current-user-privilege-set/privilege/write-content]/path"/><xsl:value-of select="/bedework/mySubscriptions//calendar[calType = '1' and |
|---|
| 112 |
currentAccess/current-user-privilege-set/privilege/write-content and |
|---|
| 113 |
(not(contains(path,$userPath)))]/path"/></xsl:variable> |
|---|
| 114 |
|
|---|
| 115 |
<input type="hidden" name="newCalPath" value="{$newCalPath}"/> |
|---|
| 116 |
|
|---|
| 117 |
<xsl:variable name="userFullPath"><xsl:value-of select="$userPath"/>/</xsl:variable> |
|---|
| 118 |
<span id="bwEventCalDisplay"> |
|---|
| 119 |
<xsl:choose> |
|---|
| 120 |
<xsl:when test="contains($newCalPath,$userFullPath)"> |
|---|
| 121 |
<xsl:value-of select="substring-after($newCalPath,$userFullPath)"/> |
|---|
| 122 |
</xsl:when> |
|---|
| 123 |
<xsl:otherwise> |
|---|
| 124 |
<xsl:value-of select="$newCalPath"/> |
|---|
| 125 |
</xsl:otherwise> |
|---|
| 126 |
</xsl:choose> |
|---|
| 127 |
</span> |
|---|
| 128 |
</xsl:when> |
|---|
| 129 |
<xsl:otherwise> |
|---|
| 130 |
<input type="hidden" name="newCalPath" id="bwNewCalPathField" value=""/> |
|---|
| 131 |
<!-- |
|---|
| 132 |
<xsl:if test="form/calendar/calType = '1'"><xsl:attribute name="value"><xsl:value-of select="form/calendar/path"/></xsl:attribute></xsl:if> |
|---|
| 133 |
</input>--> |
|---|
| 134 |
|
|---|
| 135 |
<xsl:variable name="userFullPath"><xsl:value-of select="$userPath"/>/</xsl:variable> |
|---|
| 136 |
|
|---|
| 137 |
<span id="bwEventCalDisplay"> |
|---|
| 138 |
<xsl:if test="form/calendar/calType = '1'"> |
|---|
| 139 |
<xsl:choose> |
|---|
| 140 |
<xsl:when test="contains(form/calendar/path,$userFullPath)"> |
|---|
| 141 |
<xsl:value-of select="substring-after(form/calendar/path,$userFullPath)"/> |
|---|
| 142 |
</xsl:when> |
|---|
| 143 |
<xsl:otherwise> |
|---|
| 144 |
<xsl:value-of select="form/calendar/path"/> |
|---|
| 145 |
</xsl:otherwise> |
|---|
| 146 |
</xsl:choose> |
|---|
| 147 |
</xsl:if> |
|---|
| 148 |
<xsl:text> </xsl:text> |
|---|
| 149 |
<!-- this final text element is required to avoid an empty |
|---|
| 150 |
span element which is improperly rendered in the browser --> |
|---|
| 151 |
</span> |
|---|
| 152 |
|
|---|
| 153 |
<xsl:call-template name="selectCalForEvent"/> |
|---|
| 154 |
|
|---|
| 155 |
</xsl:otherwise> |
|---|
| 156 |
</xsl:choose> |
|---|
| 157 |
|
|---|
| 158 |
</xsl:when> |
|---|
| 159 |
<xsl:otherwise> |
|---|
| 160 |
<!-- the event exists in calendars already, so this is a |
|---|
| 161 |
subsequent follow-up. Let the user choose which copies |
|---|
| 162 |
of the event to update. For now, we'll just list them |
|---|
| 163 |
and add calPath request parameters --> |
|---|
| 164 |
<ul> |
|---|
| 165 |
<xsl:for-each select="guidcals/calendar"> |
|---|
| 166 |
<li class="calendar"> |
|---|
| 167 |
<xsl:value-of select="name"/> |
|---|
| 168 |
<input type="hidden" name="calPath"> |
|---|
| 169 |
<xsl:attribute name="value"><xsl:value-of select="path"/></xsl:attribute> |
|---|
| 170 |
</input> |
|---|
| 171 |
</li> |
|---|
| 172 |
</xsl:for-each> |
|---|
| 173 |
</ul> |
|---|
| 174 |
</xsl:otherwise> |
|---|
| 175 |
</xsl:choose> |
|---|
| 176 |
</td> |
|---|
| 177 |
</tr> |
|---|
| 178 |
<tr> |
|---|
| 179 |
<td class="fieldname">Action:</td> |
|---|
| 180 |
<td class="fieldval scheduleActions"> |
|---|
| 181 |
<xsl:choose> |
|---|
| 182 |
<xsl:when test="form/status = 'CANCELLED' or form/scheduleMethod = '8'"> |
|---|
| 183 |
<!-- respond to a cancel --> |
|---|
| 184 |
<input type="hidden" name="method" value="REPLY"/> |
|---|
| 185 |
<select name="cancelAction"> |
|---|
| 186 |
<option value="mark">mark event as cancelled</option> |
|---|
| 187 |
<option value="delete">delete event</option> |
|---|
| 188 |
</select> |
|---|
| 189 |
</xsl:when> |
|---|
| 190 |
<xsl:otherwise> |
|---|
| 191 |
<!-- respond to a request --> |
|---|
| 192 |
<input type="radio" name="method" value="REPLY" checked="checked" onclick="swapScheduleDisplay('hide');"/>reply as |
|---|
| 193 |
<select name="partstat"> |
|---|
| 194 |
<option value="ACCEPTED">accepted</option> |
|---|
| 195 |
<option value="DECLINED">declined</option> |
|---|
| 196 |
<option value="TENTATIVE">tentative</option> |
|---|
| 197 |
</select><br/> |
|---|
| 198 |
<!--<input type="radio" name="method" value="REFRESH" onclick="swapScheduleDisplay('hide');"/>refresh this event<br/>--> |
|---|
| 199 |
<input type="radio" name="method" value="DELEGATE" onclick="swapScheduleDisplay('hide');"/>delegate to |
|---|
| 200 |
<input type="test" name="delegate" value=""/> (uri or account)<br/> |
|---|
| 201 |
<input type="radio" name="method" value="COUNTER" onclick="swapScheduleDisplay('show');"/>counter (suggest a different date, time, and/or location) |
|---|
| 202 |
</xsl:otherwise> |
|---|
| 203 |
</xsl:choose> |
|---|
| 204 |
</td> |
|---|
| 205 |
</tr> |
|---|
| 206 |
<tr id="scheduleDateEdit" class="invisible"> |
|---|
| 207 |
<td class="fieldname">New Date/Time:</td> |
|---|
| 208 |
<td class="fieldval scheduleActions"> |
|---|
| 209 |
<!-- Set the timefields class for the first load of the page; |
|---|
| 210 |
subsequent changes will take place using javascript without a |
|---|
| 211 |
page reload. --> |
|---|
| 212 |
<xsl:variable name="timeFieldsClass"> |
|---|
| 213 |
<xsl:choose> |
|---|
| 214 |
<xsl:when test="form/allDay/input/@checked='checked'">invisible</xsl:when> |
|---|
| 215 |
<xsl:otherwise>timeFields</xsl:otherwise> |
|---|
| 216 |
</xsl:choose> |
|---|
| 217 |
</xsl:variable> |
|---|
| 218 |
<xsl:choose> |
|---|
| 219 |
<xsl:when test="form/allDay/input/@checked='checked'"> |
|---|
| 220 |
<input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="on" checked="checked"/> |
|---|
| 221 |
<input type="hidden" name="eventStartDate.dateOnly" value="on" id="allDayStartDateField"/> |
|---|
| 222 |
<input type="hidden" name="eventEndDate.dateOnly" value="on" id="allDayEndDateField"/> |
|---|
| 223 |
</xsl:when> |
|---|
| 224 |
<xsl:otherwise> |
|---|
| 225 |
<input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="off"/> |
|---|
| 226 |
<input type="hidden" name="eventStartDate.dateOnly" value="off" id="allDayStartDateField"/> |
|---|
| 227 |
<input type="hidden" name="eventEndDate.dateOnly" value="off" id="allDayEndDateField"/> |
|---|
| 228 |
</xsl:otherwise> |
|---|
| 229 |
</xsl:choose> |
|---|
| 230 |
all day event<br/> |
|---|
| 231 |
<div class="dateStartEndBox"> |
|---|
| 232 |
<strong>Start:</strong> |
|---|
| 233 |
<div class="dateFields"> |
|---|
| 234 |
<span class="startDateLabel">Date </span> |
|---|
| 235 |
<xsl:copy-of select="form/start/month/*"/> |
|---|
| 236 |
<xsl:copy-of select="form/start/day/*"/> |
|---|
| 237 |
<xsl:choose> |
|---|
| 238 |
<xsl:when test="/bedework/creating = 'true'"> |
|---|
| 239 |
<xsl:copy-of select="form/start/year/*"/> |
|---|
| 240 |
</xsl:when> |
|---|
| 241 |
<xsl:otherwise> |
|---|
| 242 |
<xsl:copy-of select="form/start/yearText/*"/> |
|---|
| 243 |
</xsl:otherwise> |
|---|
| 244 |
</xsl:choose> |
|---|
| 245 |
</div> |
|---|
| 246 |
<!--<script language="JavaScript" type="text/javascript"> |
|---|
| 247 |
<xsl:comment> |
|---|
| 248 |
startDateDynCalWidget = new dynCalendar('startDateDynCalWidget', <xsl:value-of select="number(/bedework/formElements/form/start/yearText/input/@value)"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(/bedework/formElements/form/start/day/select/option[@selected='selected']/@value)"/>, 'startDateCalWidgetCallback'); |
|---|
| 249 |
</xsl:comment> |
|---|
| 250 |
</script>--> |
|---|
| 251 |
<!--<img src="{$resourcesRoot}/resources/calIcon.gif" width="16" height="15" border="0"/>--> |
|---|
| 252 |
<div class="{$timeFieldsClass}" id="startTimeFields"> |
|---|
| 253 |
<span id="calWidgetStartTimeHider" class="show"> |
|---|
| 254 |
<xsl:copy-of select="form/start/hour/*"/> |
|---|
| 255 |
<xsl:copy-of select="form/start/minute/*"/> |
|---|
| 256 |
<xsl:if test="form/start/ampm"> |
|---|
| 257 |
<xsl:copy-of select="form/start/ampm/*"/> |
|---|
| 258 |
</xsl:if> |
|---|
| 259 |
<xsl:text> </xsl:text> |
|---|
| 260 |
<!--<a href="javascript:bwClockLaunch('eventStartDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0"/></a>--> |
|---|
| 261 |
</span> |
|---|
| 262 |
</div> |
|---|
| 263 |
</div> |
|---|
| 264 |
<div class="dateStartEndBox"> |
|---|
| 265 |
<strong>End:</strong> |
|---|
| 266 |
<xsl:choose> |
|---|
| 267 |
<xsl:when test="form/end/type='E'"> |
|---|
| 268 |
<input type="radio" name="eventEndType" value="E" checked="checked" onclick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> |
|---|
| 269 |
</xsl:when> |
|---|
| 270 |
<xsl:otherwise> |
|---|
| 271 |
<input type="radio" name="eventEndType" value="E" onclick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> |
|---|
| 272 |
</xsl:otherwise> |
|---|
| 273 |
</xsl:choose> |
|---|
| 274 |
Date |
|---|
| 275 |
<xsl:variable name="endDateTimeClass"> |
|---|
| 276 |
<xsl:choose> |
|---|
| 277 |
<xsl:when test="form/end/type='E'">shown</xsl:when> |
|---|
| 278 |
<xsl:otherwise>invisible</xsl:otherwise> |
|---|
| 279 |
</xsl:choose> |
|---|
| 280 |
</xsl:variable> |
|---|
| 281 |
<div class="{$endDateTimeClass}" id="endDateTime"> |
|---|
| 282 |
<div class="dateFields"> |
|---|
| 283 |
<xsl:copy-of select="form/end/dateTime/month/*"/> |
|---|
| 284 |
<xsl:copy-of select="form/end/dateTime/day/*"/> |
|---|
| 285 |
<xsl:choose> |
|---|
| 286 |
<xsl:when test="/bedework/creating = 'true'"> |
|---|
| 287 |
<xsl:copy-of select="form/end/dateTime/year/*"/> |
|---|
| 288 |
</xsl:when> |
|---|
| 289 |
<xsl:otherwise> |
|---|
| 290 |
<xsl:copy-of select="form/end/dateTime/yearText/*"/> |
|---|
| 291 |
</xsl:otherwise> |
|---|
| 292 |
</xsl:choose> |
|---|
| 293 |
</div> |
|---|
| 294 |
<!--<script language="JavaScript" type="text/javascript"> |
|---|
| 295 |
<xsl:comment> |
|---|
| 296 |
endDateDynCalWidget = new dynCalendar('endDateDynCalWidget', <xsl:value-of select="number(/bedework/formElements/form/start/yearText/input/@value)"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(/bedework/formElements/form/start/day/select/option[@selected='selected']/@value)"/>, 'endDateCalWidgetCallback'); |
|---|
| 297 |
</xsl:comment> |
|---|
| 298 |
</script>--> |
|---|
| 299 |
<div class="{$timeFieldsClass}" id="endTimeFields"> |
|---|
| 300 |
<span id="calWidgetEndTimeHider" class="show"> |
|---|
| 301 |
<xsl:copy-of select="form/end/dateTime/hour/*"/> |
|---|
| 302 |
<xsl:copy-of select="form/end/dateTime/minute/*"/> |
|---|
| 303 |
<xsl:if test="form/end/dateTime/ampm"> |
|---|
| 304 |
<xsl:copy-of select="form/end/dateTime/ampm/*"/> |
|---|
| 305 |
</xsl:if> |
|---|
| 306 |
<xsl:text> </xsl:text> |
|---|
| 307 |
<!--<a href="javascript:bwClockLaunch('eventEndDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0"/></a>--> |
|---|
| 308 |
</span> |
|---|
| 309 |
</div> |
|---|
| 310 |
</div><br/> |
|---|
| 311 |
<div id="clock" class="invisible"> |
|---|
| 312 |
<xsl:call-template name="clock"/> |
|---|
| 313 |
</div> |
|---|
| 314 |
<div class="dateFields"> |
|---|
| 315 |
<xsl:choose> |
|---|
| 316 |
<xsl:when test="form/end/type='D'"> |
|---|
| 317 |
<input type="radio" name="eventEndType" value="D" checked="checked" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> |
|---|
| 318 |
</xsl:when> |
|---|
| 319 |
<xsl:otherwise> |
|---|
| 320 |
<input type="radio" name="eventEndType" value="D" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> |
|---|
| 321 |
</xsl:otherwise> |
|---|
| 322 |
</xsl:choose> |
|---|
| 323 |
Duration |
|---|
| 324 |
<xsl:variable name="endDurationClass"> |
|---|
| 325 |
<xsl:choose> |
|---|
| 326 |
<xsl:when test="form/end/type='D'">shown</xsl:when> |
|---|
| 327 |
<xsl:otherwise>invisible</xsl:otherwise> |
|---|
| 328 |
</xsl:choose> |
|---|
| 329 |
</xsl:variable> |
|---|
| 330 |
<xsl:variable name="durationHrMinClass"> |
|---|
| 331 |
<xsl:choose> |
|---|
| 332 |
<xsl:when test="form/allDay/input/@checked='checked'">invisible</xsl:when> |
|---|
| 333 |
<xsl:otherwise>shown</xsl:otherwise> |
|---|
| 334 |
</xsl:choose> |
|---|
| 335 |
</xsl:variable> |
|---|
| 336 |
<div class="{$endDurationClass}" id="endDuration"> |
|---|
| 337 |
<xsl:choose> |
|---|
| 338 |
<xsl:when test="form/end/duration/weeks/input/@value = '0'"> |
|---|
| 339 |
<!-- we are using day, hour, minute format --> |
|---|
| 340 |
<!-- must send either no week value or week value of 0 (zero) --> |
|---|
| 341 |
<div class="durationBox"> |
|---|
| 342 |
<input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')" checked="checked"/> |
|---|
| 343 |
<xsl:variable name="daysStr" select="form/end/duration/days/input/@value"/> |
|---|
| 344 |
<input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays"/>days |
|---|
| 345 |
<span id="durationHrMin" class="{$durationHrMinClass}"> |
|---|
| 346 |
<xsl:variable name="hoursStr" select="form/end/duration/hours/input/@value"/> |
|---|
| 347 |
<input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours"/>hours |
|---|
| 348 |
<xsl:variable name="minutesStr" select="form/end/duration/minutes/input/@value"/> |
|---|
| 349 |
<input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes"/>minutes |
|---|
| 350 |
</span> |
|---|
| 351 |
</div> |
|---|
| 352 |
<span class="durationSpacerText">or</span> |
|---|
| 353 |
<div class="durationBox"> |
|---|
| 354 |
<input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')"/> |
|---|
| 355 |
<xsl:variable name="weeksStr" select="form/end/duration/weeks/input/@value"/> |
|---|
| 356 |
<input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks" disabled="disabled"/>weeks |
|---|
| 357 |
</div> |
|---|
| 358 |
</xsl:when> |
|---|
| 359 |
<xsl:otherwise> |
|---|
| 360 |
<!-- we are using week format --> |
|---|
| 361 |
<div class="durationBox"> |
|---|
| 362 |
<input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')"/> |
|---|
| 363 |
<xsl:variable name="daysStr" select="form/end/duration/days/input/@value"/> |
|---|
| 364 |
<input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays" disabled="disabled"/>days |
|---|
| 365 |
<span id="durationHrMin" class="{$durationHrMinClass}"> |
|---|
| 366 |
<xsl:variable name="hoursStr" select="form/end/duration/hours/input/@value"/> |
|---|
| 367 |
<input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours" disabled="disabled"/>hours |
|---|
| 368 |
<xsl:variable name="minutesStr" select="form/end/duration/minutes/input/@value"/> |
|---|
| 369 |
<input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes" disabled="disabled"/>minutes |
|---|
| 370 |
</span> |
|---|
| 371 |
</div> |
|---|
| 372 |
<span class="durationSpacerText">or</span> |
|---|
| 373 |
<div class="durationBox"> |
|---|
| 374 |
<input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')" checked="checked"/> |
|---|
| 375 |
<xsl:variable name="weeksStr" select="form/end/duration/weeks/input/@value"/> |
|---|
| 376 |
<input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks"/>weeks |
|---|
| 377 |
</div> |
|---|
| 378 |
</xsl:otherwise> |
|---|
| 379 |
</xsl:choose> |
|---|
| 380 |
</div> |
|---|
| 381 |
</div><br/> |
|---|
| 382 |
<div class="dateFields" id="noDuration"> |
|---|
| 383 |
<xsl:choose> |
|---|
| 384 |
<xsl:when test="form/end/type='N'"> |
|---|
| 385 |
<input type="radio" name="eventEndType" value="N" checked="checked" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> |
|---|
| 386 |
</xsl:when> |
|---|
| 387 |
<xsl:otherwise> |
|---|
| 388 |
<input type="radio" name="eventEndType" value="N" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> |
|---|
| 389 |
</xsl:otherwise> |
|---|
| 390 |
</xsl:choose> |
|---|
| 391 |
This event has no duration / end date |
|---|
| 392 |
</div> |
|---|
| 393 |
</div> |
|---|
| 394 |
</td> |
|---|
| 395 |
</tr> |
|---|
| 396 |
<tr id="scheduleLocationEdit" class="invisible"> |
|---|
| 397 |
<td class="fieldname">New Location:</td> |
|---|
| 398 |
<td class="fieldval scheduleActions"> |
|---|
| 399 |
<span class="std-text">choose: </span> |
|---|
| 400 |
<span id="eventFormLocationList"> |
|---|
| 401 |
<select name="eventLocationUid"> |
|---|
| 402 |
<option value="-1">select...</option> |
|---|
| 403 |
<xsl:copy-of select="/bedework/formElements/form/location/locationmenu/select/*"/> |
|---|
| 404 |
</select> |
|---|
| 405 |
</span> |
|---|
| 406 |
<span class="std-text"> or add new: </span> |
|---|
| 407 |
<input type="text" name="locationAddress.value" value="" /> |
|---|
| 408 |
</td> |
|---|
| 409 |
</tr> |
|---|
| 410 |
<tr> |
|---|
| 411 |
<td class="fieldname">Comment:</td> |
|---|
| 412 |
<td class="fieldval scheduleActions"> |
|---|
| 413 |
<textarea name="comment" cols="60" rows="2"> |
|---|
| 414 |
<xsl:text> </xsl:text> |
|---|
| 415 |
</textarea> |
|---|
| 416 |
</td> |
|---|
| 417 |
</tr> |
|---|
| 418 |
<tr> |
|---|
| 419 |
<td class="fieldname"> </td> |
|---|
| 420 |
<td class="fieldval scheduleActions"> |
|---|
| 421 |
<input name="submit" type="submit" value="Submit"/>  |
|---|
| 422 |
<input name="cancelled" type="submit" value="cancel"/> |
|---|
| 423 |
</td> |
|---|
| 424 |
</tr> |
|---|
| 425 |
<tr> |
|---|
| 426 |
<td class="fieldname"> |
|---|
| 427 |
Title: |
|---|
| 428 |
</td> |
|---|
| 429 |
<td class="fieldval"> |
|---|
| 430 |
<strong><xsl:value-of select="form/title/input/@value"/></strong> |
|---|
| 431 |
</td> |
|---|
| 432 |
</tr> |
|---|
| 433 |
<tr> |
|---|
| 434 |
<td class="fieldname">Description:</td> |
|---|
| 435 |
<td class="fieldval"> |
|---|
| 436 |
<xsl:value-of select="/bedework/formElements/form/desc/textarea"/> |
|---|
| 437 |
</td> |
|---|
| 438 |
</tr> |
|---|
| 439 |
<tr> |
|---|
| 440 |
<td class="fieldname"> |
|---|
| 441 |
Date & Time: |
|---|
| 442 |
</td> |
|---|
| 443 |
<td class="fieldval"> |
|---|
| 444 |
<xsl:value-of select="form/start/month/select/option[@selected='selected']"/> |
|---|
| 445 |
<xsl:text> </xsl:text> |
|---|
| 446 |
<xsl:value-of select="form/start/day/select/option[@selected='selected']"/>, |
|---|
| 447 |
<xsl:value-of select="form/start/yearText/input/@value"/> |
|---|
| 448 |
<xsl:text> </xsl:text> |
|---|
| 449 |
<xsl:value-of select="form/start/hour/select/option[@selected='selected']"/>:<xsl:value-of select="form/start/minute/select/option[@selected='selected']"/> |
|---|
| 450 |
- |
|---|
| 451 |
<xsl:value-of select="form/end/dateTime/month/select/option[@selected='selected']"/> |
|---|
| 452 |
<xsl:text> </xsl:text> |
|---|
| 453 |
<xsl:value-of select="form/end/dateTime/day/select/option[@selected='selected']"/>, |
|---|
| 454 |
<xsl:value-of select="form/end/dateTime/yearText/input/@value"/> |
|---|
| 455 |
<xsl:text> </xsl:text> |
|---|
| 456 |
<xsl:value-of select="form/end/dateTime/hour/select/option[@selected='selected']"/>:<xsl:value-of select="form/end/dateTime/minute/select/option[@selected='selected']"/> |
|---|
| 457 |
<xsl:if test="form/allDay/input/@checked='checked'"> |
|---|
| 458 |
<xsl:text> </xsl:text> |
|---|
| 459 |
(all day) |
|---|
| 460 |
</xsl:if> |
|---|
| 461 |
</td> |
|---|
| 462 |
</tr> |
|---|
| 463 |
<tr> |
|---|
| 464 |
<td class="fieldname">Location:</td> |
|---|
| 465 |
<td class="fieldval" align="left"> |
|---|
| 466 |
<xsl:if test="location/address = ''"> |
|---|
| 467 |
<em>not specified</em> |
|---|
| 468 |
</xsl:if> |
|---|
| 469 |
<xsl:value-of select="location/address"/> |
|---|
| 470 |
</td> |
|---|
| 471 |
</tr> |
|---|
| 472 |
<xsl:if test="attendee"> |
|---|
| 473 |
<tr> |
|---|
| 474 |
<td class="fieldname">Attendees:</td> |
|---|
| 475 |
<td class="fieldval"> |
|---|
| 476 |
<table id="attendees" cellspacing="0"> |
|---|
| 477 |
<tr> |
|---|
| 478 |
<th>role</th> |
|---|
| 479 |
<th>status</th> |
|---|
| 480 |
<th>attendee</th> |
|---|
| 481 |
</tr> |
|---|
| 482 |
<xsl:for-each select="attendee"> |
|---|
| 483 |
<xsl:sort select="cn" order="ascending" case-order="upper-first"/> |
|---|
| 484 |
<xsl:sort select="attendeeUri" order="ascending" case-order="upper-first"/> |
|---|
| 485 |
<tr> |
|---|
| 486 |
<td class="role"> |
|---|
| 487 |
<xsl:value-of select="role"/> |
|---|
| 488 |
</td> |
|---|
| 489 |
<td class="status"> |
|---|
| 490 |
<xsl:value-of select="partstat"/> |
|---|
| 491 |
</td> |
|---|
| 492 |
<td> |
|---|
| 493 |
<xsl:variable name="attendeeUri" select="attendeeUri"/> |
|---|
| 494 |
<a href="{$attendeeUri}"> |
|---|
| 495 |
<xsl:choose> |
|---|
| 496 |
<xsl:when test="cn != ''"> |
|---|
| 497 |
<xsl:value-of select="cn"/> |
|---|
| 498 |
</xsl:when> |
|---|
| 499 |
<xsl:otherwise> |
|---|
| 500 |
<xsl:value-of select="substring-after(attendeeUri,'mailto:')"/> |
|---|
| 501 |
</xsl:otherwise> |
|---|
| 502 |
</xsl:choose> |
|---|
| 503 |
</a> |
|---|
| 504 |
</td> |
|---|
| 505 |
</tr> |
|---|
| 506 |
</xsl:for-each> |
|---|
| 507 |
</table> |
|---|
| 508 |
</td> |
|---|
| 509 |
</tr> |
|---|
| 510 |
</xsl:if> |
|---|
| 511 |
<!-- Transparency --> |
|---|
| 512 |
<!-- |
|---|
| 513 |
<tr> |
|---|
| 514 |
<td class="fieldname"> |
|---|
| 515 |
Effects free/busy: |
|---|
| 516 |
</td> |
|---|
| 517 |
<td class="fieldval"> |
|---|
| 518 |
<xsl:choose> |
|---|
| 519 |
<xsl:when test="form/transparency = 'TRANSPARENT'"> |
|---|
| 520 |
<input type="radio" name="editEvent.transparency" value="OPAQUE"/>yes <span class="note">(opaque: event status affects your free/busy)</span><br/> |
|---|
| 521 |
<input type="radio" name="editEvent.transparency" value="TRANSPARENT" checked="checked"/>no <span class="note">(transparent: event status does not affect your free/busy)</span> |
|---|
| 522 |
</xsl:when> |
|---|
| 523 |
<xsl:otherwise> |
|---|
| 524 |
<input type="radio" name="editEvent.transparency" value="OPAQUE" checked="checked"/>yes <span class="note">(opaque: event status affects your free/busy)</span><br/> |
|---|
| 525 |
<input type="radio" name="editEvent.transparency" value="TRANSPARENT"/>no <span class="note">(transparent: event status does not affect your free/busy)</span> |
|---|
| 526 |
</xsl:otherwise> |
|---|
| 527 |
</xsl:choose> |
|---|
| 528 |
</td> |
|---|
| 529 |
</tr>--> |
|---|
| 530 |
<xsl:if test="form/link/input/@value != ''"> |
|---|
| 531 |
<tr> |
|---|
| 532 |
<td class="fieldname">See:</td> |
|---|
| 533 |
<td class="fieldval"> |
|---|
| 534 |
<a> |
|---|
| 535 |
<xsl:attribute name="href"><xsl:value-of select="form/link/input/@value"/></xsl:attribute> |
|---|
| 536 |
<xsl:value-of select="form/link/input/@value"/> |
|---|
| 537 |
</a> |
|---|
| 538 |
</td> |
|---|
| 539 |
</tr> |
|---|
| 540 |
</xsl:if> |
|---|
| 541 |
<!-- Status --> |
|---|
| 542 |
<tr> |
|---|
| 543 |
<td class="fieldname"> |
|---|
| 544 |
Status: |
|---|
| 545 |
</td> |
|---|
| 546 |
<td class="fieldval"> |
|---|
| 547 |
<xsl:value-of select="form/status"/> |
|---|
| 548 |
</td> |
|---|
| 549 |
</tr> |
|---|
| 550 |
</table> |
|---|
| 551 |
</form> |
|---|
| 552 |
</xsl:template> |
|---|
| 553 |
|
|---|
| 554 |
|
|---|
| 555 |
</xsl:stylesheet> |
|---|