Changeset 1014

Show
Ignore:
Timestamp:
09/19/06 14:05:54
Author:
johnsa
Message:

beginnings of attendee response

Files:

Legend:

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

    r1012 r1014  
    559559table.common .padMe { 
    560560  padding: 1em !important; 
     561} 
     562table#inbox td { 
     563  padding: 0.2em 0.5em; 
    561564} 
    562565#bwEventCalDisplay { 
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r1012 r1014  
    121121  <xsl:variable name="showInbox" select="/bedework/urlPrefixes/schedule/showInbox/a/@href"/> 
    122122  <xsl:variable name="showOutbox" select="/bedework/urlPrefixes/schedule/showOutbox/a/@href"/> 
     123  <xsl:variable name="schedule-initAttendeeRespond" select="/bedework/urlPrefixes/schedule/initAttendeeRespond/a/@href"/> 
     124  <xsl:variable name="schedule-attendeeRespond" select="/bedework/urlPrefixes/schedule/attendeeRespond/a/@href"/> 
    123125 
    124126  <!-- URL of the web application - includes web context 
     
    231233                      <xsl:apply-templates select="/bedework/outbox"/> 
    232234                    </xsl:when> 
     235                    <xsl:when test="/bedework/page='attendeeRespond'"> 
     236                      <xsl:apply-templates select="/bedework/formElements" mode="attendeeRespond"/> 
     237                    </xsl:when> 
    233238                    <xsl:when test="/bedework/page='other'"> 
    234239                      <!-- show an arbitrary page --> 
     
    288293    <link rel="stylesheet" href="{$resourcesRoot}/default/default/subColors.css"/> 
    289294    <link rel="stylesheet" type="text/css" media="print" href="{$resourcesRoot}/default/default/print.css" /> 
     295    <script type="text/javascript" src="{$resourcesRoot}/resources/dojo-0.3.1-ajax/dojo.js"></script> 
     296    <script type="text/javascript"> 
     297      dojo.require("dojo.event.*"); 
     298      dojo.require("dojo.io.*"); 
     299      dojo.require("dojo.widget.FloatingPane"); 
     300    </script> 
    290301    <link rel="icon" type="image/ico" href="{$resourcesRoot}/resources/bedework.ico" /> 
    291302    <xsl:if test="/bedework/page='addEvent' or 
     
    295306                  /bedework/page='upload' or 
    296307                  /bedework/page='addSubByUri' or 
    297                   /bedework/page='modPrefs'"> 
     308                  /bedework/page='modPrefs' or 
     309                  /bedework/page='attendeeRespond'"> 
    298310      <script type="text/javascript" src="{$resourcesRoot}/resources/includes.js"></script> 
    299311    </xsl:if> 
     
    37993811  </xsl:template> 
    38003812 
    3801   <!--==== INBOX and OUTBOX ====--> 
     3813  <!--==== INBOX, OUTBOX, and SCHEDULING ====--> 
    38023814  <xsl:template match="inbox"> 
    38033815    <h2 class="common">Inbox</h2> 
    38043816    <table id="inbox" class="common" cellspacing="0"> 
    38053817      <tr> 
     3818        <th class="commonHeader">title</th> 
    38063819        <th class="commonHeader">start</th> 
    38073820        <th class="commonHeader">end</th> 
    38083821        <th class="commonHeader">method</th> 
    3809         <th class="commonHeader">title</th> 
    38103822        <th class="commonHeader">status</th> 
    38113823      </tr> 
    38123824      <xsl:for-each select="events/event"> 
     3825        <xsl:variable name="subscriptionId" select="subscription/id"/> 
     3826        <xsl:variable name="calPath" select="calendar/encodedPath"/> 
     3827        <xsl:variable name="guid" select="guid"/> 
     3828        <xsl:variable name="recurrenceId" select="recurrenceId"/> 
    38133829        <tr> 
    38143830          <xsl:attribute name="class"> 
     
    38203836            </xsl:choose> 
    38213837          </xsl:attribute> 
     3838          <td> 
     3839            <a href="{$schedule-initAttendeeRespond}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
     3840              <xsl:value-of select="title"/> 
     3841            </a> 
     3842          </td> 
    38223843          <td><xsl:value-of select="start/shortdate"/> <xsl:value-of select="start/time"/></td> 
    38233844          <td><xsl:value-of select="end/shortdate"/> <xsl:value-of select="end/time"/></td> 
    38243845          <td><xsl:apply-templates select="scheduleMethod"/></td> 
    3825           <td><xsl:value-of select="title"/></td> 
    38263846          <td><xsl:value-of select="requestStatus"/></td> 
    38273847        </tr> 
     
    38463866      <xsl:otherwise>unknown</xsl:otherwise> 
    38473867    </xsl:choose> 
     3868  </xsl:template> 
     3869 
     3870  <xsl:template match="formElements" mode="attendeeRespond"> 
     3871    <xsl:variable name="subscriptionId" select="subscriptionId"/> 
     3872    <xsl:variable name="calPathEncoded" select="form/calendar/encodedPath"/> 
     3873    <xsl:variable name="calPath" select="form/calendar/path"/> 
     3874    <xsl:variable name="guid" select="guid"/> 
     3875    <xsl:variable name="recurrenceId" select="recurrenceId"/> 
     3876    <!-- The name "eventForm" is referenced by several javascript functions. Do not 
     3877    change it without modifying includes.js --> 
     3878    <form name="eventForm" method="post" action="{$schedule-attendeeRespond}" id="standardForm"> 
     3879      <input type="hidden" name="updateEvent" value="true"/> 
     3880      <input type="hidden" name="confirmationid" value="{$confId}"/> 
     3881      <input type="hidden" name="endType" value="date"/> 
     3882      <h2>Meeting Request</h2> 
     3883      <table class="common" cellspacing="0"> 
     3884        <tr> 
     3885          <th colspan="2" class="commonHeader"> 
     3886            <div id="eventActions"> 
     3887 
     3888            </div> 
     3889            Organizer: 
     3890          </th> 
     3891        </tr> 
     3892        <tr> 
     3893          <td class="fieldname"> 
     3894            Title: 
     3895          </td> 
     3896          <td class="fieldval"> 
     3897            <xsl:value-of select="form/title/input/@value"/> 
     3898          </td> 
     3899        </tr> 
     3900        <!--  Description  --> 
     3901        <tr> 
     3902          <td class="fieldname">Description:</td> 
     3903          <td class="fieldval"> 
     3904            <xsl:value-of select="/bedework/formElements/form/desc/textarea"/> 
     3905          </td> 
     3906        </tr> 
     3907        <tr> 
     3908          <td class="fieldname"> 
     3909            Calendar: 
     3910          </td> 
     3911          <td class="fieldval"> 
     3912            <xsl:variable name="newCalPath" select="/bedework/formElements/form/calendar/path"/> 
     3913            <input type="hidden" name="newCalPath" value="{$newCalPath}"/> 
     3914            <xsl:variable name="userPath">user/<xsl:value-of select="/bedework/userid"/>/</xsl:variable> 
     3915            <span id="bwEventCalDisplay"> 
     3916              <xsl:choose> 
     3917                <xsl:when test="contains(/bedework/formElements/form/calendar/path,$userPath)"> 
     3918                  <xsl:value-of select="substring-after(/bedework/formElements/form/calendar/path,$userPath)"/> 
     3919                </xsl:when> 
     3920                <xsl:otherwise> 
     3921                  <xsl:value-of select="/bedework/formElements/form/calendar/path"/> 
     3922                </xsl:otherwise> 
     3923              </xsl:choose> 
     3924            </span> 
     3925            <a href="javascript:launchCalSelectWindow('{$event-selectCalForEvent}')" class="small">[set calendar]</a> 
     3926          </td> 
     3927        </tr> 
     3928        <tr> 
     3929          <td class="fieldname"> 
     3930            Date &amp; Time: 
     3931          </td> 
     3932          <td class="fieldval"> 
     3933            <div class="scheduleDisplayEventInfo"> 
     3934 
     3935            </div> 
     3936            <div id="scheduleEditEventInfo"> 
     3937              <!-- Set the timefields class for the first load of the page; 
     3938                   subsequent changes will take place using javascript without a 
     3939                   page reload. --> 
     3940              <xsl:variable name="timeFieldsClass"> 
     3941                <xsl:choose> 
     3942                  <xsl:when test="form/allDay/input/@checked='checked'">invisible</xsl:when> 
     3943                  <xsl:otherwise>timeFields</xsl:otherwise> 
     3944                </xsl:choose> 
     3945              </xsl:variable> 
     3946              <xsl:choose> 
     3947                <xsl:when test="form/allDay/input/@checked='checked'"> 
     3948                  <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="on" checked="checked"/> 
     3949                  <input type="hidden" name="eventStartDate.dateOnly" value="on" id="allDayStartDateField"/> 
     3950                  <input type="hidden" name="eventEndDate.dateOnly" value="on" id="allDayEndDateField"/> 
     3951                </xsl:when> 
     3952                <xsl:otherwise> 
     3953                  <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="off"/> 
     3954                  <input type="hidden" name="eventStartDate.dateOnly" value="off" id="allDayStartDateField"/> 
     3955                  <input type="hidden" name="eventEndDate.dateOnly" value="off" id="allDayEndDateField"/> 
     3956                </xsl:otherwise> 
     3957              </xsl:choose> 
     3958              all day event<br/> 
     3959              <div class="dateStartEndBox"> 
     3960                <strong>Start:</strong> 
     3961                <div class="dateFields"> 
     3962                  <span class="startDateLabel">Date </span> 
     3963                  <xsl:copy-of select="form/start/month/*"/> 
     3964                  <xsl:copy-of select="form/start/day/*"/> 
     3965                  <xsl:choose> 
     3966                    <xsl:when test="/bedework/creating = 'true'"> 
     3967                      <xsl:copy-of select="form/start/year/*"/> 
     3968                    </xsl:when> 
     3969                    <xsl:otherwise> 
     3970                      <xsl:copy-of select="form/start/yearText/*"/> 
     3971                    </xsl:otherwise> 
     3972                  </xsl:choose> 
     3973                </div> 
     3974                <script language="JavaScript" type="text/javascript"> 
     3975                <xsl:comment> 
     3976                  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'); 
     3977                </xsl:comment> 
     3978                </script> 
     3979                <!--<img src="{$resourcesRoot}/resources/calIcon.gif" width="16" height="15" border="0"/>--> 
     3980                <div class="{$timeFieldsClass}" id="startTimeFields"> 
     3981                  <span id="calWidgetStartTimeHider" class="show"> 
     3982                    <xsl:copy-of select="form/start/hour/*"/> 
     3983                    <xsl:copy-of select="form/start/minute/*"/> 
     3984                    <xsl:if test="form/start/ampm"> 
     3985                      <xsl:copy-of select="form/start/ampm/*"/> 
     3986                    </xsl:if> 
     3987                    <xsl:text> </xsl:text> 
     3988                    <a href="javascript:bwClockLaunch('eventStartDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0"/></a> 
     3989                  </span> 
     3990                </div> 
     3991              </div> 
     3992              <div class="dateStartEndBox"> 
     3993                <strong>End:</strong> 
     3994                <xsl:choose> 
     3995                  <xsl:when test="form/end/type='E'"> 
     3996                    <input type="radio" name="eventEndType" value="E" checked="checked" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> 
     3997                  </xsl:when> 
     3998                  <xsl:otherwise> 
     3999                    <input type="radio" name="eventEndType" value="E" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> 
     4000                  </xsl:otherwise> 
     4001                </xsl:choose> 
     4002                Date 
     4003                <xsl:variable name="endDateTimeClass"> 
     4004                  <xsl:choose> 
     4005                    <xsl:when test="form/end/type='E'">shown</xsl:when> 
     4006                    <xsl:otherwise>invisible</xsl:otherwise> 
     4007                  </xsl:choose> 
     4008                </xsl:variable> 
     4009                <div class="{$endDateTimeClass}" id="endDateTime"> 
     4010                  <div class="dateFields"> 
     4011                    <xsl:copy-of select="form/end/dateTime/month/*"/> 
     4012                    <xsl:copy-of select="form/end/dateTime/day/*"/> 
     4013                    <xsl:choose> 
     4014                      <xsl:when test="/bedework/creating = 'true'"> 
     4015                        <xsl:copy-of select="form/end/dateTime/year/*"/> 
     4016                      </xsl:when> 
     4017                      <xsl:otherwise> 
     4018                        <xsl:copy-of select="form/end/dateTime/yearText/*"/> 
     4019                      </xsl:otherwise> 
     4020                    </xsl:choose> 
     4021                  </div> 
     4022                  <script language="JavaScript" type="text/javascript"> 
     4023                  <xsl:comment> 
     4024                    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'); 
     4025                  </xsl:comment> 
     4026                  </script> 
     4027                  <!--<img src="{$resourcesRoot}/resources/calIcon.gif" width="16" height="15" border="0"/>--> 
     4028                  <div class="{$timeFieldsClass}" id="endTimeFields"> 
     4029                    <span id="calWidgetEndTimeHider" class="show"> 
     4030                      <xsl:copy-of select="form/end/dateTime/hour/*"/> 
     4031                      <xsl:copy-of select="form/end/dateTime/minute/*"/> 
     4032                      <xsl:if test="form/end/dateTime/ampm"> 
     4033                        <xsl:copy-of select="form/end/dateTime/ampm/*"/> 
     4034                      </xsl:if> 
     4035                      <xsl:text> </xsl:text> 
     4036                      <a href="javascript:bwClockLaunch('eventEndDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0"/></a> 
     4037                    </span> 
     4038                  </div> 
     4039                </div><br/> 
     4040                <div id="clock" class="invisible"> 
     4041                  <xsl:call-template name="clock"/> 
     4042                </div> 
     4043                <div class="dateFields"> 
     4044                  <xsl:choose> 
     4045                    <xsl:when test="form/end/type='D'"> 
     4046                      <input type="radio" name="eventEndType" value="D" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 
     4047                    </xsl:when> 
     4048                    <xsl:otherwise> 
     4049                      <input type="radio" name="eventEndType" value="D" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 
     4050                    </xsl:otherwise> 
     4051                  </xsl:choose> 
     4052                  Duration 
     4053                  <xsl:variable name="endDurationClass"> 
     4054                    <xsl:choose> 
     4055                      <xsl:when test="form/end/type='D'">shown</xsl:when> 
     4056                      <xsl:otherwise>invisible</xsl:otherwise> 
     4057                    </xsl:choose> 
     4058                  </xsl:variable> 
     4059                  <xsl:variable name="durationHrMinClass"> 
     4060                    <xsl:choose> 
     4061                      <xsl:when test="form/allDay/input/@checked='checked'">invisible</xsl:when> 
     4062                      <xsl:otherwise>shown</xsl:otherwise> 
     4063                    </xsl:choose> 
     4064                  </xsl:variable> 
     4065                  <div class="{$endDurationClass}" id="endDuration"> 
     4066                    <xsl:choose> 
     4067                      <xsl:when test="form/end/duration/weeks/input/@value = '0'"> 
     4068                      <!-- we are using day, hour, minute format --> 
     4069                      <!-- must send either no week value or week value of 0 (zero) --> 
     4070                        <div class="durationBox"> 
     4071                          <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')" checked="checked"/> 
     4072                          <xsl:variable name="daysStr" select="form/end/duration/days/input/@value"/> 
     4073                          <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays"/>days 
     4074                          <span id="durationHrMin" class="{$durationHrMinClass}"> 
     4075                            <xsl:variable name="hoursStr" select="form/end/duration/hours/input/@value"/> 
     4076                            <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours"/>hours 
     4077                            <xsl:variable name="minutesStr" select="form/end/duration/minutes/input/@value"/> 
     4078                            <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes"/>minutes 
     4079                          </span> 
     4080                        </div> 
     4081                        <span class="durationSpacerText">or</span> 
     4082                        <div class="durationBox"> 
     4083                          <input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')"/> 
     4084                          <xsl:variable name="weeksStr" select="form/end/duration/weeks/input/@value"/> 
     4085                          <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks" disabled="true"/>weeks 
     4086                        </div> 
     4087                      </xsl:when> 
     4088                      <xsl:otherwise> 
     4089                        <!-- we are using week format --> 
     4090                        <div class="durationBox"> 
     4091                          <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')"/> 
     4092                          <xsl:variable name="daysStr" select="form/end/duration/days/input/@value"/> 
     4093                          <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays" disabled="true"/>days 
     4094                          <span id="durationHrMin" class="{$durationHrMinClass}"> 
     4095                            <xsl:variable name="hoursStr" select="form/end/duration/hours/input/@value"/> 
     4096                            <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours" disabled="true"/>hours 
     4097                            <xsl:variable name="minutesStr" select="form/end/duration/minutes/input/@value"/> 
     4098                            <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes" disabled="true"/>minutes 
     4099                          </span> 
     4100                        </div> 
     4101                        <span class="durationSpacerText">or</span> 
     4102                        <div class="durationBox"> 
     4103                          <input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')" checked="checked"/> 
     4104                          <xsl:variable name="weeksStr" select="form/end/duration/weeks/input/@value"/> 
     4105                          <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks"/>weeks 
     4106                        </div> 
     4107                      </xsl:otherwise> 
     4108                    </xsl:choose> 
     4109                  </div> 
     4110                </div><br/> 
     4111                <div class="dateFields" id="noDuration"> 
     4112                  <xsl:choose> 
     4113                    <xsl:when test="form/end/type='N'"> 
     4114                      <input type="radio" name="eventEndType" value="N" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 
     4115                    </xsl:when> 
     4116                    <xsl:otherwise> 
     4117                      <input type="radio" name="eventEndType" value="N" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 
     4118                    </xsl:otherwise> 
     4119                  </xsl:choose> 
     4120                  This event has no duration / end date 
     4121                </div> 
     4122              </div> 
     4123            </div> 
     4124          </td> 
     4125        </tr> 
     4126        <!--  Status  --> 
     4127        <tr> 
     4128          <td class="fieldname"> 
     4129            Status: 
     4130          </td> 
     4131          <td class="fieldval"> 
     4132            <xsl:value-of select="form/status"/> 
     4133          </td> 
     4134        </tr> 
     4135        <tr> 
     4136          <td class="fieldname">Location:</td> 
     4137          <td class="fieldval" align="left"> 
     4138            <div id="scheduleDisplayEventInfo"> 
     4139              <xsl:value-of select="/bedework/formElements/form/location/locationmenu/select/option[@selected='selected']"/> 
     4140            </div> 
     4141            <div id="scheduleEditEventInfo"> 
     4142              <span class="std-text">choose: </span> 
     4143              <span id="eventFormLocationList"> 
     4144                <select name="eventLocationId"> 
     4145                  <option value="-1">select...</option> 
     4146                  <xsl:copy-of select="/bedework/formElements/form/location/locationmenu/select/*"/> 
     4147                </select> 
     4148              </span> 
     4149              <span class="std-text"> or add new: </span> 
     4150              <input type="text" name="laddress" value="" /> 
     4151            </div> 
     4152          </td> 
     4153        </tr> 
     4154        <!--  Transparency  --> 
     4155        <!-- 
     4156        <tr> 
     4157          <td class="fieldname"> 
     4158            Effects free/busy: 
     4159          </td> 
     4160          <td class="fieldval"> 
     4161            <xsl:choose> 
     4162              <xsl:when test="form/transparency = 'TRANSPARENT'"> 
     4163                <input type="radio" name="editEvent.transparency" value="OPAQUE"/>yes <span class="note">(opaque: event status affects your free/busy)</span><br/> 
     4164                <input type="radio" name="editEvent.transparency" value="TRANSPARENT" checked="checked"/>no <span class="note">(transparent: event status does not affect your free/busy)</span> 
     4165              </xsl:when> 
     4166              <xsl:otherwise> 
     4167                <input type="radio" name="editEvent.transparency" value="OPAQUE" checked="checked"/>yes <span class="note">(opaque: event status affects your free/busy)</span><br/> 
     4168                <input type="radio" name="editEvent.transparency" value="TRANSPARENT"/>no <span class="note">(transparent: event status does not affect your free/busy)</span> 
     4169              </xsl:otherwise> 
     4170            </xsl:choose> 
     4171          </td> 
     4172        </tr>--> 
     4173        <xsl:if test="form/link/input/@value != ''"> 
     4174          <tr> 
     4175            <td class="fieldname">See:</td> 
     4176            <td class="fieldval"> 
     4177              <a> 
     4178                <xsl:attribute name="href"><xsl:value-of select="form/link/input/@value"/></xsl:attribute> 
     4179                <xsl:value-of select="form/link/input/@value"/> 
     4180              </a> 
     4181            </td> 
     4182          </tr> 
     4183        </xsl:if> 
     4184        <tr> 
     4185          <td class="fieldname">Action:</td> 
     4186          <td class="fieldval"> 
     4187            <input type="radio" name="method" value="reply" checked="checked"/>reply as 
     4188            <select name="partstat"> 
     4189              <option value="ACCEPTED">accepted</option> 
     4190              <option value="DECLINED">declined</option> 
     4191              <option value="TENTATIVE">tentative</option> 
     4192            </select><br/> 
     4193            <input type="radio" name="method" value="refresh"/>refresh this event<br/> 
     4194            <input type="radio" name="method" value="delegate"/>delegate to 
     4195            <input type="test" name="delegate" value=""/> (uri or account)<br/> 
     4196            <input type="radio" name="method" value="counter"/>counter (suggest a different date, time, and/or location) 
     4197          </td> 
     4198        </tr> 
     4199        <tr> 
     4200          <td class="fieldname">Comment:</td> 
     4201          <td class="fieldval"> 
     4202            <textarea name="comment" cols="60" rows="4"> 
     4203            </textarea> 
     4204          </td> 
     4205        </tr> 
     4206        <tr> 
     4207          <td class="fieldname">&#160;</td> 
     4208          <td class="fieldval"> 
     4209            <input name="submit" type="submit" value="Submit"/>&#160; 
     4210            <input name="cancelled" type="submit" value="Cancel"/> 
     4211          </td> 
     4212        </tr> 
     4213      </table> 
     4214    </form> 
     4215  </xsl:template> 
     4216 
     4217  <xsl:template match="event" mode="addEventRef"> 
     4218  <!-- The name "eventForm" is referenced by several javascript functions. Do not 
     4219    change it without modifying includes.js --> 
     4220    <form name="eventForm" method="post" action="{$event-addEventRefComplete}" id="standardForm"  enctype="multipart/form-data"> 
     4221      <xsl:variable name="subscriptionId" select="subscription/id"/> 
     4222      <xsl:variable name="calPath" select="calendar/path"/> 
     4223      <xsl:variable name="guid" select="guid"/> 
     4224      <xsl:variable name="recurrenceId" select="recurrenceId"/> 
     4225      <input type="hidden" name="subid" value="{$subscriptionId}"/> 
     4226      <input type="hidden" name="calPath" value="{$calPath}"/> 
     4227      <input type="hidden" name="guid" value="{$guid}"/> 
     4228      <input type="hidden" name="recurrenceId" value="{$recurrenceId}"/> 
     4229      <!-- newCalPath is the path to the calendar in which the reference 
     4230           should be placed.  If no value, then default calendar. --> 
     4231      <input type="hidden" name="newCalPath" value=""/> 
     4232 
     4233      <h2>Add Event Reference</h2> 
     4234      <table class="common" cellspacing="0"> 
     4235        <tr> 
     4236          <td class="fieldname"> 
     4237            Event: 
     4238          </td> 
     4239          <td> 
     4240            <xsl:value-of select="summary"/> 
     4241          </td> 
     4242        </tr> 
     4243        <tr> 
     4244          <td class="fieldname"> 
     4245            Into calendar: 
     4246          </td> 
     4247          <td align="left"> 
     4248            <span id="bwEventCalDisplay"> 
     4249              <em>default calendar</em> 
     4250            </span> 
     4251            <a href="javascript:launchCalSelectWindow('{$event-selectCalForEvent}')" class="small">[change]</a> 
     4252          </td> 
     4253        </tr> 
     4254        <tr> 
     4255          <td class="fieldname"> 
     4256            Affects Free/busy: 
     4257          </td> 
     4258          <td align="left"> 
     4259            <input type="radio" value="OPAQUE" name="transparency"/> yes <span class="note">(opaque: event status affects your free/busy)</span><br/> 
     4260            <input type="radio" value="TRANSPARENT" name="transparency" checked="checked"/> no <span class="note">(transparent: event status does not affect your free/busy)</span> 
     4261          </td> 
     4262        </tr> 
     4263      </table> 
     4264      <table border="0" id="submitTable"> 
     4265        <tr> 
     4266          <td> 
     4267            <input name="submit" type="submit" value="Continue"/> 
     4268            <input name="cancelled" type="submit" value="Cancel"/> 
     4269          </td> 
     4270        </tr> 
     4271      </table> 
     4272    </form> 
    38484273  </xsl:template> 
    38494274