Changeset 381

Show
Ignore:
Timestamp:
04/19/06 10:13:22
Author:
johnsa
Message:

rudimentary free/busy display is in place; temporarily commented out calendar selection jsp in edit and add event for personal client.

Files:

Legend:

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

    r371 r381  
    949949  font-size: 0.8em; 
    950950  font-style: italic; 
     951} 
     952#freeBusy { 
     953  margin: 1em; 
     954} 
     955#freeBusy td { 
     956  vertical-align: center; 
     957  text-align: center; 
     958  padding: 0; 
     959  margin: 0; 
     960} 
     961#freeBusy th { 
     962  vertical-align: center; 
     963  text-align: center; 
     964  font-size: 0.8em; 
     965  font-weight: normal; 
     966  padding: 4px; 
     967  margin: 0; 
     968} 
     969#freeBusy th.date, 
     970#freeBusy th.time { 
     971  font-weight: bold; 
     972} 
     973#freeBusy td.free { 
     974  color: #A3BAEA; 
     975  background-color: #A3BAEA; 
     976} 
     977#freeBusy td.busy { 
     978  color: #eee; 
     979  background-color: #eee; 
     980} 
     981#freeBusy td.free a { 
     982  color: #A3BAEA; 
     983  background-color: transparent; 
     984  display: block; 
     985  padding: 10px; 
     986  text-decoration: none; 
     987} 
     988#freeBusy td.busy a { 
     989  color: #eee; 
     990  background-color: transparent; 
     991  display: block; 
     992  padding: 10px; 
     993  text-decoration: none; 
     994} 
     995#freeBusy td.busy a:hover, 
     996#freeBusy td.free a:hover { 
     997  color: black; 
     998  background-color: yellow; 
     999  text-decoration: none; 
    9511000} 
    9521001/* Footer */ 
  • trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r380 r381  
    5858  <xsl:variable name="initUpload" select="/bedework/urlPrefixes/initUpload"/> 
    5959  <xsl:variable name="upload" select="/bedework/urlPrefixes/upload"/> 
     60  <xsl:variable name="getFreeBusy" select="/bedework/urlPrefixes/getFreeBusy/a/@href"/> 
    6061  <!-- calendars --> 
    6162  <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/fetchPublicCalendars"/> 
     
    155156                  <xsl:apply-templates select="/bedework/calendars"/> 
    156157                </xsl:when> 
    157                 <!--deprecated: <xsl:when test="/bedework/page='calendars'"> 
    158                   <xsl:apply-templates select="/bedework/calendars"/> 
    159                 </xsl:when>--> 
     158                <xsl:when test="/bedework/page='freeBusy'"> 
     159                  <xsl:apply-templates select="/bedework/freebusy"/> 
     160                </xsl:when> 
    160161                <xsl:when test="/bedework/page='other'"> 
    161162                  <!-- show an arbitrary page --> 
     
    333334    <h3>options</h3> 
    334335    <ul id="sideBarMenu"> 
     336      <li><a href="{$getFreeBusy}">Show Free/Busy</a></li> 
    335337      <li><a href="{$manageLocations}">Manage Locations</a></li> 
    336338      <li>Preferences</li> 
     
    12541256            <xsl:variable name="title" select="/bedework/formElements/form/title/input/@value"/> 
    12551257            <input type="text" name="newEvent.summary" size="80" value="{$title}"/> 
     1258          </td> 
     1259        </tr> 
     1260        <tr> 
     1261          <td class="fieldname"> 
     1262            Calendar: 
     1263          </td> 
     1264          <td class="fieldval"> 
     1265            <select name="calendarId"> 
     1266              <option value="-1"> 
     1267                Select: 
     1268              </option> 
     1269              <xsl:copy-of select="/bedework/formElements/form/calendar/select/*"/> 
     1270              <!-- 
     1271              <xsl:for-each select="/bedework/myCalendars/calendars//calendar[calendarCollection='true']"> 
     1272                <xsl:if test="(name != 'Inbox') and (name != 'Outbox')"> 
     1273                  <xsl:variable name="calid" select="id"/> 
     1274                  <xsl:choose> 
     1275                    <xsl:when test="id = /bedework/formElements/calendarId"> 
     1276                      <option value="{$calid}" selected="selected"><xsl:value-of select="name"/></option> 
     1277                    </xsl:when> 
     1278                    <xsl:otherwise> 
     1279                      <option value="{$calid}"><xsl:value-of select="name"/></option> 
     1280                    </xsl:otherwise> 
     1281                  </xsl:choose> 
     1282                </xsl:if> 
     1283              </xsl:for-each>--> 
     1284            </select> 
    12561285          </td> 
    12571286        </tr> 
     
    16141643        <tr> 
    16151644          <td class="fieldname"> 
     1645            Calendar: 
     1646          </td> 
     1647          <td class="fieldval"> 
     1648            <select name="calendarId"> 
     1649              <option value="-1"> 
     1650                Select: 
     1651              </option> 
     1652              <xsl:copy-of select="/bedework/formElements/form/calendar/select/*"/> 
     1653              <!-- 
     1654              <xsl:for-each select="/bedework/myCalendars/calendars//calendar[calendarCollection='true']"> 
     1655                <xsl:if test="(name != 'Inbox') and (name != 'Outbox')"> 
     1656                  <xsl:variable name="calid" select="id"/> 
     1657                  <xsl:choose> 
     1658                    <xsl:when test="id = /bedework/formElements/calendarId"> 
     1659                      <option value="{$calid}" selected="selected"><xsl:value-of select="name"/></option> 
     1660                    </xsl:when> 
     1661                    <xsl:otherwise> 
     1662                      <option value="{$calid}"><xsl:value-of select="name"/></option> 
     1663                    </xsl:otherwise> 
     1664                  </xsl:choose> 
     1665                </xsl:if> 
     1666              </xsl:for-each> 
     1667              --> 
     1668            </select> 
     1669          </td> 
     1670        </tr> 
     1671        <tr> 
     1672          <td class="fieldname"> 
    16161673            Date &amp; Time: 
    16171674          </td> 
     
    18641921  </xsl:template> 
    18651922 
     1923  <!--+++++++++++++++ Free / Busy ++++++++++++++++++++--> 
     1924  <xsl:template match="freebusy"> 
     1925    <h2>Free / Busy</h2> 
     1926    <table id="freeBusy"> 
     1927      <tr> 
     1928        <td>&#160;</td> 
     1929        <xsl:for-each select="day[position()=1]/period"> 
     1930          <th> 
     1931            <xsl:choose> 
     1932              <xsl:when test="number(start) mod 200 = 0"> 
     1933                <xsl:apply-templates select="start" mode="timeDisplay"/> 
     1934              </xsl:when> 
     1935              <xsl:otherwise> 
     1936                &#160; 
     1937              </xsl:otherwise> 
     1938            </xsl:choose> 
     1939          </th> 
     1940        </xsl:for-each> 
     1941      </tr> 
     1942      <xsl:for-each select="day"> 
     1943        <tr> 
     1944          <th> 
     1945            <xsl:value-of select="substring(start,1,4)"/>-<xsl:value-of select="substring(start,5,2)"/>-<xsl:value-of select="substring(start,7,2)"/> 
     1946          </th> 
     1947          <xsl:for-each select="period"> 
     1948            <xsl:variable name="startTime"><xsl:apply-templates  select="start" mode="timeDisplay"/></xsl:variable> 
     1949            <xsl:choose> 
     1950              <xsl:when test="fbtype = '0'"> 
     1951                <td class="busy"> 
     1952                  <a href="" title="{$startTime}">*</a> 
     1953                </td> 
     1954              </xsl:when> 
     1955              <xsl:otherwise> 
     1956                <td class="free"> 
     1957                  <a href="" title="{$startTime}">*</a> 
     1958                </td> 
     1959              </xsl:otherwise> 
     1960            </xsl:choose> 
     1961          </xsl:for-each> 
     1962        </tr> 
     1963      </xsl:for-each> 
     1964    </table> 
     1965  </xsl:template> 
     1966 
     1967  <xsl:template match="start" mode="timeDisplay"> 
     1968    <xsl:choose> 
     1969      <xsl:when test="node()=0000">12am</xsl:when> 
     1970      <xsl:when test="node()=0100">1am</xsl:when> 
     1971      <xsl:when test="node()=0200">2am</xsl:when> 
     1972      <xsl:when test="node()=0300">3am</xsl:when> 
     1973      <xsl:when test="node()=0400">4am</xsl:when> 
     1974      <xsl:when test="node()=0500">5am</xsl:when> 
     1975      <xsl:when test="node()=0600">6am</xsl:when> 
     1976      <xsl:when test="node()=0700">7am</xsl:when> 
     1977      <xsl:when test="node()=0800">8am</xsl:when> 
     1978      <xsl:when test="node()=0900">9am</xsl:when> 
     1979      <xsl:when test="node()=1000">10am</xsl:when> 
     1980      <xsl:when test="node()=1100">11am</xsl:when> 
     1981      <xsl:when test="node()=1200">NOON</xsl:when> 
     1982      <xsl:when test="node()=1300">1pm</xsl:when> 
     1983      <xsl:when test="node()=1400">2pm</xsl:when> 
     1984      <xsl:when test="node()=1500">3pm</xsl:when> 
     1985      <xsl:when test="node()=1600">4pm</xsl:when> 
     1986      <xsl:when test="node()=1700">5pm</xsl:when> 
     1987      <xsl:when test="node()=1800">6pm</xsl:when> 
     1988      <xsl:when test="node()=1900">7pm</xsl:when> 
     1989      <xsl:when test="node()=2000">8pm</xsl:when> 
     1990      <xsl:when test="node()=2100">9pm</xsl:when> 
     1991      <xsl:when test="node()=2200">10pm</xsl:when> 
     1992      <xsl:when test="node()=2300">11pm</xsl:when> 
     1993      <xsl:when test="node()=2400">12am</xsl:when> 
     1994      <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise> 
     1995    </xsl:choose> 
     1996  </xsl:template> 
     1997 
    18661998  <!--+++++++++++++++ Calendars ++++++++++++++++++++--> 
    18671999  <xsl:template match="calendars"> 
  • trunk/calendar3/webclient/war/docs/event/addEventForm.jsp

    r312 r381  
    1313      <html:text property="newEvent.summary"/> 
    1414    </title> 
     15    <calendar> 
     16      <%-- <html:select property="calId"> 
     17        <html:optionsCollection property="addContentCalendarCollections" 
     18                                    label="name" 
     19                                    value="id"/> 
     20      </html:select> --%> 
     21    </calendar> 
    1522    <allDay><html:checkbox property="eventStartDate.dateOnly"/></allDay> 
    1623    <start> 
  • trunk/calendar3/webclient/war/docs/event/editEvent.jsp

    r317 r381  
    2222      <html:text property="editEvent.summary"/> 
    2323    </title> 
     24    <calendar> 
     25      <%-- <html:select property="calId"> 
     26        <html:optionsCollection property="addContentCalendarCollections" 
     27                                    label="name" 
     28                                    value="id"/> 
     29      </html:select> --%> 
     30    </calendar> 
    2431    <allDay><html:checkbox property="eventStartDate.dateOnly"/></allDay> 
    2532    <start> 
  • trunk/calendar3/webclient/war/docs/header.jsp

    r379 r381  
    138138      <editEvent><genurl:rewrite action="editEvent.do"/></editEvent> 
    139139      <delEvent><genurl:rewrite action="delEvent.do"/></delEvent> 
     140 
     141      <getFreeBusy><genurl:link page="/getFreeBusy.do?b=de"/></getFreeBusy> 
    140142 
    141143      <calendar>