Changeset 2666

Show
Ignore:
Timestamp:
01/13/10 23:51:11
Author:
johnsa
Message:

admin client: list location and contact references to super users

Files:

Legend:

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

    r2664 r2666  
    443443                  <xsl:call-template name="modContact"/> 
    444444                </xsl:when> 
    445                 <xsl:when test="/bedework/page='deleteContactConfirm' or 
    446                                 /bedework/page='contactReferenced'"> 
     445                <xsl:when test="/bedework/page='deleteContactConfirm'"> 
    447446                  <xsl:call-template name="deleteContactConfirm"/> 
     447                </xsl:when> 
     448                <xsl:when test="/bedework/page='contactReferenced'"> 
     449                  <xsl:call-template name="contactReferenced"/> 
    448450                </xsl:when> 
    449451                <xsl:when test="/bedework/page='locationList'"> 
     
    455457                <xsl:when test="/bedework/page='deleteLocationConfirm'"> 
    456458                  <xsl:call-template name="deleteLocationConfirm"/> 
     459                </xsl:when> 
     460                <xsl:when test="/bedework/page='locationReferenced'"> 
     461                  <xsl:call-template name="locationReferenced"/> 
    457462                </xsl:when> 
    458463                <xsl:when test="/bedework/page='categoryList'"> 
     
    34813486  </xsl:template> 
    34823487 
     3488  <xsl:template name="contactReferenced"> 
     3489    <h2><xsl:copy-of select="$bwStr-DCoR-ContactInUse"/></h2> 
     3490 
     3491    <table class="eventFormTable"> 
     3492      <tr> 
     3493        <th><xsl:copy-of select="$bwStr-DCoC-Name"/></th> 
     3494        <td> 
     3495          <xsl:value-of select="/bedework/contact/name" /> 
     3496        </td> 
     3497      </tr> 
     3498      <tr> 
     3499        <th><xsl:copy-of select="$bwStr-DCoC-Phone"/></th> 
     3500        <td> 
     3501          <xsl:value-of select="/bedework/contact/phone" /> 
     3502        </td> 
     3503      </tr> 
     3504      <tr> 
     3505        <th><xsl:copy-of select="$bwStr-DCoC-Email"/></th> 
     3506        <td> 
     3507          <xsl:value-of select="/bedework/contact/email" /> 
     3508        </td> 
     3509      </tr> 
     3510      <tr> 
     3511        <th><xsl:copy-of select="$bwStr-DCoC-URL"/></th> 
     3512        <td> 
     3513          <xsl:value-of select="/bedework/contact/link" /> 
     3514        </td> 
     3515      </tr> 
     3516    </table> 
     3517 
     3518    <p> 
     3519      <xsl:copy-of select="$bwStr-DCoR-ContactInUseBy"/> 
     3520    </p> 
     3521 
     3522    <xsl:if test="/bedework/userInfo/superUser = 'true'"> 
     3523      <div class="suTitle"><xsl:copy-of select="$bwStr-DCoR-SuperUserMsg"/></div> 
     3524      <div id="superUserMenu"> 
     3525        <!-- List collections that reference the contact --> 
     3526        <xsl:if test="/bedework/propRefs/propRef[isCollection = 'true']"> 
     3527          <h4><xsl:copy-of select="$bwStr-DCoR-Collections"/></h4> 
     3528          <ul> 
     3529            <xsl:for-each select="/bedework/propRefs/propRef[isCollection = 'true']"> 
     3530              <li> 
     3531                <xsl:variable name="calPath" select="path"/> 
     3532                <a href="{$calendar-fetchForUpdate}&amp;calPath={$calPath}"> 
     3533                  <xsl:value-of select="path"/> 
     3534                </a> 
     3535              </li> 
     3536            </xsl:for-each> 
     3537          </ul> 
     3538        </xsl:if> 
     3539        <!-- List events that reference the contact --> 
     3540        <xsl:if test="/bedework/propRefs/propRef[isCollection = 'false']"> 
     3541          <h4><xsl:copy-of select="$bwStr-DCoR-Events"/></h4> 
     3542          <ul> 
     3543            <xsl:for-each select="/bedework/propRefs/propRef[isCollection = 'false']"> 
     3544              <li> 
     3545                <xsl:variable name="calPath" select="path"/> 
     3546                <xsl:variable name="guid" select="uid"/> 
     3547                <!-- only returns the master event --> 
     3548                <a href="{$event-fetchForUpdate}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId="> 
     3549                  <xsl:value-of select="uid"/> 
     3550                </a> 
     3551              </li> 
     3552            </xsl:for-each> 
     3553          </ul> 
     3554        </xsl:if> 
     3555      </div> 
     3556    </xsl:if> 
     3557 
     3558  </xsl:template> 
     3559 
    34833560   <!--+++++++++++++++ Locations ++++++++++++++++++++--> 
    34843561  <xsl:template name="locationList"> 
     
    36103687    </table> 
    36113688  </xsl:template> 
     3689 
     3690  <xsl:template name="locationReferenced"> 
     3691    <h2><xsl:copy-of select="$bwStr-DeLR-LocationInUse"/></h2> 
     3692    <p id="confirmButtons"> 
     3693      <xsl:copy-of select="/bedework/formElements/*"/> 
     3694    </p> 
     3695 
     3696    <table class="eventFormTable"> 
     3697      <tr> 
     3698        <td class="fieldName"> 
     3699            <xsl:copy-of select="$bwStr-DeLC-Address"/> 
     3700          </td> 
     3701        <td> 
     3702          <xsl:value-of select="/bedework/location/address"/> 
     3703        </td> 
     3704      </tr> 
     3705      <tr class="optional"> 
     3706        <td> 
     3707            <xsl:copy-of select="$bwStr-DeLC-SubAddress"/> 
     3708          </td> 
     3709        <td> 
     3710          <xsl:value-of select="/bedework/location/subaddress"/> 
     3711        </td> 
     3712      </tr> 
     3713      <tr class="optional"> 
     3714        <td> 
     3715            <xsl:copy-of select="$bwStr-DeLC-LocationURL"/> 
     3716          </td> 
     3717        <td> 
     3718          <xsl:variable name="link" select="/bedework/location/link"/> 
     3719          <a href="{$link}"> 
     3720            <xsl:value-of select="/bedework/location/link"/> 
     3721          </a> 
     3722        </td> 
     3723      </tr> 
     3724    </table> 
     3725 
     3726    <p> 
     3727      <xsl:copy-of select="$bwStr-DeLR-LocationInUseBy"/> 
     3728    </p> 
     3729 
     3730    <xsl:if test="/bedework/userInfo/superUser = 'true'"> 
     3731      <div class="suTitle"><xsl:copy-of select="$bwStr-DeLR-SuperUserMsg"/></div> 
     3732      <div id="superUserMenu"> 
     3733        <!-- List collections that reference the location --> 
     3734        <xsl:if test="/bedework/propRefs/propRef[isCollection = 'true']"> 
     3735          <h4><xsl:copy-of select="$bwStr-DeLR-Collections"/></h4> 
     3736          <ul> 
     3737            <xsl:for-each select="/bedework/propRefs/propRef[isCollection = 'true']"> 
     3738              <li> 
     3739                <xsl:variable name="calPath" select="path"/> 
     3740                <a href="{$calendar-fetchForUpdate}&amp;calPath={$calPath}"> 
     3741                  <xsl:value-of select="path"/> 
     3742                </a> 
     3743              </li> 
     3744            </xsl:for-each> 
     3745          </ul> 
     3746        </xsl:if> 
     3747        <!-- List events that reference the location --> 
     3748        <xsl:if test="/bedework/propRefs/propRef[isCollection = 'false']"> 
     3749          <h4><xsl:copy-of select="$bwStr-DeLR-Events"/></h4> 
     3750          <ul> 
     3751            <xsl:for-each select="/bedework/propRefs/propRef[isCollection = 'false']"> 
     3752              <li> 
     3753                <xsl:variable name="calPath" select="path"/> 
     3754                <xsl:variable name="guid" select="uid"/> 
     3755                <!-- only returns the master event --> 
     3756                <a href="{$event-fetchForUpdate}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId="> 
     3757                  <xsl:value-of select="uid"/> 
     3758                </a> 
     3759              </li> 
     3760            </xsl:for-each> 
     3761          </ul> 
     3762        </xsl:if> 
     3763      </div> 
     3764    </xsl:if> 
     3765  </xsl:template> 
     3766 
    36123767 
    36133768  <!--+++++++++++++++ Categories ++++++++++++++++++++--> 
     
    37693924      <xsl:copy-of select="$bwStr-DeCR-CategoryInUseBy"/> 
    37703925    </p> 
    3771      
     3926 
    37723927    <xsl:if test="/bedework/userInfo/superUser = 'true'"> 
    37733928      <div class="suTitle"><xsl:copy-of select="$bwStr-DeCR-SuperUserMsg"/></div> 
  • trunk/deployment/webadmin/webapp/resources/default/default/strings.xsl

    r2664 r2666  
    346346  <xsl:variable name="bwStr-DCoC-Cancel">Cancel</xsl:variable> 
    347347 
     348  <!--  xsl:template name="contactReferenced" --> 
     349  <xsl:variable name="bwStr-DCoR-ContactInUse">Contact In Use</xsl:variable> 
     350  <xsl:variable name="bwStr-DCoR-ContactInUseBy">The contact is in use by events and cannot be deleted. Please contact a superuser.</xsl:variable> 
     351  <xsl:variable name="bwStr-DCoR-Collections">Collections:</xsl:variable> 
     352  <xsl:variable name="bwStr-DCoR-Events">Events:</xsl:variable> 
     353  <xsl:variable name="bwStr-DCoR-SuperUserMsg">The contact is referenced by the items below (<em>superusers only</em>)</xsl:variable> 
     354 
    348355  <!--  xsl:template name="locationList" --> 
    349356  <xsl:variable name="bwStr-LoLi-ManageLocations">Manage Locations</xsl:variable> 
     
    369376  <xsl:variable name="bwStr-DeLC-SubAddress">Subaddress:</xsl:variable> 
    370377  <xsl:variable name="bwStr-DeLC-LocationURL">Location's URL:</xsl:variable> 
     378 
     379  <!--  xsl:template name="locationReferenced" --> 
     380  <xsl:variable name="bwStr-DeLR-LocationInUse">Location In Use</xsl:variable> 
     381  <xsl:variable name="bwStr-DeLR-LocationInUseBy">The location is in use by events and cannot be deleted. Please contact a superuser.</xsl:variable> 
     382  <xsl:variable name="bwStr-DeLR-Collections">Collections:</xsl:variable> 
     383  <xsl:variable name="bwStr-DeLR-Events">Events:</xsl:variable> 
     384  <xsl:variable name="bwStr-DeLR-SuperUserMsg">The location is referenced by the items below (<em>superusers only</em>)</xsl:variable> 
    371385 
    372386  <!--  xsl:template name="categoryList" -->