Changeset 494

Show
Ignore:
Timestamp:
05/18/06 17:25:05
Author:
johnsa
Message:

personal client: some functionality in place for adding events to other users' writable calendars

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r489 r494  
    32413241        <xsl:value-of select="name"/> 
    32423242      </a> 
     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}&amp;newCalPath={$calPath}&amp;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> 
    32433253    </li> 
    32443254  </xsl:template>