Changeset 334

Show
Ignore:
Timestamp:
04/05/06 16:32:28
Author:
johnsa
Message:

personal client events now reflect public, personal, and public from subscription; this is temporary until we allow annotations.

Files:

Legend:

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

    r332 r334  
    727727    <xsl:variable name="recurrenceId" select="recurrenceId"/> 
    728728    <xsl:choose> 
    729       <xsl:when test="kind='0'"> 
     729      <xsl:when test="isAnnotation"> 
     730        <xsl:choose> 
     731          <xsl:when test="recurring=true"> 
     732            <a href="{$delEvent}?subid={$subscriptionId}&amp;calid={$calendarId}&amp;guid={$guid}&amp;confirmationid={$confId}">Remove All</a> 
     733          </xsl:when> 
     734          <xsl:otherwise> 
     735            <a href="{$delEvent}?subid={$subscriptionId}&amp;calid={$calendarId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;confirmationid={$confId}">Remove</a> 
     736          </xsl:otherwise> 
     737        </xsl:choose> 
     738      </xsl:when> 
     739      <xsl:when test="calendar/owner = /bedework/userid"> 
    730740        <a href="{$editEvent}?subid={$subscriptionId}&amp;calid={$calendarId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">Edit</a> | 
    731741        <xsl:choose> 
     
    738748        </xsl:choose> 
    739749      </xsl:when> 
    740       <xsl:when test="kind='1'"> 
    741         <xsl:choose> 
    742           <xsl:when test="recurring=true"> 
    743             <a href="{$delEvent}?subid={$subscriptionId}&amp;calid={$calendarId}&amp;guid={$guid}&amp;confirmationid={$confId}">Remove All</a> 
    744           </xsl:when> 
    745           <xsl:otherwise> 
    746             <a href="{$delEvent}?subid={$subscriptionId}&amp;calid={$calendarId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;confirmationid={$confId}">Remove</a> 
    747           </xsl:otherwise> 
    748         </xsl:choose> 
    749       </xsl:when> 
    750750      <xsl:otherwise> 
    751         <a href="{$fetchPublicCalendars}">Subscription</a> 
     751        <a href="{$subscriptions-fetch}">Subscription</a> 
    752752      </xsl:otherwise> 
    753753    </xsl:choose> 
     
    864864          Type: 
    865865          <xsl:choose> 
    866             <xsl:when test="kind='0'"> 
     866            <xsl:when test="isAnnotation"> 
     867              public event 
     868            </xsl:when> 
     869            <xsl:when test="calendar/owner = /bedework/userid"> 
    867870              personal event, editable 
    868             </xsl:when> 
    869             <xsl:when test="kind='1'"> 
    870               public event 
    871871            </xsl:when> 
    872872            <xsl:otherwise> 
     
    10171017          <div id="eventActions"> 
    10181018            <xsl:choose> 
    1019               <xsl:when test="kind='0'"> 
     1019              <xsl:when test="isAnnotation"> 
     1020                <xsl:choose> 
     1021                  <xsl:when test="recurring=true"> 
     1022                    <a href="{$delEvent}?subid={$subscriptionId}&amp;calid={$calendarId}&amp;guid={$guid}&amp;confirmationid={$confId}"> 
     1023                      Remove All (recurring) 
     1024                    </a> 
     1025                  </xsl:when> 
     1026                  <xsl:otherwise> 
     1027                    <a href="{$delEvent}?subid={$subscriptionId}&amp;calid={$calendarId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;confirmationid={$confId}"> 
     1028                      Remove 
     1029                    </a> 
     1030                  </xsl:otherwise> 
     1031                </xsl:choose> 
     1032              </xsl:when> 
     1033              <xsl:when test="calendar/owner = /bedework/userid"> 
    10201034                <a href="{$editEvent}?subid={$subscriptionId}&amp;calid={$calendarId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;confirmationid={$confId}"> 
    10211035                  Edit Event 
     
    10341048                </xsl:choose> 
    10351049              </xsl:when> 
    1036               <xsl:when test="kind='1'"> 
    1037                 <xsl:choose> 
    1038                   <xsl:when test="recurring=true"> 
    1039                     <a href="{$delEvent}?subid={$subscriptionId}&amp;calid={$calendarId}&amp;guid={$guid}&amp;confirmationid={$confId}"> 
    1040                       Remove All (recurring) 
    1041                     </a> 
    1042                   </xsl:when> 
    1043                   <xsl:otherwise> 
    1044                     <a href="{$delEvent}?subid={$subscriptionId}&amp;calid={$calendarId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;confirmationid={$confId}"> 
    1045                       Remove 
    1046                     </a> 
    1047                   </xsl:otherwise> 
    1048                 </xsl:choose> 
    1049               </xsl:when> 
    10501050              <xsl:otherwise> 
    10511051                <a href="{$subscriptions-fetch}"> 
     
    10561056          </div> 
    10571057          <xsl:choose> 
    1058             <xsl:when test="calendar/owner = /bedework/user"> 
     1058            <xsl:when test="isAnnotation"> 
     1059              Public Event 
     1060            </xsl:when> 
     1061            <xsl:when test="calendar/owner = /bedework/userid"> 
    10591062              Personal Event 
    10601063            </xsl:when> 
    10611064            <xsl:otherwise> 
    1062               Public Event 
     1065              Public Event from Subscription 
    10631066            </xsl:otherwise> 
    10641067          </xsl:choose> 
  • trunk/calendar3/webclient/war/docs/event/emitEvent.jsp

    r313 r334  
    4545    <editable><bean:write name="eventInfo" property="editable"/></editable><%-- 
    4646      Value: true,false - true if user can edit (and delete) event, false otherwise --%> 
     47    <logic:present  name="event" property="target"> 
     48      <isAnnotation/> 
     49    </logic:present> 
    4750    <kind><bean:write name="eventInfo" property="kind"/></kind><%-- 
    4851      Value: 0 - actual event entry