Changeset 2110

Show
Ignore:
Timestamp:
04/01/09 17:06:32
Author:
johnsa
Message:

user client: beginning to add ability to enable and disable display of calendars on the fly

Files:

Legend:

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

    r2103 r2110  
    15701570} 
    15711571#bedework .calendarTree li { 
    1572   padding-top: 0.25em; 
     1572  padding: 0.25em 0 0 0; 
     1573  margin: 0; 
    15731574} 
    15741575#bedework li.folder { 
     
    16281629  padding: 0; 
    16291630  margin: 5px 10px 0 2px; 
    1630   width: 0.8em; 
     1631  width: 0.6em; 
    16311632  height: 0.5em; 
    16321633  border: 1px solid #666 !important; 
     1634} 
     1635#bedework form.bwHideDisplayCal, 
     1636#bedework form.bwHideDisplayCal input { 
     1637  display: inline; 
     1638  margin: 0; 
     1639  padding: 0; 
     1640} 
     1641#bedework form.bwHideDisplayCal input { 
     1642  width: 10px; 
     1643  height: 10px; 
    16331644} 
    16341645#bedework #submitTable { 
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r2103 r2110  
    45434543        <img src="{$resourcesRoot}/resources/spacer.gif" width="6" height="6" alt="calendar color" class="bwCalendarColor" style="background-color: {$color}; color:black;"/> 
    45444544      </xsl:if> 
     4545      <form name="bwHideDisplayCal" class="bwHideDisplayCal" action=""> 
     4546        <input type="hidden" name="calPath"> 
     4547          <xsl:attribute name="value" select="path"/> 
     4548        </input> 
     4549        <xsl:choose> 
     4550          <xsl:when test="display = 'true'"> 
     4551            <!-- set the value of display to false so that when the form is submitted we toggle --> 
     4552            <input type="hidden" name="display" value="false"/> 
     4553            <input type="checkbox" name="bwDisplaySetter" checked="checked"  onclick="this.submit()"/> 
     4554          </xsl:when> 
     4555          <xsl:otherwise> 
     4556            <!-- set the value of display to true so that when the form is submitted we toggle --> 
     4557            <input type="hidden" name="display" value="true"/> 
     4558            <input type="checkbox" name="bwDisplaySetter" onclick="this.submit()"/> 
     4559          </xsl:otherwise> 
     4560        </xsl:choose> 
     4561      </form> 
     4562      <xsl:text> </xsl:text> 
    45454563      <xsl:variable name="calPath" select="encodedPath"/> 
    45464564      <a href="{$setSelection}&amp;calUrl={$calPath}"> 
     
    48624880        </tr> 
    48634881        <tr> 
     4882          <th>Display:</th> 
     4883          <td> 
     4884            <input type="checkbox" name="calendar.display" size="40"> 
     4885              <xsl:if test="display = 'true'"> 
     4886                <xsl:attribute name="checked">checked</xsl:attribute> 
     4887              </xsl:if> 
     4888            </input> display items in this collection 
     4889          </td> 
     4890        </tr> 
     4891        <tr> 
     4892          <xsl:if test="disabled = 'true'"> 
     4893            <xsl:attribute name="class">disabled</xsl:attribute> 
     4894          </xsl:if> 
     4895          <th>Disabled:</th> 
     4896          <td> 
     4897            <input type="hidden" name="calendar.disabled" size="40"> 
     4898              <xsl:attribute name="value"><xsl:value-of select="disabled"/></xsl:attribute> 
     4899            </input> 
     4900            <xsl:value-of select="disabled"/> 
     4901            <xsl:if test="disabled = 'true'"> 
     4902              <span class="disabledNote"> 
     4903                This item is inaccessible and has been disabled.  You may 
     4904                re-enable it to try again. 
     4905              </span> 
     4906            </xsl:if> 
     4907          </td> 
     4908        </tr> 
     4909        <tr> 
    48644910          <th>Filter Expression:</th> 
    48654911          <td> 
     
    50605106          </td> 
    50615107        </tr> 
     5108        <tr> 
     5109          <th>Display:</th> 
     5110          <td> 
     5111            <input type="checkbox" name="calendar.display" size="40"> 
     5112              <xsl:if test="display = 'true'"> 
     5113                <xsl:attribute name="checked">checked</xsl:attribute> 
     5114              </xsl:if> 
     5115            </input> display items in this collection 
     5116          </td> 
     5117        </tr> 
     5118        <xsl:if test="disabled = 'true'"> 
     5119          <tr> 
     5120            <xsl:attribute name="class">disabled</xsl:attribute> 
     5121            <th>Disabled:</th> 
     5122            <td> 
     5123              <input type="hidden" name="calendar.disabled" size="40"> 
     5124                <xsl:attribute name="value"><xsl:value-of select="disabled"/></xsl:attribute> 
     5125              </input> 
     5126              <xsl:value-of select="disabled"/> 
     5127              <xsl:if test="disabled = 'true'"> 
     5128                <span class="disabledNote"> 
     5129                  This item is inaccessible and has been disabled.  You may 
     5130                  re-enable it to try again. 
     5131                </span> 
     5132              </xsl:if> 
     5133            </td> 
     5134          </tr> 
     5135        </xsl:if> 
    50625136        <tr> 
    50635137          <th>Filter Expression:</th>