Changeset 3598

Show
Ignore:
Timestamp:
07/24/12 13:31:48
Author:
johnsa
Message:

admin client: change pending events listing to allow only master events to be published

Files:

Legend:

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

    r3594 r3598  
    12551255              </xsl:when> 
    12561256              <xsl:otherwise> 
    1257                 <a href="{$event-fetchForUpdatePending}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
     1257                <a> 
     1258                  <xsl:choose> 
     1259                    <xsl:when test="recurrenceId != ''"> 
     1260                      <!-- recurrence instances should be updated like normal events - only master events should be published --> 
     1261                      <xsl:attribute name="href"><xsl:value-of select="$event-fetchForUpdate"/>&amp;calPath=<xsl:value-of select="$calPath"/>&amp;guid=<xsl:value-of select="$guid"/>&amp;recurrenceId=<xsl:value-of select="$recurrenceId"/></xsl:attribute> 
     1262                    </xsl:when> 
     1263                    <xsl:otherwise> 
     1264                      <xsl:attribute name="href"><xsl:value-of select="$event-fetchForUpdatePending"/>&amp;calPath=<xsl:value-of select="$calPath"/>&amp;guid=<xsl:value-of select="$guid"/>&amp;recurrenceId=<xsl:value-of select="$recurrenceId"/></xsl:attribute> 
     1265                    </xsl:otherwise> 
     1266                  </xsl:choose> 
    12581267                  <xsl:choose> 
    12591268                    <xsl:when test="summary != ''"> 
     
    12991308        <xsl:value-of select="start/shortdate"/> 
    13001309        <xsl:text> </xsl:text> 
    1301         <xsl:value-of select="start/time"/> 
     1310        <xsl:choose> 
     1311                <xsl:when test="start/allday = 'false'"> 
     1312                        <xsl:value-of select="start/time"/> 
     1313                      </xsl:when> 
     1314                      <xsl:otherwise> 
     1315                        <xsl:copy-of select="$bwStr-AEEF-AllDay"/> 
     1316                      </xsl:otherwise> 
     1317                    </xsl:choose> 
    13021318      </td> 
    13031319      <td class="date"> 
    13041320        <xsl:value-of select="end/shortdate"/> 
    13051321        <xsl:text> </xsl:text> 
    1306         <xsl:value-of select="end/time"/> 
     1322        <xsl:choose> 
     1323          <xsl:when test="start/allday = 'false'"> 
     1324            <xsl:value-of select="end/time"/> 
     1325          </xsl:when> 
     1326          <xsl:otherwise> 
     1327            <xsl:copy-of select="$bwStr-AEEF-AllDay"/> 
     1328          </xsl:otherwise> 
     1329        </xsl:choose> 
    13071330      </td> 
    13081331      <td class="calcat"> 
     
    13441367        <xsl:if test="recurring = 'true' or recurrenceId != ''"> 
    13451368          <div class="recurrenceEditLinks"> 
     1369            <xsl:text> </xsl:text> 
    13461370            <xsl:copy-of select="$bwStr-EvLC-RecurringEventEdit"/> 
    1347             <a href="{$event-fetchForUpdate}&amp;calPath={$calPath}&amp;guid={$guid}"> 
     1371            <!-- only master events can be published --> 
     1372            <a href="{$event-fetchForUpdatePending}&amp;calPath={$calPath}&amp;guid={$guid}"> 
    13481373              <xsl:copy-of select="$bwStr-EvLC-Master"/> 
    13491374            </a> | 
     1375            <!-- recurrence instances can only be edited --> 
    13501376            <a href="{$event-fetchForUpdate}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    13511377              <xsl:copy-of select="$bwStr-EvLC-Instance"/>