Changeset 1081

Show
Ignore:
Timestamp:
11/11/06 07:46:21
Author:
johnsa
Message:

enhanced access control in web admin UI; some refinement is in order, but most features are now there.

Files:

Legend:

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

    r1080 r1081  
    405405  margin: 0 1em; 
    406406} 
     407#sharingBox table td, 
     408#sharingBox table th { 
     409  white-space: nowrap; 
     410} 
    407411#shareForm { 
    408412  margin: 1em 0; 
  • trunk/deployment/webadmin/webapp/resources/default/default/default.xsl

    r1080 r1081  
    99      standalone="yes" 
    1010      omit-xml-declaration="yes"/> 
     11   <xsl:strip-space elements="*"/> 
    1112 
    1213  <!-- ======================================== --> 
     
    20952096          <th class="commonHeader">Current access:</th> 
    20962097          <th class="commonHeader">Inherited from:</th> 
     2098          <!--<th class="commonHeader">Reset to default:</th>--> 
    20972099        </tr> 
    20982100        <xsl:for-each select="acl/ace"> 
     2101          <xsl:variable name="who"> 
     2102            <xsl:choose> 
     2103              <xsl:when test="invert"> 
     2104                <xsl:choose> 
     2105                  <xsl:when test="invert/principal/href"><xsl:value-of select="invert/principal/href"/></xsl:when> 
     2106                  <xsl:when test="invert/principal/property"><xsl:value-of select="name(invert/principal/property/*)"/></xsl:when> 
     2107                  <xsl:otherwise><xsl:value-of select="name(invert/principal/*)"/></xsl:otherwise> 
     2108                </xsl:choose> 
     2109              </xsl:when> 
     2110              <xsl:otherwise> 
     2111                <xsl:choose> 
     2112                  <xsl:when test="principal/href"><xsl:value-of select="principal/href"/></xsl:when> 
     2113                  <xsl:when test="principal/property"><xsl:value-of select="name(principal/property/*)"/></xsl:when> 
     2114                  <xsl:otherwise><xsl:value-of select="name(principal/*)"/></xsl:otherwise> 
     2115                </xsl:choose> 
     2116              </xsl:otherwise> 
     2117            </xsl:choose> 
     2118          </xsl:variable> 
    20992119          <tr> 
    21002120            <th class="thin"> 
    21012121              <xsl:choose> 
    21022122                <xsl:when test="invert"> 
    2103                   <em>Deny to 
    2104                   <xsl:choose> 
    2105                     <xsl:when test="invert/principal/href"> 
    2106                       <xsl:value-of select="invert/principal/href"/> 
    2107                       </xsl:when> 
    2108                       <xsl:when test="invert/principal/property"> 
    2109                         <xsl:value-of select="name(invert/principal/property/*)"/> 
    2110                       </xsl:when> 
    2111                       <xsl:otherwise> 
    2112                         <xsl:value-of select="name(invert/principal/*)"/> 
    2113                       </xsl:otherwise> 
    2114                     </xsl:choose> 
    2115                   </em> 
     2123                  <em>Deny to <xsl:value-of select="$who"/></em> 
    21162124                </xsl:when> 
    21172125                <xsl:otherwise> 
    2118                   <xsl:choose> 
    2119                     <xsl:when test="principal/href"> 
    2120                       <xsl:value-of select="principal/href"/> 
    2121                     </xsl:when> 
    2122                     <xsl:when test="principal/property"> 
    2123                       <xsl:value-of select="name(principal/property/*)"/> 
    2124                     </xsl:when> 
    2125                     <xsl:otherwise> 
    2126                       <xsl:value-of select="name(principal/*)"/> 
    2127                     </xsl:otherwise> 
    2128                   </xsl:choose> 
     2126                  <xsl:value-of select="$who"/> 
    21292127                </xsl:otherwise> 
    21302128              </xsl:choose> 
     
    21352133              </xsl:for-each> 
    21362134              <xsl:for-each select="deny/node()"> 
    2137                 deny-<xsl:value-of select="name(.)"/>&#160;&#160; 
     2135                deny-<xsl:value-of select="name(.)"/> 
     2136                &#160;&#160; 
    21382137              </xsl:for-each> 
    21392138            </td> 
     
    21412140              <xsl:value-of select="inherited/href"/> 
    21422141            </td> 
     2142            <!--<td class="center"> 
     2143              <a href="{$calendar-setAccess}&amp;calPath={$calPath}&amp;how=default&amp;who={$who}"> 
     2144                reset to default 
     2145              </a> 
     2146            </td>--> 
    21432147          </tr> 
    21442148        </xsl:for-each> 
     
    21482152        <table cellpadding="0" id="shareFormTable" class="common"> 
    21492153          <tr> 
    2150             <th colspan="2" class="commonHeader">Add:</th> 
     2154            <th colspan="2" class="commonHeader">Set access:</th> 
    21512155          </tr> 
    21522156          <tr> 
     
    21622166                <input type="radio" value="other" name="whoType"/> other users<br/> 
    21632167                <input type="radio" value="owner" name="whoType"/> owner 
     2168              </p> 
     2169              <p class="padTop"> 
     2170                <input type="checkbox" value="yes" name="notWho"/> invert (deny to) 
    21642171              </p> 
    21652172            </td> 
     
    22382245                  <input type="radio" value="N" name="how"/> 
    22392246                  <strong>None</strong> 
     2247                </li> 
     2248                <li class="padTop"> 
     2249                  <input type="radio" value="default" name="how"/> 
     2250                  <strong>Restore default access</strong> 
    22402251                </li> 
    22412252              </ul>