Changeset 404

Show
Ignore:
Timestamp:
04/20/06 17:18:53
Author:
johnsa
Message:

sharing available for free/busy

Files:

Legend:

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

    r392 r404  
    947947  font-size: 0.8em; 
    948948  font-style: italic; 
     949} 
     950#freeBusyWho { 
     951  background-color: #666; 
     952  color: #eee; 
     953  padding: 0.2em 0.5em; 
     954  text-align: left; 
     955  font-weight: normal; 
    949956} 
    950957#freeBusy { 
  • trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r399 r404  
    5959  <xsl:variable name="initUpload" select="/bedework/urlPrefixes/initUpload"/> 
    6060  <xsl:variable name="upload" select="/bedework/urlPrefixes/upload"/> 
    61   <xsl:variable name="getFreeBusy" select="/bedework/urlPrefixes/getFreeBusy/a/@href"/> 
     61  <xsl:variable name="freeBusy-fetch" select="/bedework/urlPrefixes/freeBusy/fetch/a/@href"/> 
     62  <xsl:variable name="freeBusy-setAccess" select="/bedework/urlPrefixes/freeBusy/setAccess/a/@href"/> 
    6263  <!-- calendars --> 
    6364  <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/fetchPublicCalendars"/> 
     
    336337    <h3>options</h3> 
    337338    <ul id="sideBarMenu"> 
    338       <li><a href="{$getFreeBusy}">Show Free/Busy</a></li> 
     339      <li><a href="{$freeBusy-fetch}">Show Free/Busy</a></li> 
    339340      <li><a href="{$manageLocations}">Manage Locations</a></li> 
    340341      <li>Preferences</li> 
     
    19741975  <xsl:template match="freebusy"> 
    19751976    <h2>Free / Busy</h2> 
     1977    <div id="freeBusyWho">for <xsl:value-of select="day/who"/></div> 
    19761978    <table id="freeBusy"> 
    19771979      <tr> 
     
    20232025        <td class="busy">*</td> 
    20242026        <td>busy</td> 
     2027        <td>&#160;</td> 
     2028        <td> 
     2029          <form name="calendarShareForm" action="{$freeBusy-fetch}"> 
     2030            View user's free/busy:<br/> 
     2031            <input type="text" name="userid" size="20"/> 
     2032            <input type="submit" name="submit" value="Submit"/> 
     2033          </form> 
     2034        </td> 
    20252035      </tr> 
    20262036    </table> 
     2037 
     2038    <div id="sharingBox"> 
     2039      <h3>Sharing</h3> 
     2040      <table class="common"> 
     2041        <tr> 
     2042          <th class="commonHeader" colspan="2">Current access:</th> 
     2043        </tr> 
     2044        <tr> 
     2045          <th>Users:</th> 
     2046          <td> 
     2047            <xsl:choose> 
     2048              <xsl:when test="/bedework/myCalendars/calendars/calendar/acl/ace/principal/href"> 
     2049                <xsl:for-each select="/bedework/myCalendars/calendars/calendar/acl/ace[principal/href]"> 
     2050                  <xsl:value-of select="principal/href"/> (<xsl:value-of select="name(grant/*)"/>)<br/> 
     2051                </xsl:for-each> 
     2052              </xsl:when> 
     2053              <xsl:otherwise> 
     2054                free/busy not shared 
     2055              </xsl:otherwise> 
     2056            </xsl:choose> 
     2057          </td> 
     2058        </tr> 
     2059      </table> 
     2060      <form name="calendarShareForm" action="{$freeBusy-setAccess}" id="shareForm"> 
     2061        <xsl:variable name="calId" select="/bedework/myCalendars/calendars/calendar/id"/> 
     2062        <input type="hidden" name="calId" value="{$calId}"/> 
     2063        <p> 
     2064          Share my free/busy with:<br/> 
     2065          <input type="text" name="who" size="20"/> 
     2066          <input type="radio" value="user" name="whoType" checked="checked"/> user 
     2067          <input type="radio" value="group" name="whoType"/> group 
     2068        </p> 
     2069        <p> 
     2070          Access rights:<br/> 
     2071          <input type="radio" value="f" name="how" checked="checked"/> view my free/busy<br/> 
     2072          <input type="radio" value="d" name="how"/> default (reset access) 
     2073        </p> 
     2074        <input type="submit" name="submit" value="Submit"/> 
     2075      </form> 
     2076    </div> 
    20272077  </xsl:template> 
    20282078 
  • trunk/calendar3/webclient/war/WEB-INF/struts-config.xml

    r391 r404  
    110110    </action> 
    111111 
    112     <action    path="/showFreeBusy" 
    113                type="org.bedework.webclient.BwRenderAction" 
    114                name="calForm" 
    115                scope="session" 
    116                validate="false"> 
    117       <forward name="success" path="/docs/freeBusy.jsp" /> 
    118     </action> 
    119  
    120112    <action    path="/showManageLocations" 
    121113               type="org.bedework.webclient.BwRenderAction" 
     
    299291    </action> 
    300292 
    301     <action    path="/getFreeBusy" 
    302                type="org.bedework.webclient.BwFreeBusyAction" 
    303                name="calForm" 
    304                scope="session" 
    305                validate="false"> 
    306       <forward name="success" path="/showFreeBusy.rdo" redirect="true" /> 
    307     </action> 
    308  
    309293    <action    path="/manageLocations" 
    310294               type="org.bedework.webclient.BwAction" 
     
    339323      <forward name="referenced" path="/showManageLocations.rdo" redirect="true" /> 
    340324      <forward name="success" path="/showManageLocations.rdo" redirect="true" /> 
     325    </action> 
     326 
     327   <!-- =============================================================== 
     328                         Free / Busy 
     329         =============================================================== --> 
     330 
     331    <action    path="/freeBusy/showFreeBusy" 
     332               type="org.bedework.webclient.BwRenderAction" 
     333               name="calForm" 
     334               scope="session" 
     335               validate="false"> 
     336      <forward name="success" path="/docs/freeBusy.jsp" /> 
     337    </action> 
     338 
     339    <action    path="/freeBusy/getFreeBusy" 
     340               type="org.bedework.webclient.BwFreeBusyAction" 
     341               name="calForm" 
     342               scope="session" 
     343               validate="false"> 
     344      <forward name="success" path="/freeBusy/showFreeBusy.rdo" redirect="true" /> 
     345      <forward name="noAccess" path="/freeBusy/showFreeBusy.rdo" redirect="true" /> 
     346      <forward name="notFound" path="/freeBusy/showFreeBusy.rdo" redirect="true" /> 
     347    </action> 
     348 
     349    <action    path="/freeBusy/setAccess" 
     350               type="org.bedework.webcommon.access.AccessAction" 
     351               name="calForm" 
     352               scope="session" 
     353               validate="false"> 
     354      <forward name="success" path="/freeBusy/showFreeBusy.rdo" redirect="true" /> 
     355      <forward name="error" path="/freeBusy/showFreeBusy.rdo" redirect="true" /> 
     356      <forward name="notFound" path="/freeBusy/showFreeBusy.rdo" redirect="true" /> 
     357      <forward name="doNothing" path="/freeBusy/showFreeBusy.rdo" redirect="true" /> 
    341358    </action> 
    342359 
  • trunk/calendar3/webclient/war/docs/header.jsp

    r391 r404  
    142142      </event> 
    143143 
    144       <getFreeBusy><genurl:link page="/getFreeBusy.do?b=de"/></getFreeBusy> 
     144      <freeBusy> 
     145        <fetch><genurl:link page="/freeBusy/getFreeBusy.do?b=de"/></fetch> 
     146        <setAccess><genurl:link page="/freeBusy/setAccess.do?b=de"/></setAccess> 
     147      </freeBusy> 
    145148 
    146149      <calendar>