Changeset 3599

Show
Ignore:
Timestamp:
07/25/12 16:26:58
Author:
johnsa
Message:

admin client: enable link to publish recurrence masters within event modification form

Files:

Legend:

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

    r3598 r3599  
    19971997                     so provide access to master event --> 
    19981998                <em><xsl:copy-of select="$bwStr-AEEF-ThisEventRecurrenceInstance"/></em><br/> 
    1999                 <a href="{$event-fetchForUpdate}&amp;calPath={$calPath}&amp;guid={$guid}" title="{$bwStr-AEEF-EditMaster}"><xsl:copy-of select="$bwStr-AEEF-EditMasterEvent"/></a> 
     1999                <xsl:choose> 
     2000                  <xsl:when test="starts-with(form/calendar/event/path,$submissionsRootUnencoded)"> 
     2001                    <a href="{$event-fetchForUpdatePending}&amp;calPath={$calPath}&amp;guid={$guid}" title="{$bwStr-AEEF-EditMaster}"><xsl:copy-of select="$bwStr-AEEF-EditPendingMasterEvent"/></a> 
     2002                  </xsl:when> 
     2003                  <xsl:otherwise> 
     2004                    <a href="{$event-fetchForUpdate}&amp;calPath={$calPath}&amp;guid={$guid}" title="{$bwStr-AEEF-EditMaster}"><xsl:copy-of select="$bwStr-AEEF-EditMasterEvent"/></a> 
     2005                  </xsl:otherwise> 
     2006                </xsl:choose> 
     2007                 
    20002008              </xsl:when> 
    20012009              <xsl:otherwise> 
  • trunk/deployment/webadmin/webapp/resources/default/default/strings.xsl

    r3582 r3599  
    179179  <xsl:variable name="bwStr-AEEF-ThisEventRecurrenceInstance">This event is a recurrence instance.</xsl:variable> 
    180180  <xsl:variable name="bwStr-AEEF-EditMasterEvent">edit master event</xsl:variable> 
     181  <xsl:variable name="bwStr-AEEF-EditPendingMasterEvent">edit or publish master event</xsl:variable> 
    181182  <xsl:variable name="bwStr-AEEF-EditMaster">edit master (recurring event)</xsl:variable> 
    182183  <xsl:variable name="bwStr-AEEF-EventRecurs">event recurs</xsl:variable> 
  • trunk/deployment/webadmin/webapp/resources/es_ES/default/default.xsl

    r3595 r3599  
    12561256              </xsl:when> 
    12571257              <xsl:otherwise> 
    1258                 <a href="{$event-fetchForUpdatePending}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
     1258                <a> 
     1259                  <xsl:choose> 
     1260                    <xsl:when test="recurrenceId != ''"> 
     1261                      <!-- recurrence instances should be updated like normal events - only master events should be published --> 
     1262                      <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> 
     1263                    </xsl:when> 
     1264                    <xsl:otherwise> 
     1265                      <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> 
     1266                    </xsl:otherwise> 
     1267                  </xsl:choose> 
    12591268                  <xsl:choose> 
    12601269                    <xsl:when test="summary != ''"> 
     
    13001309        <xsl:value-of select="start/shortdate"/> 
    13011310        <xsl:text> </xsl:text> 
     1311        <xsl:choose> 
     1312                <xsl:when test="start/allday = 'false'"> 
    13021313        <xsl:value-of select="start/time"/> 
     1314                      </xsl:when> 
     1315                      <xsl:otherwise> 
     1316                        <xsl:copy-of select="$bwStr-AEEF-AllDay"/> 
     1317                      </xsl:otherwise> 
     1318                    </xsl:choose> 
    13031319      </td> 
    13041320      <td class="date"> 
    13051321        <xsl:value-of select="end/shortdate"/> 
    13061322        <xsl:text> </xsl:text> 
     1323        <xsl:choose> 
     1324          <xsl:when test="start/allday = 'false'"> 
    13071325        <xsl:value-of select="end/time"/> 
     1326          </xsl:when> 
     1327          <xsl:otherwise> 
     1328            <xsl:copy-of select="$bwStr-AEEF-AllDay"/> 
     1329          </xsl:otherwise> 
     1330        </xsl:choose> 
    13081331      </td> 
    13091332      <td class="calcat"> 
     
    13451368        <xsl:if test="recurring = 'true' or recurrenceId != ''"> 
    13461369          <div class="recurrenceEditLinks"> 
     1370            <xsl:text> </xsl:text> 
    13471371            <xsl:copy-of select="$bwStr-EvLC-RecurringEventEdit"/> 
    1348             <a href="{$event-fetchForUpdate}&amp;calPath={$calPath}&amp;guid={$guid}"> 
     1372            <!-- only master events can be published --> 
     1373            <a href="{$event-fetchForUpdatePending}&amp;calPath={$calPath}&amp;guid={$guid}"> 
    13491374              <xsl:copy-of select="$bwStr-EvLC-Master"/> 
    13501375            </a> | 
     1376            <!-- recurrence instances can only be edited --> 
    13511377            <a href="{$event-fetchForUpdate}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    13521378              <xsl:copy-of select="$bwStr-EvLC-Instance"/> 
     
    19721998                     so provide access to master event --> 
    19731999                <em><xsl:copy-of select="$bwStr-AEEF-ThisEventRecurrenceInstance"/></em><br/> 
    1974                 <a href="{$event-fetchForUpdate}&amp;calPath={$calPath}&amp;guid={$guid}" title="{$bwStr-AEEF-EditMaster}"><xsl:copy-of select="$bwStr-AEEF-EditMasterEvent"/></a> 
     2000                <xsl:choose> 
     2001                  <xsl:when test="starts-with(form/calendar/event/path,$submissionsRootUnencoded)"> 
     2002                    <a href="{$event-fetchForUpdatePending}&amp;calPath={$calPath}&amp;guid={$guid}" title="{$bwStr-AEEF-EditMaster}"><xsl:copy-of select="$bwStr-AEEF-EditPendingMasterEvent"/></a> 
     2003                  </xsl:when> 
     2004                  <xsl:otherwise> 
     2005                    <a href="{$event-fetchForUpdate}&amp;calPath={$calPath}&amp;guid={$guid}" title="{$bwStr-AEEF-EditMaster}"><xsl:copy-of select="$bwStr-AEEF-EditMasterEvent"/></a> 
     2006                  </xsl:otherwise> 
     2007                </xsl:choose> 
     2008                 
    19752009              </xsl:when> 
    19762010              <xsl:otherwise> 
  • trunk/deployment/webadmin/webapp/resources/es_ES/default/strings.xsl

    r3582 r3599  
    179179  <xsl:variable name="bwStr-AEEF-ThisEventRecurrenceInstance">Este evento es una instancia de recurrencia.</xsl:variable> 
    180180  <xsl:variable name="bwStr-AEEF-EditMasterEvent">editar evento maestro</xsl:variable> 
     181  <xsl:variable name="bwStr-AEEF-EditPendingMasterEvent">editar o publicar evento maestro</xsl:variable> 
    181182  <xsl:variable name="bwStr-AEEF-EditMaster">editar maestro (evento recurrente)</xsl:variable> 
    182183  <xsl:variable name="bwStr-AEEF-EventRecurs">evento recurrente</xsl:variable>