Changeset 769

Show
Ignore:
Timestamp:
07/13/06 15:04:42
Author:
johnsa
Message:

freebusy aggregator: invitation form

Files:

Legend:

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

    r758 r769  
    360360  color: black; 
    361361} 
    362 #modAttendee th { 
     362#commonForm th { 
    363363  font-weight: normal; 
    364364  text-align: right; 
     365  vertical-align: top; 
     366} 
     367fieldset { 
     368  margin-top: 2em; 
    365369} 
    366370#footer { 
     
    400404  text-align: right; 
    401405} 
     406.padTop { 
     407  padding-top: 0.5em; 
     408} 
    402409/* Header IDs and classes */ 
    403410#errors { 
  • trunk/calendar3/deployment/freebusyAggregator/webapp/resources/demoskins/MainCampus/default/default/default.xsl

    r762 r769  
    7676  <xsl:variable name="editUser" select="/bedework-fbaggregator/urlPrefixes/editUser"/> 
    7777  <xsl:variable name="addUser" select="/bedework-fbaggregator/urlPrefixes/addUser"/> 
    78  
     78  <xsl:variable name="initInvitation" select="/bedework-fbaggregator/urlPrefixes/initInvitation"/> 
    7979 
    8080  <!-- URL of the web application - includes web context 
     
    133133          <xsl:when test="/bedework-fbaggregator/page='addUser'"> 
    134134            <xsl:call-template name="addUser"/> 
     135          </xsl:when> 
     136          <xsl:when test="/bedework-fbaggregator/page='invitation'"> 
     137            <xsl:call-template name="invitation"/> 
    135138          </xsl:when> 
    136139          <xsl:when test="/bedework-fbaggregator/page='timeZones'"> 
     
    327330                          <xsl:variable name="startTime" select="start"/> 
    328331                          <!-- the start date for the add event link is a concat of the day's date plus the period's time (+ seconds)--> 
    329                           <xsl:variable name="startDate"><xsl:value-of select="substring(../start,1,8)"/>T<xsl:value-of select="start"/>00</xsl:variable> 
    330                           <xsl:variable name="minutes" select="length"/> 
    331                           <xsl:variable name="fbClass"
    332                             <xsl:choose
    333                               <xsl:when test="fbtype = '0'">busy</xsl:when
    334                               <xsl:when test="fbtype = '3'">tentative</xsl:when> 
    335                               <xsl:otherwise>free</xsl:otherwise
    336                             </xsl:choose> 
    337                           </xsl:variable> 
    338                           <td class="{$fbClass}"
    339                             <a href="/ucal/initEvent.do?startdate={$startDate}&amp;minutes={$minutes}" title="{$startTime}"> 
     332                          <xsl:variable name="startDate"><xsl:value-of select="../dateString"/>T<xsl:value-of select="start"/>00</xsl:variable> 
     333                          <xsl:variable name="meetingDuration" select="length"/> 
     334                          <td
     335                            <xsl:attribute name="class"
     336                              <xsl:choose
     337                                <xsl:when test="fbtype = '0'">busy</xsl:when> 
     338                                <xsl:when test="fbtype = '3'">tentative</xsl:when
     339                                <xsl:otherwise>free</xsl:otherwise> 
     340                              </xsl:choose> 
     341                            </xsl:attribute
     342                            <a href="{$initInvitation}&amp;meetingStartdt={$startDate}&amp;meetingDuration={$meetingDuration}" title="{$startTime}"> 
    340343                              <xsl:choose> 
    341344                                <xsl:when test="((numBusy &gt; 0) and (numBusy &lt; 9)) or ((numTentative &gt; 0) and (numTentative &lt; 9)) and (number(numBusy) + number(numTentative) &lt; 9)"> 
     
    602605      <h2>Register a New User</h2> 
    603606      <form action="{$addUser}" method="post"> 
    604         <fieldset id="modAttendee"> 
     607        <fieldset id="commonForm"> 
    605608          <legend>Add user:</legend> 
    606609          <table cellspacing="0"> 
     
    686689            </tr> 
    687690            <tr> 
     691              <th>Depth:</th> 
     692              <td> 
     693                <select name="depth"> 
     694                  <option value="0">0</option> 
     695                  <option value="1">1</option> 
     696                  <option value="infinity">infinity</option> 
     697                </select> 
     698              </td> 
     699            </tr> 
     700            <tr> 
    688701              <th></th> 
    689702              <td> 
     
    693706            </tr> 
    694707          </table> 
     708        </fieldset> 
     709      </form> 
     710    </div> 
     711  </xsl:template> 
     712 
     713  <xsl:template name="invitation"> 
     714    <div id="content"> 
     715      <h2>Send Meeting Invitation</h2> 
     716      <form action="" method="post"> 
     717        <!--<p> 
     718          <input type="submit" value="send invitation" name="submit"/> 
     719          <xsl:text> </xsl:text> 
     720          <input type="submit" value="cancel" name="cancelled"/> 
     721        </p>--> 
     722        <fieldset id="commonForm"> 
     723          <legend>meeting information</legend> 
     724          <table cellspacing="0"> 
     725            <tr> 
     726              <th>Date:</th> 
     727              <td> 
     728                <strong><xsl:value-of select="substring(/bedework-fbaggregator/meetingStart,1,4)"/>-<xsl:value-of select="substring(/bedework-fbaggregator/meetingStart,5,2)"/>-<xsl:value-of select="substring(/bedework-fbaggregator/meetingStart,7,2)"/></strong> 
     729              </td> 
     730            </tr> 
     731            <tr> 
     732              <th>Duration:</th> 
     733              <td> 
     734                <input type="text" name="meetingDuration" size="3"><xsl:attribute name="value"><xsl:value-of select="/bedework-fbaggregator/meetingDuration"/></xsl:attribute></input> minutes 
     735              </td> 
     736            </tr> 
     737            <tr> 
     738              <th>Summary:</th> 
     739              <td><input type="text" name="summary" size="90"/></td> 
     740            </tr> 
     741            <tr> 
     742              <th>Description:</th> 
     743              <td><textarea name="description" rows="6" cols="70"></textarea></td> 
     744            </tr> 
     745            <tr> 
     746              <th>Location:</th> 
     747              <td><input type="text" name="location" size="90"/></td> 
     748            </tr> 
     749            <tr> 
     750              <th>URL:</th> 
     751              <td><input type="text" name="url" size="90"/></td> 
     752            </tr> 
     753            <tr> 
     754              <th></th> 
     755              <td class="padTop"> 
     756                <input type="submit" value="send invitation" name="submit"/> 
     757                <xsl:text> </xsl:text> 
     758                <input type="submit" value="cancel" name="cancelled"/> 
     759              </td> 
     760            </tr> 
     761          </table> 
     762        </fieldset> 
     763        <fieldset> 
     764          <legend>attendees</legend> 
    695765        </fieldset> 
    696766      </form>