Changeset 2664

Show
Ignore:
Timestamp:
01/13/10 16:18:42
Author:
johnsa
Message:

admin client: allow superuser to see what collections and events reference categories

Files:

Legend:

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

    r2441 r2664  
    11861186  padding-right: 2em; 
    11871187} 
     1188#superUserMenu { 
     1189  padding: 1em; 
     1190  border: 1px solid #ccc; 
     1191  font-size: 0.9em; 
     1192} 
     1193.suTitle { 
     1194  padding: 4px 8px; 
     1195  color: black; 
     1196  background-color: #eee; 
     1197  border: 1px solid #ccc; 
     1198  border-bottom: none; 
     1199} 
     1200#superUserMenu h4 { 
     1201  margin: 0;  
     1202  padding: 0; 
     1203} 
     1204#superUserMenu ul { 
     1205  margin-top: 0.5em;  
     1206} 
    11881207#logoutButton  { 
    11891208  display: inline; 
  • trunk/deployment/webadmin/webapp/resources/default/default/default.xsl

    r2662 r2664  
    37663766    </table> 
    37673767 
    3768    <p> 
    3769      <xsl:copy-of select="$bwStr-DeCR-CategoryInUseBy"/> 
    3770    </p> 
    3771  
     3768    <p> 
     3769      <xsl:copy-of select="$bwStr-DeCR-CategoryInUseBy"/> 
     3770    </p> 
     3771     
     3772    <xsl:if test="/bedework/userInfo/superUser = 'true'"> 
     3773      <div class="suTitle"><xsl:copy-of select="$bwStr-DeCR-SuperUserMsg"/></div> 
     3774      <div id="superUserMenu"> 
     3775        <!-- List collections that reference the category --> 
     3776        <xsl:if test="/bedework/propRefs/propRef[isCollection = 'true']"> 
     3777          <h4><xsl:copy-of select="$bwStr-DeCR-Collections"/></h4> 
     3778          <ul> 
     3779            <xsl:for-each select="/bedework/propRefs/propRef[isCollection = 'true']"> 
     3780              <li> 
     3781                <xsl:variable name="calPath" select="path"/> 
     3782                <a href="{$calendar-fetchForUpdate}&amp;calPath={$calPath}"> 
     3783                  <xsl:value-of select="path"/> 
     3784                </a> 
     3785              </li> 
     3786            </xsl:for-each> 
     3787          </ul> 
     3788        </xsl:if> 
     3789        <!-- List events that reference the category --> 
     3790        <xsl:if test="/bedework/propRefs/propRef[isCollection = 'false']"> 
     3791          <h4><xsl:copy-of select="$bwStr-DeCR-Events"/></h4> 
     3792          <p><em><xsl:copy-of select="$bwStr-DeCR-EventsNote"/></em></p> 
     3793          <ul> 
     3794            <xsl:for-each select="/bedework/propRefs/propRef[isCollection = 'false']"> 
     3795              <li> 
     3796                <xsl:variable name="calPath" select="path"/> 
     3797                <xsl:variable name="guid" select="uid"/> 
     3798                <!-- only returns the master event --> 
     3799                <a href="{$event-fetchForUpdate}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId="> 
     3800                  <xsl:value-of select="uid"/> 
     3801                </a> 
     3802              </li> 
     3803            </xsl:for-each> 
     3804          </ul> 
     3805        </xsl:if> 
     3806      </div> 
     3807    </xsl:if> 
    37723808 
    37733809  </xsl:template> 
  • trunk/deployment/webadmin/webapp/resources/default/default/strings.xsl

    r2662 r2664  
    394394  <!--  xsl:template name="categoryReferenced" --> 
    395395  <xsl:variable name="bwStr-DeCR-CategoryInUse">Category In Use</xsl:variable> 
    396   <xsl:variable name="bwStr-DeCR-CategoryInUseBy">The category is in use by the following events and collections:</xsl:variable> 
     396  <xsl:variable name="bwStr-DeCR-CategoryInUseBy">The category is in use by collections and/or events and cannot be deleted. Please contact a superuser.</xsl:variable> 
     397  <xsl:variable name="bwStr-DeCR-Collections">Collections:</xsl:variable> 
     398  <xsl:variable name="bwStr-DeCR-Events">Events:</xsl:variable> 
     399  <xsl:variable name="bwStr-DeCR-EventsNote">Note: if you do not edit the event from the original calendar suite, you may not see the associated topical area that sets the category on the event.</xsl:variable> 
     400  <xsl:variable name="bwStr-DeCR-SuperUserMsg">The categories are referenced by the items below (<em>superusers only</em>)</xsl:variable> 
    397401 
    398402  <!--  xsl:template name="categorySelectionWidget" -->