Changeset 1028

Show
Ignore:
Timestamp:
10/09/06 11:15:43
Author:
johnsa
Message:

updated current access (sharing/acl) display in personal and admin clients

Files:

Legend:

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

    r1027 r1028  
    18011801          <th class="commonHeader" colspan="2">Current access:</th> 
    18021802        </tr> 
    1803         <tr> 
    1804           <th class="thin">Owner:</th> 
    1805           <td> 
    1806             <xsl:value-of select="name(acl/ace[principal/property/owner]/grant/*)"/> 
    1807           </td> 
    1808         </tr> 
    1809         <xsl:if test="acl/ace/principal/href"> 
     1803        <xsl:for-each select="acl/ace"> 
    18101804          <tr> 
    1811             <th class="thin">Users:</th> 
     1805            <th class="thin"> 
     1806              <xsl:choose> 
     1807                <xsl:when test="invert"> 
     1808                  <em>Deny to 
     1809                  <xsl:choose> 
     1810                    <xsl:when test="invert/principal/href"> 
     1811                      <xsl:value-of select="invert/principal/href"/> 
     1812                    </xsl:when> 
     1813                    <xsl:when test="invert/principal/property"> 
     1814                      <xsl:value-of select="name(invert/principal/property/*)"/> 
     1815                    </xsl:when> 
     1816                    <xsl:otherwise> 
     1817                      <xsl:value-of select="name(invert/principal/*)"/> 
     1818                    </xsl:otherwise> 
     1819                  </xsl:choose> 
     1820                  </em> 
     1821                </xsl:when> 
     1822                <xsl:otherwise> 
     1823                  <xsl:choose> 
     1824                    <xsl:when test="principal/href"> 
     1825                      <xsl:value-of select="principal/href"/> 
     1826                    </xsl:when> 
     1827                    <xsl:when test="principal/property"> 
     1828                      <xsl:value-of select="name(principal/property/*)"/> 
     1829                    </xsl:when> 
     1830                    <xsl:otherwise> 
     1831                      <xsl:value-of select="name(principal/*)"/> 
     1832                    </xsl:otherwise> 
     1833                  </xsl:choose> 
     1834                </xsl:otherwise> 
     1835              </xsl:choose> 
     1836            </th> 
    18121837            <td> 
    1813               <xsl:for-each select="acl/ace[principal/href]"> 
    1814                 <xsl:value-of select="principal/href"/> (<xsl:value-of select="name(grant/*)"/>)<br/> 
    1815               </xsl:for-each> 
     1838              <xsl:value-of select="name(.//grant/*)"/> 
    18161839            </td> 
    18171840          </tr> 
    1818         </xsl:if
     1841        </xsl:for-each
    18191842      </table> 
    18201843      <form name="calendarShareForm" action="{$calendar-setAccess}" id="shareForm" method="post"> 
     
    26552678          <th class="commonHeader" colspan="2">Current access:</th> 
    26562679        </tr> 
    2657         <xsl:if test="acl/ace/principal/href"> 
     2680 
     2681        <xsl:for-each select="acl/ace"> 
    26582682          <tr> 
    2659             <th>Users:</th> 
     2683            <th class="thin"> 
     2684              <xsl:choose> 
     2685                <xsl:when test="invert"> 
     2686                  <em>Deny to 
     2687                  <xsl:choose> 
     2688                    <xsl:when test="invert/principal/href"> 
     2689                      <xsl:value-of select="invert/principal/href"/> 
     2690                    </xsl:when> 
     2691                    <xsl:when test="invert/principal/property"> 
     2692                      <xsl:value-of select="name(invert/principal/property/*)"/> 
     2693                    </xsl:when> 
     2694                    <xsl:otherwise> 
     2695                      <xsl:value-of select="name(invert/principal/*)"/> 
     2696                    </xsl:otherwise> 
     2697                  </xsl:choose> 
     2698                  </em> 
     2699                </xsl:when> 
     2700                <xsl:otherwise> 
     2701                  <xsl:choose> 
     2702                    <xsl:when test="principal/href"> 
     2703                      <xsl:value-of select="principal/href"/> 
     2704                    </xsl:when> 
     2705                    <xsl:when test="principal/property"> 
     2706                      <xsl:value-of select="name(principal/property/*)"/> 
     2707                    </xsl:when> 
     2708                    <xsl:otherwise> 
     2709                      <xsl:value-of select="name(principal/*)"/> 
     2710                    </xsl:otherwise> 
     2711                  </xsl:choose> 
     2712                </xsl:otherwise> 
     2713              </xsl:choose> 
     2714            </th> 
    26602715            <td> 
    2661               <xsl:for-each select="acl/ace[principal/href]"> 
    2662                 <xsl:value-of select="principal/href"/> (<xsl:value-of select="name(grant/*)"/>)<br/> 
    2663               </xsl:for-each> 
     2716              <xsl:value-of select="name(.//grant/*)"/> 
    26642717            </td> 
    26652718          </tr> 
    2666         </xsl:if
     2719        </xsl:for-each
    26672720      </table> 
    26682721      <form name="calsuiteShareForm" action="{$calsuite-setAccess}" id="shareForm" method="post"> 
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r1027 r1028  
    22802280          <th class="commonHeader" colspan="2">Current access:</th> 
    22812281        </tr> 
    2282         <tr> 
    2283           <th class="thin">Owner:</th> 
    2284           <td class="fieldval"> 
    2285             <xsl:value-of select="name(/bedework/access/acl/ace[principal/property/owner]/grant/*)"/> 
    2286           </td> 
    2287         </tr> 
    2288         <xsl:if test="/bedework/access/acl/ace/principal/href"> 
     2282        <xsl:for-each select="acl/ace"> 
    22892283          <tr> 
    2290             <th class="thin">Users:</th> 
     2284            <th class="thin"> 
     2285              <xsl:choose> 
     2286                <xsl:when test="invert"> 
     2287                  <em>Deny to 
     2288                  <xsl:choose> 
     2289                    <xsl:when test="invert/principal/href"> 
     2290                      <xsl:value-of select="invert/principal/href"/> 
     2291                    </xsl:when> 
     2292                    <xsl:when test="invert/principal/property"> 
     2293                      <xsl:value-of select="name(invert/principal/property/*)"/> 
     2294                    </xsl:when> 
     2295                    <xsl:otherwise> 
     2296                      <xsl:value-of select="name(invert/principal/*)"/> 
     2297                    </xsl:otherwise> 
     2298                  </xsl:choose> 
     2299                  </em> 
     2300                </xsl:when> 
     2301                <xsl:otherwise> 
     2302                  <xsl:choose> 
     2303                    <xsl:when test="principal/href"> 
     2304                      <xsl:value-of select="principal/href"/> 
     2305                    </xsl:when> 
     2306                    <xsl:when test="principal/property"> 
     2307                      <xsl:value-of select="name(principal/property/*)"/> 
     2308                    </xsl:when> 
     2309                    <xsl:otherwise> 
     2310                      <xsl:value-of select="name(principal/*)"/> 
     2311                    </xsl:otherwise> 
     2312                  </xsl:choose> 
     2313                </xsl:otherwise> 
     2314              </xsl:choose> 
     2315            </th> 
    22912316            <td> 
    2292               <xsl:for-each select="/bedework/access/acl/ace[principal/href]"> 
    2293                 <xsl:value-of select="principal/href"/> (<xsl:value-of select="name(grant/*)"/>)<br/> 
    2294               </xsl:for-each> 
     2317              <xsl:value-of select="name(.//grant/*)"/> 
    22952318            </td> 
    22962319          </tr> 
    2297         </xsl:if
     2320        </xsl:for-each
    22982321      </table> 
    22992322      <form name="eventShareForm" action="{$event-setAccess}" id="shareForm"> 
     
    29732996          <th class="commonHeader" colspan="2">Current access:</th> 
    29742997        </tr> 
    2975         <tr> 
    2976           <th class="thin">Owner:</th> 
    2977           <td> 
    2978             <xsl:value-of select="name(acl/ace[principal/property/owner]/grant/*)"/> 
    2979           </td> 
    2980         </tr> 
    2981         <xsl:if test="acl/ace/principal/href"> 
     2998 
     2999        <xsl:for-each select="acl/ace"> 
    29823000          <tr> 
    2983             <th class="thin">Users:</th> 
     3001            <th class="thin"> 
     3002              <xsl:choose> 
     3003                <xsl:when test="invert"> 
     3004                  <em>Deny to 
     3005                  <xsl:choose> 
     3006                    <xsl:when test="invert/principal/href"> 
     3007                      <xsl:value-of select="invert/principal/href"/> 
     3008                    </xsl:when> 
     3009                    <xsl:when test="invert/principal/property"> 
     3010                      <xsl:value-of select="name(invert/principal/property/*)"/> 
     3011                    </xsl:when> 
     3012                    <xsl:otherwise> 
     3013                      <xsl:value-of select="name(invert/principal/*)"/> 
     3014                    </xsl:otherwise> 
     3015                  </xsl:choose> 
     3016                  </em> 
     3017                </xsl:when> 
     3018                <xsl:otherwise> 
     3019                  <xsl:choose> 
     3020                    <xsl:when test="principal/href"> 
     3021                      <xsl:value-of select="principal/href"/> 
     3022                    </xsl:when> 
     3023                    <xsl:when test="principal/property"> 
     3024                      <xsl:value-of select="name(principal/property/*)"/> 
     3025                    </xsl:when> 
     3026                    <xsl:otherwise> 
     3027                      <xsl:value-of select="name(principal/*)"/> 
     3028                    </xsl:otherwise> 
     3029                  </xsl:choose> 
     3030                </xsl:otherwise> 
     3031              </xsl:choose> 
     3032            </th> 
    29843033            <td> 
    2985               <xsl:for-each select="acl/ace[principal/href]"> 
    2986                 <xsl:value-of select="principal/href"/> (<xsl:value-of select="name(grant/*)"/>)<br/> 
    2987               </xsl:for-each> 
     3034              <xsl:value-of select="name(.//grant/*)"/> 
    29883035            </td> 
    29893036          </tr> 
    2990         </xsl:if
     3037        </xsl:for-each
    29913038      </table> 
    29923039      <form name="calendarShareForm" action="{$calendar-setAccess}" id="shareForm">