| | 3243 | <xsl:if test="calendars/calendar/calendarCollection='true' and |
|---|
| | 3244 | calendars/calendar/currentAccess/current-user-privilege-set/privilege/write-content"> |
|---|
| | 3245 | <!-- set the start date for adding an event to the first day of the |
|---|
| | 3246 | given period, the hour of "now", and give a duration of 60 minutes --> |
|---|
| | 3247 | <xsl:variable name="calPath" select="calendars/calendar/encodedPath"/> |
|---|
| | 3248 | <xsl:variable name="startDate"><xsl:value-of select="/bedework/firstday/date"/>T<xsl:value-of select="substring(/bedework/now/time,1,2)"/>0000</xsl:variable> |
|---|
| | 3249 | <a href="{$initEvent}?startdate={$startDate}&newCalPath={$calPath}&minutes=60" class="calendarAdd" title="add event"> |
|---|
| | 3250 | <img src="{$resourcesRoot}/resources/addEvent-forCals-icon.gif" width="9" height="12" border="0" alt="add event"/> |
|---|
| | 3251 | </a> |
|---|
| | 3252 | </xsl:if> |
|---|