Changeset 2113

Show
Ignore:
Timestamp:
04/02/09 14:05:45
Author:
johnsa
Message:

user client: finish off hide/display calendar checkboxes

Files:

Legend:

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

    r2112 r2113  
    128128  <xsl:variable name="calendar-emptyTrash" select="/bedework/urlPrefixes/calendar/emptyTrash/a/@href"/> 
    129129  <xsl:variable name="calendar-listForExport" select="/bedework/urlPrefixes/calendar/listForExport/a/@href"/> 
    130   <xsl:variable name="calendar-setPropsInGrid" select="/bedework/urlPrefixes/calendar/setPropsInGrid/a/@href"/> 
    131   <xsl:variable name="calendar-setPropsInList" select="/bedework/urlPrefixes/calendar/setPropsInList/a/@href"/> 
     130  <xsl:variable name="calendar-setPropsInGrid" select="/bedework/urlPrefixes/calendar/setPropsInGrid"/> 
     131  <xsl:variable name="calendar-setPropsInList" select="/bedework/urlPrefixes/calendar/setPropsInList"/> 
    132132  <!-- subscriptions --> 
    133133  <xsl:variable name="subscriptions-showSubsMenu" select="/bedework/urlPrefixes/subscriptions/showSubsMenu/a/@href"/> 
     
    45454545        <img src="{$resourcesRoot}/resources/spacer.gif" width="6" height="6" alt="calendar color" class="bwCalendarColor" style="background-color: {$color}; color:black;"/> 
    45464546      </xsl:if> 
    4547       <form name="bwHideDisplayCal" class="bwHideDisplayCal" method="post"> 
    4548         <xsl:attribute name="action"> 
     4547      <xsl:if test="currentAccess/current-user-privilege-set/privilege/write-properties"> 
     4548        <form name="bwHideDisplayCal" class="bwHideDisplayCal" method="post"> 
     4549          <xsl:attribute name="action"> 
     4550            <xsl:choose> 
     4551              <xsl:when test="/bedework/page = 'eventList'"><xsl:value-of select="$calendar-setPropsInList"/></xsl:when> 
     4552              <xsl:otherwise><xsl:value-of select="$calendar-setPropsInGrid"/></xsl:otherwise> 
     4553            </xsl:choose> 
     4554          </xsl:attribute> 
     4555          <input type="hidden" name="calPath"> 
     4556            <xsl:attribute name="value"><xsl:value-of select="path"/></xsl:attribute> 
     4557          </input> 
    45494558          <xsl:choose> 
    4550             <xsl:when test="/bedework/page = 'eventList'"><xsl:value-of select="$calendar-setPropsInList"/></xsl:when> 
    4551             <xsl:otherwise><xsl:value-of select="$calendar-setPropsInGrid"/></xsl:otherwise> 
     4559            <xsl:when test="display = 'true'"> 
     4560              <!-- set the value of display to false so that when the form is submitted we toggle --> 
     4561              <input type="hidden" name="display" value="false"/> 
     4562              <input type="checkbox" name="bwDisplaySetter" checked="checked"  onclick="this.form.submit()"> 
     4563                <xsl:if test="/bedework/page != 'eventscalendar' and /bedework/page != 'eventList'"><xsl:attribute name="disabled">disabled</xsl:attribute></xsl:if> 
     4564              </input> 
     4565            </xsl:when> 
     4566            <xsl:otherwise> 
     4567              <!-- set the value of display to true so that when the form is submitted we toggle --> 
     4568              <input type="hidden" name="display" value="true"/> 
     4569              <input type="checkbox" name="bwDisplaySetter" onclick="this.form.submit()"> 
     4570                <xsl:if test="/bedework/page != 'eventscalendar' and /bedework/page != 'eventList'"><xsl:attribute name="disabled">disabled</xsl:attribute></xsl:if> 
     4571              </input> 
     4572            </xsl:otherwise> 
    45524573          </xsl:choose> 
    4553         </xsl:attribute> 
    4554         <input type="hidden" name="calPath"> 
    4555           <xsl:attribute name="value"><xsl:value-of select="path"/></xsl:attribute> 
    4556         </input> 
    4557         <xsl:choose> 
    4558           <xsl:when test="display = 'true'"> 
    4559             <!-- set the value of display to false so that when the form is submitted we toggle --> 
    4560             <input type="hidden" name="display" value="false"/> 
    4561             <input type="checkbox" name="bwDisplaySetter" checked="checked"  onclick="this.form.submit()"> 
    4562               <xsl:if test="/bedework/page != 'eventscalendar' and /bedework/page != 'eventList'"><xsl:attribute name="disabled">disabled</xsl:attribute></xsl:if> 
    4563             </input> 
    4564           </xsl:when> 
    4565           <xsl:otherwise> 
    4566             <!-- set the value of display to true so that when the form is submitted we toggle --> 
    4567             <input type="hidden" name="display" value="true"/> 
    4568             <input type="checkbox" name="bwDisplaySetter" onclick="this.form.submit()"> 
    4569               <xsl:if test="/bedework/page != 'eventscalendar' and /bedework/page != 'eventList'"><xsl:attribute name="disabled">disabled</xsl:attribute></xsl:if> 
    4570             </input> 
    4571           </xsl:otherwise> 
    4572         </xsl:choose> 
    4573       </form> 
    4574       <xsl:text> </xsl:text> 
     4574        </form> 
     4575        <xsl:text> </xsl:text> 
     4576      </xsl:if> 
    45754577      <xsl:variable name="calPath" select="encodedPath"/> 
    45764578      <a href="{$setSelection}&amp;calUrl={$calPath}">