Changeset 1127

Show
Ignore:
Timestamp:
12/08/06 14:14:54
Author:
johnsa
Message:

timezone elements, floating time, and store dates as UTC added to edit event form

Files:

Legend:

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

    r1126 r1127  
    17581758            all day event 
    17591759            <input type="checkbox" name="floating" id="floating" onclick="swapFloatingTime(this)" value="on"/> 
     1760            <xsl:if test="/bedework/formElements/form/floating/input/@checked='checked'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 
    17601761            floating 
    17611762            <input type="checkbox" name="storeUTC" id="storeUTC" onclick="swapStoreUTC(this)" value="on"/> 
     1763            <xsl:if test="/bedework/formElements/form/storeUTC/input/@checked='checked'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 
    17621764            store as UTC 
    17631765            <br/> 
     
    20622064      <xsl:call-template name="clock"/> 
    20632065    </div> 
    2064  
    2065     <!--<form name="raForm" id="recipientsAndAttendees" class="invisible"> 
    2066       <div id="recipientsAndAttendeesBox"> 
    2067         <h4 id="dialogTitle"> 
    2068           Recipients and Attendees 
    2069         </h4> 
    2070         <div id="raContent"> 
    2071           <table cellspacing="0"> 
    2072             <tr> 
    2073               <td> 
    2074                 <input name="raHolder" width="40"/> 
    2075                 <input type="button" value="add" onclick="postRecipientsAndAttendees('recipientsAndAttendees','{$event-attendeesForEvent}','{$event-showAttendeesForEvent}');"/> 
    2076                 <br/> 
    2077                 <input type="checkbox" name="recipient" value="true" checked="checked"/> recipient 
    2078                 <input type="checkbox" name="attendee" value="true" checked="checked"/> attendee 
    2079               </td> 
    2080               <td> 
    2081                 Role: 
    2082                 <select name="role"> 
    2083                   <option value="REQ-PARTICIPANT">required participant</option> 
    2084                   <option value="OPT-PARTICIPANT">optional participant</option> 
    2085                   <option value="CHAIR">chair</option> 
    2086                   <option value="NON-PARTICIPANT">non-participant</option> 
    2087                 </select><br/> 
    2088                 Status: 
    2089                 <select name="partstat"> 
    2090                   <option value="NEEDS-ACTION">needs action</option> 
    2091                   <option value="ACCEPTED">accepted</option> 
    2092                   <option value="DECLINED">declined</option> 
    2093                   <option value="TENTATIVE">tentative</option> 
    2094                   <option value="DELEGATED">delegated</option> 
    2095                 </select> 
    2096               </td> 
    2097             </tr> 
    2098           </table> 
    2099           <table cellspacing="0"> 
    2100             <tr> 
    2101               <th>Recipients</th> 
    2102               <th>Attendees</th> 
    2103             </tr> 
    2104             <tr> 
    2105               <td> 
    2106                 <div id="recipientList"> 
    2107                 </div> 
    2108               </td> 
    2109               <td> 
    2110                 <div id="attendeeList"> 
    2111                 </div> 
    2112               </td> 
    2113             </tr> 
    2114           </table> 
    2115           <input type="button" value="done" onclick="changeClass('recipientsAndAttendees','invisible');"/> 
    2116         </div> 
    2117       </div> 
    2118     </form>--> 
    21192066  </xsl:template> 
    21202067 
     
    23842331              </xsl:otherwise> 
    23852332            </xsl:choose> 
    2386             all day event<br/> 
     2333            all day event 
     2334            <input type="checkbox" name="floating" id="floating" onclick="swapFloatingTime(this)" value="on"/> 
     2335            <xsl:if test="/bedework/formElements/form/floating/input/@checked='checked'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 
     2336            floating 
     2337            <input type="checkbox" name="storeUTC" id="storeUTC" onclick="swapStoreUTC(this)" value="on"/> 
     2338            <xsl:if test="/bedework/formElements/form/storeUTC/input/@checked='checked'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 
     2339            store as UTC 
     2340            <br/> 
    23872341            <div class="dateStartEndBox"> 
    23882342              <strong>Start:</strong> 
     
    24152369                  <xsl:text> </xsl:text> 
    24162370                  <a href="javascript:bwClockLaunch('eventStartDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0"/></a> 
     2371 
     2372                  <select name="eventStartDate.tzid" id="startTzid" class="timezones"> 
     2373                    <xsl:for-each select="/bedework/timezones/timezone"> 
     2374                      <option> 
     2375                        <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> 
     2376                        <xsl:if test="/bedework/formElements/form/start/tzid = id"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> 
     2377                        <xsl:value-of select="name"/> 
     2378                      </option> 
     2379                    </xsl:for-each> 
     2380                  </select> 
    24172381                </span> 
    24182382              </div> 
     
    24632427                    <xsl:text> </xsl:text> 
    24642428                    <a href="javascript:bwClockLaunch('eventEndDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0"/></a> 
     2429 
     2430                    <select name="eventStartDate.tzid" id="endTzid" class="timezones"> 
     2431                      <xsl:for-each select="/bedework/timezones/timezone"> 
     2432                        <option> 
     2433                          <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> 
     2434                          <xsl:if test="/bedework/formElements/form/end/dateTime/tzid = id"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> 
     2435                          <xsl:value-of select="name"/> 
     2436                        </option> 
     2437                      </xsl:for-each> 
     2438                    </select> 
    24652439                  </span> 
    24662440                </div>