Changeset 2138

Show
Ignore:
Timestamp:
04/17/09 00:53:37
Author:
johnsa
Message:

admin client: block adding events when not in a calendar suite

Files:

Legend:

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

    r2137 r2138  
    670670        <td> 
    671671          <a id="addEventLink" href="{$event-initAddEvent}"> 
     672            <xsl:if test="not(/bedework/currentCalSuite/name)"> 
     673              <xsl:attribute name="onclick">alert('You must be operating in the context of a calendar suite\nto add or manage events.\n\nYour current group is neither associated with a calendar suite\nnor a child of a group associated with a calendar suite.');return false;</xsl:attribute> 
     674            </xsl:if> 
    672675            <img src="{$resourcesRoot}/resources/bwAdminAddEventIcon.jpg" width="140" height="140" alt="Add Event" border="0"/> 
    673676            <br/>Add Event 
     
    703706        <td> 
    704707          <a href="{$event-initUpdateEvent}"> 
     708            <xsl:if test="not(/bedework/currentCalSuite/name)"> 
     709              <xsl:attribute name="onclick">alert('You must be operating in the context of a calendar suite\nto add or manage events.\n\nYour current group is neither associated with a calendar suite\nnor a child of a group associated with a calendar suite.');return false;</xsl:attribute> 
     710            </xsl:if> 
    705711            <img src="{$resourcesRoot}/resources/bwAdminManageEventsIcon.jpg" width="100" height="73" alt="Manage Events" border="0"/> 
    706712            <br/>Manage Events 
     
    60356041          </td> 
    60366042          <td> 
    6037             <xsl:copy-of select="/bedework/formElements/form/desc/*"/> 
     6043            <textarea name="updAdminGroup.description" cols="50" rows="3"> 
     6044              <xsl:value-of select="/bedework/formElements/form/desc/textarea"/> 
     6045              <xsl:if test="normalize-space(/bedework/formElements/form/desc/textarea) = ''"> 
     6046                <xsl:text> </xsl:text> 
     6047                <!-- keep this non-breaking space to avoid browser 
     6048                rendering errors when the text area is empty --> 
     6049              </xsl:if> 
     6050            </textarea> 
    60386051          </td> 
    60396052        </tr>