Changeset 1097

Show
Ignore:
Timestamp:
11/17/06 16:14:29
Author:
johnsa
Message:

overhaul and simplification of access control UI for admin client (calendars)

Files:

Legend:

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

    r1096 r1097  
    417417  white-space: nowrap; 
    418418} 
     419#sharing td, 
     420#sharing th.thin { 
     421  font-size: 0.8em; 
     422} 
    419423#shareForm { 
    420424  margin: 1em 0; 
  • trunk/deployment/webadmin/webapp/resources/default/default/default.xsl

    r1096 r1097  
    20912091    <div id="sharingBox"> 
    20922092      <xsl:variable name="calPath" select="path"/> 
     2093      <xsl:variable name="encodedCalPath" select="encodedPath"/> 
    20932094      <h3>Sharing</h3> 
    2094       <table class="common"
     2095      <table class="common" id="sharing"
    20952096        <tr> 
    20962097          <th class="commonHeader">Who:</th> 
    20972098          <th class="commonHeader">Current access:</th> 
    2098           <th class="commonHeader">Inherited from:</th> 
    2099           <!--<th class="commonHeader">Reset to default:</th>--> 
     2099          <th class="commonHeader">Source:</th> 
    21002100        </tr> 
    21012101        <xsl:for-each select="acl/ace"> 
     
    21042104              <xsl:when test="invert"> 
    21052105                <xsl:choose> 
    2106                   <xsl:when test="invert/principal/href"><xsl:value-of select="invert/principal/href"/></xsl:when> 
     2106                  <xsl:when test="invert/principal/href"><xsl:value-of select="normalize-space(invert/principal/href)"/></xsl:when> 
    21072107                  <xsl:when test="invert/principal/property"><xsl:value-of select="name(invert/principal/property/*)"/></xsl:when> 
    21082108                  <xsl:otherwise><xsl:value-of select="name(invert/principal/*)"/></xsl:otherwise> 
     
    21112111              <xsl:otherwise> 
    21122112                <xsl:choose> 
    2113                   <xsl:when test="principal/href"><xsl:value-of select="principal/href"/></xsl:when> 
     2113                  <xsl:when test="principal/href"><xsl:value-of select="normalize-space(principal/href)"/></xsl:when> 
    21142114                  <xsl:when test="principal/property"><xsl:value-of select="name(principal/property/*)"/></xsl:when> 
    21152115                  <xsl:otherwise><xsl:value-of select="name(principal/*)"/></xsl:otherwise> 
     
    21192119          </xsl:variable> 
    21202120          <tr> 
    2121             <th class="thin"> 
     2121          <th class="thin"> 
     2122              <xsl:if test="invert"> 
     2123                <em>Deny to </em> 
     2124              </xsl:if> 
    21222125              <xsl:choose> 
    2123                 <xsl:when test="invert"> 
    2124                   <em>Deny to <xsl:value-of select="$who"/></em> 
     2126                <xsl:when test="contains($who,/bedeworkadmin/syspars/userPrincipalRoot)"> 
     2127                  <img src="{$resourcesRoot}/resources/userIcon.gif" width="13" height="13" border="0" alt="user"/> 
     2128                  <xsl:value-of select="substring-after(substring-after($who,normalize-space(/bedeworkadmin/syspars/userPrincipalRoot)),'/')"/> 
     2129                </xsl:when> 
     2130                <xsl:when test="contains($who,/bedeworkadmin/syspars/groupPrincipalRoot)"> 
     2131                  <img src="{$resourcesRoot}/resources/groupIcon.gif" width="13" height="13" border="0" alt="group"/> 
     2132                  <xsl:value-of select="substring-after(substring-after($who,normalize-space(/bedeworkadmin/syspars/groupPrincipalRoot)),'/')"/> 
    21252133                </xsl:when> 
    21262134                <xsl:otherwise> 
     
    21392147            </td> 
    21402148            <td> 
    2141               <xsl:value-of select="inherited/href"/> 
     2149              <xsl:choose> 
     2150                <xsl:when test="inherited"> 
     2151                  inherited from: 
     2152                  <a> 
     2153                    <xsl:attribute name="href"><xsl:value-of select="$calendar-fetchForUpdate"/>&amp;calPath=<xsl:value-of select="inherited/href"/></xsl:attribute> 
     2154                    <xsl:value-of select="inherited/href"/> 
     2155                  </a> 
     2156                </xsl:when> 
     2157                <xsl:otherwise> 
     2158                  local: 
     2159                  <xsl:variable name="whoType"> 
     2160                    <xsl:choose> 
     2161                      <xsl:when test="contains($who,/bedeworkadmin/syspars/userPrincipalRoot)">user</xsl:when> 
     2162                      <xsl:when test="contains($who,/bedeworkadmin/syspars/groupPrincipalRoot)">group</xsl:when> 
     2163                      <xsl:otherwise></xsl:otherwise> 
     2164                    </xsl:choose> 
     2165                  </xsl:variable> 
     2166                  <xsl:variable name="shortWho"> 
     2167                    <xsl:choose> 
     2168                      <xsl:when test="contains($who,/bedeworkadmin/syspars/userPrincipalRoot)"><xsl:value-of select="substring-after(substring-after($who,normalize-space(/bedeworkadmin/syspars/userPrincipalRoot)),'/')"/></xsl:when> 
     2169                      <xsl:when test="contains($who,/bedeworkadmin/syspars/groupPrincipalRoot)"><xsl:value-of select="substring-after(substring-after($who,normalize-space(/bedeworkadmin/syspars/groupPrincipalRoot)),'/')"/></xsl:when> 
     2170                      <xsl:otherwise><xsl:value-of select="$who"/></xsl:otherwise> 
     2171                    </xsl:choose> 
     2172                  </xsl:variable> 
     2173                  <xsl:choose> 
     2174                    <xsl:when test="invert"> 
     2175                      <a href="{$calendar-setAccess}&amp;calPath={$encodedCalPath}&amp;how=default&amp;who={$shortWho}&amp;whoType={$whoType}&amp;notWho=yes"> 
     2176                        reset to default 
     2177                      </a> 
     2178                    </xsl:when> 
     2179                    <xsl:otherwise> 
     2180                      <a href="{$calendar-setAccess}&amp;calPath={$encodedCalPath}&amp;how=default&amp;who={$shortWho}&amp;whoType={$whoType}"> 
     2181                        reset to default 
     2182                      </a> 
     2183                    </xsl:otherwise> 
     2184                  </xsl:choose> 
     2185                </xsl:otherwise> 
     2186              </xsl:choose> 
    21422187            </td> 
    2143             <!--<td class="center"> 
    2144               <a href="{$calendar-setAccess}&amp;calPath={$calPath}&amp;how=default&amp;who={$who}"> 
    2145                 reset to default 
    2146               </a> 
    2147             </td>--> 
    21482188          </tr> 
    21492189        </xsl:for-each> 
     
    21682208                <input type="radio" value="owner" name="whoType"/> owner 
    21692209              </p> 
     2210              <!-- we may never use the invert action ...it is probably 
     2211                   too confusing, and can be achieved in other ways --> 
     2212              <!-- 
    21702213              <p class="padTop"> 
    21712214                <input type="checkbox" value="yes" name="notWho"/> invert (deny) 
    2172               </p> 
     2215              </p>--> 
    21732216            </td> 
    21742217            <td> 
    21752218              <h5>Rights:</h5> 
    21762219              <ul id="howList"> 
    2177  
    2178                 <!--<li> 
    2179                   <input type="radio" value="A" name="how"/> All 
    2180                   <ul> 
    2181                     <li> 
    2182                       <input type="radio" value="R" name="how" checked="checked"/> Read 
    2183                       <ul> 
    2184                         <li> 
    2185                           <input type="radio" value="r" name="how" disabled="disabled"/> Read acl 
    2186                         </li> 
    2187                         <li> 
    2188                           <input type="radio" value="P" name="how" disabled="disabled"/> Read current user privilege set 
    2189                         </li> 
    2190                         <li> 
    2191                           <input type="radio" value="f" name="how"/> Read free/busy 
    2192                         </li> 
    2193                       </ul> 
    2194                     </li> 
    2195                     <li> 
    2196                       <input type="radio" value="W" name="how"/> Write 
    2197                       <ul> 
    2198                         <li> 
    2199                           <input type="radio" value="a" name="how" disabled="disabled"/> Write acl 
    2200                         </li> 
    2201                         <li> 
    2202                           <input type="radio" value="p" name="how" disabled="disabled"/> Write properties 
    2203                         </li> 
    2204                         <li> 
    2205                           <input type="radio" value="c" name="how"/> Write content 
    2206                         </li> 
    2207                         <li> 
    2208                           <input type="radio" value="b" name="how" disabled="disabled"/> Bind (includes scheduling) 
    2209                         </li> 
    2210                         <li> 
    2211                           <input type="radio" value="u" name="how"/> Unbind (destroy) 
    2212                         </li> 
    2213                       </ul> 
    2214                     </li> 
    2215                   </ul> 
    2216                 </li> 
    2217                 <li> 
    2218                   <input type="radio" value="N" name="how"/> None 
    2219                 </li>--> 
    2220  
    22212220                <li> 
    22222221                  <input type="radio" value="A" name="how"/> 
     
    22472246                  <strong>None</strong> 
    22482247                </li> 
     2248                <!-- 
    22492249                <li class="padTop"> 
    22502250                  <input type="radio" value="default" name="how"/> 
    22512251                  <strong>Restore default access</strong> 
    2252                 </li> 
     2252                </li>--> 
    22532253              </ul> 
    22542254            </td>