Changeset 1021

Show
Ignore:
Timestamp:
09/22/06 16:55:55
Author:
johnsa
Message:

attendee reply pages for personal client inbox

Files:

Legend:

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

    r1016 r1021  
    592592table#inbox td { 
    593593  padding: 0.2em 0.5em; 
     594  border-bottom: 1px solid #ccc; 
    594595} 
    595596table.common td.scheduleActions { 
    596597  color: black; 
    597598  background: #ddc; 
     599} 
     600table#inbox tr.publish { 
     601  background: #ddf; 
     602  color: black; 
     603} 
     604table#inbox tr.request { 
     605  background: #ffd; 
     606  color: black; 
     607} 
     608table#inbox tr.cancel { 
     609  background: #ddd; 
     610  color: black; 
     611} 
     612table#inbox tr.counter { 
     613  background: #fcc; 
     614  color: black; 
    598615} 
    599616form#subscriptions { 
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r1018 r1021  
    123123  <xsl:variable name="schedule-initAttendeeRespond" select="/bedework/urlPrefixes/schedule/initAttendeeRespond/a/@href"/> 
    124124  <xsl:variable name="schedule-attendeeRespond" select="/bedework/urlPrefixes/schedule/attendeeRespond/a/@href"/> 
     125  <xsl:variable name="schedule-initAttendeeReply" select="/bedework/urlPrefixes/schedule/initAttendeeReply/a/@href"/> 
     126  <xsl:variable name="schedule-processAttendeeReply" select="/bedework/urlPrefixes/schedule/processAttendeeReply/a/@href"/> 
    125127 
    126128  <!-- URL of the web application - includes web context 
     
    235237                    <xsl:when test="/bedework/page='attendeeRespond'"> 
    236238                      <xsl:apply-templates select="/bedework/formElements" mode="attendeeRespond"/> 
     239                    </xsl:when> 
     240                    <xsl:when test="/bedework/page='attendeeReply'"> 
     241                      <xsl:apply-templates select="/bedework/event" mode="attendeeReply"/> 
    237242                    </xsl:when> 
    238243                    <xsl:when test="/bedework/page='other'"> 
     
    38333838    <table id="inbox" class="common" cellspacing="0"> 
    38343839      <tr> 
     3840        <th class="commonHeader">from</th> 
    38353841        <th class="commonHeader">title</th> 
    38363842        <th class="commonHeader">start</th> 
     
    38543860          </xsl:attribute> 
    38553861          <td> 
    3856             <a href="{$schedule-initAttendeeRespond}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;eventName={$eventName}&amp;recurrenceId={$recurrenceId}"> 
     3862            <xsl:value-of select="from"/> 
     3863          </td> 
     3864          <td> 
     3865            <xsl:variable name="inboxItemAction"> 
     3866              <xsl:choose> 
     3867                <xsl:when test="scheduleMethod=2"><xsl:value-of select="$schedule-initAttendeeRespond"/></xsl:when> 
     3868                <xsl:when test="scheduleMethod=3"><xsl:value-of select="$schedule-initAttendeeReply"/></xsl:when> 
     3869                <xsl:otherwise><xsl:value-of select="$schedule-initAttendeeRespond"/></xsl:otherwise> 
     3870              </xsl:choose> 
     3871            </xsl:variable> 
     3872            <a href="{$inboxItemAction}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;eventName={$eventName}&amp;recurrenceId={$recurrenceId}"> 
    38573873              <xsl:value-of select="title"/> 
    38583874            </a> 
     
    43014317  </xsl:template> 
    43024318 
     4319  <xsl:template match="event" mode="attendeeReply"> 
     4320    <xsl:variable name="subscriptionId" select="subscription/id"/> 
     4321    <xsl:variable name="calPath" select="calendar/encodedPath"/> 
     4322    <xsl:variable name="guid" select="guid"/> 
     4323    <xsl:variable name="recurrenceId" select="recurrenceId"/> 
     4324    <xsl:variable name="statusClass"> 
     4325      <xsl:choose> 
     4326        <xsl:when test="status='CANCELLED'">bwStatusCancelled</xsl:when> 
     4327        <xsl:when test="status='TENTATIVE'">bwStatusTentative</xsl:when> 
     4328        <xsl:otherwise>bwStatusConfirmed</xsl:otherwise> 
     4329      </xsl:choose> 
     4330    </xsl:variable> 
     4331    <h2> 
     4332      Meeting Reply 
     4333    </h2> 
     4334    <table class="common" cellspacing="0"> 
     4335      <tr> 
     4336        <th colspan="2" class="commonHeader"> 
     4337          <div id="eventActions"> 
     4338          </div> 
     4339          Organizer: 
     4340          <xsl:choose> 
     4341            <xsl:when test="organizer/cn != ''"> 
     4342              <xsl:value-of select="organizer/cn"/> 
     4343            </xsl:when> 
     4344            <xsl:otherwise> 
     4345              <xsl:value-of select="substring-after(organizer/organizerUri,'mailto:')"/> 
     4346            </xsl:otherwise> 
     4347          </xsl:choose> 
     4348        </th> 
     4349      </tr> 
     4350      <tr> 
     4351        <td class="fieldname"> 
     4352          From: 
     4353        </td> 
     4354        <td class="fieldval scheduleActions"> 
     4355          <strong> 
     4356            <a> 
     4357              <xsl:attribute name="href"><xsl:value-of select="attendee/attendeeUri"/></xsl:attribute> 
     4358              <xsl:choose> 
     4359                <xsl:when test="cn != ''"> 
     4360                  <xsl:value-of select="cn"/> 
     4361                </xsl:when> 
     4362                <xsl:otherwise> 
     4363                  <xsl:value-of select="substring-after(attendee/attendeeUri,'mailto:')"/> 
     4364                </xsl:otherwise> 
     4365              </xsl:choose> 
     4366            </a> 
     4367          </strong> 
     4368        </td> 
     4369      </tr> 
     4370      <tr> 
     4371        <td class="fieldname"> 
     4372          Status: 
     4373        </td> 
     4374        <td class="fieldval scheduleActions"> 
     4375          <xsl:value-of select="attendee/partstat"/> 
     4376          <xsl:if test="comments/comment"> 
     4377            <p><strong>Comments:</strong></p> 
     4378            <xsl:for-each select="comment"> 
     4379              <p><xsl:value-of select="."/></p> 
     4380            </xsl:for-each> 
     4381          </xsl:if> 
     4382        </td> 
     4383      </tr> 
     4384      <tr> 
     4385        <td class="fieldname"> 
     4386          Action: 
     4387        </td> 
     4388        <td class="fieldval scheduleActions"> 
     4389          <form name="processReply" action="{$schedule-processAttendeeReply}"> 
     4390            <input type="submit" value="Accept" name="update"/> 
     4391            <input type="submit" value="Cancel" name="cancelled"/> 
     4392          </form> 
     4393        </td> 
     4394      </tr> 
     4395      <tr> 
     4396        <td class="fieldname">Title:</td> 
     4397        <td class="fieldval"> 
     4398          <strong> 
     4399            <xsl:choose> 
     4400              <xsl:when test="link != ''"> 
     4401                <xsl:variable name="link" select="link"/> 
     4402                <a href="{$link}"> 
     4403                  <xsl:value-of select="summary"/> 
     4404                </a> 
     4405              </xsl:when> 
     4406              <xsl:otherwise> 
     4407                <xsl:value-of select="summary"/> 
     4408              </xsl:otherwise> 
     4409            </xsl:choose> 
     4410          </strong> 
     4411        </td> 
     4412      </tr> 
     4413      <tr> 
     4414        <td class="fieldname">When:</td> 
     4415        <td class="fieldval"> 
     4416          <xsl:value-of select="start/dayname"/>, <xsl:value-of select="start/longdate"/><xsl:text> </xsl:text> 
     4417          <xsl:if test="start/allday = 'false'"> 
     4418            <span class="time"><xsl:value-of select="start/time"/></span> 
     4419          </xsl:if> 
     4420          <xsl:if test="(end/longdate != start/longdate) or 
     4421                        ((end/longdate = start/longdate) and (end/time != start/time))"> - </xsl:if> 
     4422          <xsl:if test="end/longdate != start/longdate"> 
     4423            <xsl:value-of select="substring(end/dayname,1,3)"/>, <xsl:value-of select="end/longdate"/><xsl:text> </xsl:text> 
     4424          </xsl:if> 
     4425          <xsl:choose> 
     4426            <xsl:when test="start/allday = 'true'"> 
     4427              <span class="time"><em>(all day)</em></span> 
     4428            </xsl:when> 
     4429            <xsl:when test="end/longdate != start/longdate"> 
     4430              <span class="time"><xsl:value-of select="end/time"/></span> 
     4431            </xsl:when> 
     4432            <xsl:when test="end/time != start/time"> 
     4433              <span class="time"><xsl:value-of select="end/time"/></span> 
     4434            </xsl:when> 
     4435          </xsl:choose> 
     4436        </td> 
     4437        <!--<th class="icon" rowspan="2"> 
     4438          <xsl:variable name="eventIcalName" select="concat($guid,'.ics')"/> 
     4439          <a href="{$export}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;skinName=ical&amp;contentType=text/calendar&amp;contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"> 
     4440            <img src="{$resourcesRoot}/resources/std-ical-icon.gif" width="20" height="26" border="0" align="left" alt="Download this event"/> 
     4441          </a> 
     4442        </th>--> 
     4443      </tr> 
     4444      <tr> 
     4445        <td class="fieldname">Where:</td> 
     4446        <td class="fieldval"> 
     4447          <xsl:choose> 
     4448            <xsl:when test="location/link=''"> 
     4449              <xsl:value-of select="location/address"/> 
     4450            </xsl:when> 
     4451            <xsl:otherwise> 
     4452              <xsl:variable name="locationLink" select="location/link"/> 
     4453              <a href="{$locationLink}"> 
     4454                <xsl:value-of select="location/address"/> 
     4455              </a> 
     4456            </xsl:otherwise> 
     4457          </xsl:choose> 
     4458          <xsl:if test="location/subaddress!=''"> 
     4459            <br/><xsl:value-of select="location/subaddress"/> 
     4460          </xsl:if> 
     4461        </td> 
     4462      </tr> 
     4463      <tr> 
     4464        <td class="fieldname">Description:</td> 
     4465        <td class="fieldval"> 
     4466          <xsl:call-template name="replace"> 
     4467            <xsl:with-param name="string" select="description"/> 
     4468            <xsl:with-param name="pattern" select="'&#xA;'"/> 
     4469            <xsl:with-param name="replacement"><br/></xsl:with-param> 
     4470          </xsl:call-template> 
     4471        </td> 
     4472      </tr> 
     4473      <xsl:if test="status !='' and status != 'CONFIRMED'"> 
     4474        <tr> 
     4475          <td class="fieldname">Status:</td> 
     4476          <td class="fieldval"> 
     4477            <xsl:value-of select="status"/> 
     4478          </td> 
     4479        </tr> 
     4480      </xsl:if> 
     4481      <tr> 
     4482        <td class="fieldname filler">&#160;</td> 
     4483        <td class="fieldval">&#160;</td> 
     4484      </tr> 
     4485    </table> 
     4486  </xsl:template> 
     4487 
    43034488  <xsl:template match="event" mode="addEventRef"> 
    43044489  <!-- The name "eventForm" is referenced by several javascript functions. Do not