Changeset 770

Show
Ignore:
Timestamp:
07/13/06 15:18:51
Author:
johnsa
Message:

freebusy aggregator: added attendee list to invitation form

Files:

Legend:

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

    r769 r770  
    724724          <table cellspacing="0"> 
    725725            <tr> 
    726               <th>Date:</th> 
     726              <th>Start date:</th> 
    727727              <td> 
    728728                <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> 
     
    730730            </tr> 
    731731            <tr> 
    732               <th>Duration:</th> 
    733               <td> 
     732              <th>Start time:</th> 
     733              <td> 
     734                <strong> 
     735                  <xsl:call-template name="timeFormatter"> 
     736                    <xsl:with-param name="timeString" select="substring(/bedework-fbaggregator/meetingStart,10,4)"/> 
     737                  </xsl:call-template> 
     738                </strong> 
     739              </td> 
     740            </tr> 
     741            <tr> 
     742              <th class="padTop">Duration:</th> 
     743              <td class="padTop"> 
    734744                <input type="text" name="meetingDuration" size="3"><xsl:attribute name="value"><xsl:value-of select="/bedework-fbaggregator/meetingDuration"/></xsl:attribute></input> minutes 
    735745              </td> 
     
    763773        <fieldset> 
    764774          <legend>attendees</legend> 
     775          <xsl:choose> 
     776            <xsl:when test="/bedework-fbaggregator/attendees/attendee"> 
     777              <table id="attendees"> 
     778                <xsl:for-each select="/bedework-fbaggregator/attendees/attendee"> 
     779                  <xsl:variable name="account" select="account"/> 
     780                  <tr> 
     781                    <td> 
     782                      <img src="{$resourcesRoot}/resources/userIcon.gif" width="13" height="13" border="0" alt="attendee"/> 
     783                    </td> 
     784                    <td> 
     785                      <xsl:if test="/bedework-fbaggregator/freebusy/who=$account"> 
     786                        <xsl:attribute name="class">selected</xsl:attribute> 
     787                      </xsl:if> 
     788                      <xsl:value-of select="account"/> 
     789                    </td> 
     790                    <!--<td> 
     791                      <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="remove"/> 
     792                    </td>--> 
     793                  </tr> 
     794                </xsl:for-each> 
     795              </table> 
     796            </xsl:when> 
     797            <xsl:otherwise> 
     798              <p id="attendees">no attendees</p> 
     799            </xsl:otherwise> 
     800          </xsl:choose> 
    765801        </fieldset> 
    766802      </form> 
     
    775811  <!--==== UTILITY TEMPLATES ====--> 
    776812 
    777   <!-- time formatter (should be extended over time) --> 
     813  <!-- time formatter (should be extended as needed) --> 
    778814  <xsl:template name="timeFormatter"> 
    779815    <xsl:param name="timeString"/><!-- required --> 
     
    801837        </xsl:choose><!-- 
    802838     --><xsl:if test="$showMinutes = 'yes'">:<xsl:value-of select="$minutes"/></xsl:if> 
     839        <xsl:if test="$showAmPm = 'yes'"> 
     840          <xsl:text> </xsl:text> 
     841          <xsl:value-of select="$AmPm"/> 
     842        </xsl:if> 
    803843      </xsl:otherwise> 
    804844    </xsl:choose>