Changeset 1495

Show
Ignore:
Timestamp:
08/07/07 15:06:39
Author:
johnsa
Message:

admin client: added UI support for opening and closing calendars in mod calendar tree

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webadmin/webapp/resources/default/default/default.css

    r1318 r1495  
    802802  background-color: #ff3; 
    803803} 
     804#calendarTree img.bwPlusMinusIcon { 
     805  /* the arrangement below is required for cross-browser compatibility; 
     806     be cautious changing it (works IE7, FF2, Safari 3) */ 
     807  position: relative; 
     808  top: -2px; 
     809  margin: 0 25px 0 -35px; 
     810} 
    804811#statsTable { 
    805812  margin: 1em 0 0 4em; 
  • trunk/deployment/webadmin/webapp/resources/default/default/default.xsl

    r1491 r1495  
    129129  <xsl:variable name="calendar-update" select="/bedeworkadmin/urlPrefixes/calendar/update/a/@href"/> 
    130130  <xsl:variable name="calendar-setAccess" select="/bedeworkadmin/urlPrefixes/calendar/setAccess/a/@href"/> 
     131  <xsl:variable name="calendar-openCloseMod" select="/bedeworkadmin/urlPrefixes/calendar/calOpenCloseMod/a/@href"/>   
    131132  <!-- subscriptions --> 
    132133  <xsl:variable name="subscriptions-fetch" select="/bedeworkadmin/urlPrefixes/subscriptions/fetch/a/@href"/> 
     
    134135  <xsl:variable name="subscriptions-initAdd" select="/bedeworkadmin/urlPrefixes/subscriptions/initAdd/a/@href"/> 
    135136  <xsl:variable name="subscriptions-subscribe" select="/bedeworkadmin/urlPrefixes/subscriptions/subscribe/a/@href"/> 
     137  <xsl:variable name="subscriptions-openCloseMod" select="/bedeworkadmin/urlPrefixes/subscriptions/subOpenCloseMod/a/@href"/> 
    136138  <!-- views --> 
    137139  <xsl:variable name="view-fetch" select="/bedeworkadmin/urlPrefixes/view/fetch/a/@href"/> 
     
    29072909    </xsl:variable> 
    29082910    <li class="{$itemClass}"> 
     2911      <xsl:if test="calendarCollection='false'"> 
     2912        <!-- test the open state of the folder; if it's open,  
     2913             build a URL to close it and vice versa --> 
     2914        <xsl:choose> 
     2915          <xsl:when test="open = 'true'"> 
     2916            <a href="{$calendar-openCloseMod}&amp;calPath={$calPath}&amp;open=false"> 
     2917              <img src="{$resourcesRoot}/resources/minus.gif" width="9" height="9" alt="close" border="0" class="bwPlusMinusIcon"/> 
     2918            </a> 
     2919          </xsl:when> 
     2920          <xsl:otherwise> 
     2921            <a href="{$calendar-openCloseMod}&amp;calPath={$calPath}&amp;open=true"> 
     2922              <img src="{$resourcesRoot}/resources/plus.gif" width="9" height="9" alt="open" border="0" class="bwPlusMinusIcon"/> 
     2923            </a> 
     2924          </xsl:otherwise> 
     2925        </xsl:choose> 
     2926      </xsl:if> 
    29092927      <a href="{$calendar-fetchForUpdate}&amp;calPath={$calPath}" title="update"> 
    29102928        <xsl:value-of select="name"/>