Changeset 2078

Show
Ignore:
Timestamp:
02/26/09 22:30:03
Author:
johnsa
Message:

access control widget and template fixed up

Files:

Legend:

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

    r2077 r2078  
    35043504    <div id="bwEventTab-Access" class="invisible"> 
    35053505      <div id="sharingBox"> 
    3506         <xsl:choose> 
    3507           <xsl:when test="/bedework/editableAccess/access/acl"> 
    3508             <xsl:apply-templates select="/bedework/editableAccess/access/acl" mode="currentAccess"> 
    3509               <xsl:with-param name="action" select="$event-setAccess"/> 
    3510               <xsl:with-param name="calPathEncoded" select="$calPathEncoded"/> 
    3511               <xsl:with-param name="guid" select="$guid"/> 
    3512               <xsl:with-param name="recurrenceId" select="$recurrenceId"/> 
    3513               <xsl:with-param name="method">2</xsl:with-param> 
    3514             </xsl:apply-templates> 
    3515           </xsl:when> 
    3516           <xsl:otherwise> 
    3517             <h3>Current Access:</h3> 
    3518             <table class="common scheduling" id="bwCurrentAccess"> 
    3519               <thead> 
    3520                 <tr> 
    3521                   <th>Entry</th> 
    3522                   <th>Access</th> 
    3523                   <th>Inherited from</th> 
    3524                   <th></th> 
    3525                 </tr> 
    3526               </thead> 
    3527               <tbody> 
    3528                 <tr id="bwEventNoAcl"> 
    3529                   <td colspan="4">no access defined</td> 
    3530                 </tr> 
    3531               </tbody> 
    3532             </table> 
    3533           </xsl:otherwise> 
    3534         </xsl:choose> 
     3506        <h3>Current Access:</h3> 
     3507        <div id="bwCurrentAccessWidget">&#160;</div> 
     3508        <script type="text/javascript"> 
     3509          bwAcl.display("bwCurrentAccessWidget"); 
     3510        </script> 
    35353511        <xsl:call-template name="entityAccessForm"> 
    3536           <xsl:with-param name="method">2</xsl:with-param> 
     3512          <xsl:with-param name="outputId">bwCurrentAccessWidget</xsl:with-param> 
    35373513        </xsl:call-template> 
    35383514      </div> 
     
    49394915 
    49404916      <div id="sharingBox"> 
    4941         <xsl:choose> 
    4942           <xsl:when test="acl"> 
    4943             <xsl:apply-templates select="acl" mode="currentAccess"> 
    4944               <xsl:with-param name="action" select="$calendar-setAccess"/> 
    4945               <xsl:with-param name="calPathEncoded" select="$calPathEncoded"/> 
    4946               <xsl:with-param name="method">2</xsl:with-param> 
    4947             </xsl:apply-templates> 
    4948           </xsl:when> 
    4949           <xsl:otherwise> 
    4950             <h3>Current Access:</h3> 
    4951             <table class="common scheduling" id="bwCurrentAccess"> 
    4952               <thead> 
    4953                 <tr> 
    4954                   <th>Entry</th> 
    4955                   <th>Access</th> 
    4956                   <th>Inherited from</th> 
    4957                   <th></th> 
    4958                 </tr> 
    4959               </thead> 
    4960               <tbody> 
    4961                 <tr id="bwEventNoAcl"> 
    4962                   <td colspan="4">no access defined</td> 
    4963                 </tr> 
    4964               </tbody> 
    4965             </table> 
    4966           </xsl:otherwise> 
    4967         </xsl:choose> 
     4917        <div id="bwCurrentAccessWidget">&#160;</div> 
     4918        <script type="text/javascript"> 
     4919          bwAcl.display("bwCurrentAccessWidget"); 
     4920        </script> 
    49684921        <xsl:call-template name="entityAccessForm"> 
    4969           <xsl:with-param name="method">2</xsl:with-param> 
     4922          <xsl:with-param name="outputId">bwCurrentAccessWidget</xsl:with-param> 
    49704923        </xsl:call-template> 
    49714924      </div> 
     
    77897742              <input type="radio" value="all" name="whoType"/> all users 
    77907743            </p> 
    7791             <input type="button" name="updateACLs" value="add entry" onclick="bwAcl.update(this.form,${id})"/> 
     7744            <input type="button" name="updateACLs" value="add entry" onclick="bwAcl.update(this.form,'{$outputId}')"/> 
    77927745          </div> 
    77937746        </td>