Changeset 2169
- Timestamp:
- 05/13/09 12:12:41
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webadmin/webapp/resources/default/default/default.xsl
r2168 r2169 980 980 <xsl:template match="event" mode="eventListCommon"> 981 981 <xsl:param name="pending">false</xsl:param> 982 <xsl:variable name="subscriptionId" select="subscription/id"/>983 982 <xsl:variable name="calPath" select="calendar/encodedPath"/> 984 983 <xsl:variable name="guid" select="guid"/> … … 988 987 <xsl:choose> 989 988 <xsl:when test="$pending = 'true'"> 990 <a href="{$event-fetchForUpdatePending}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">989 <a href="{$event-fetchForUpdatePending}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 991 990 <xsl:choose> 992 991 <xsl:when test="summary != ''"> … … 1000 999 </xsl:when> 1001 1000 <xsl:otherwise> 1002 <a href="{$event-fetchForUpdate}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">1001 <a href="{$event-fetchForUpdate}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1003 1002 <xsl:choose> 1004 1003 <xsl:when test="summary != ''"> … … 1046 1045 Recurring event. 1047 1046 Edit: 1048 <a href="{$event-fetchForUpdate}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}">1047 <a href="{$event-fetchForUpdate}&calPath={$calPath}&guid={$guid}"> 1049 1048 master 1050 1049 </a> | 1051 <a href="{$event-fetchForUpdate}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">1050 <a href="{$event-fetchForUpdate}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1052 1051 instance 1053 1052 </a> … … 1059 1058 1060 1059 <xsl:template match="formElements" mode="modEvent"> 1061 <xsl:variable name="subscriptionId" select="subscriptionId"/> 1062 <xsl:variable name="calPathEncoded" select="form/calendar/encodedPath"/> 1063 <xsl:variable name="calPath" select="form/calendar/path"/> 1060 <xsl:variable name="calPathEncoded" select="form/calendar/event/encodedPath"/> 1061 <xsl:variable name="calPath" select="form/calendar/event/path"/> 1064 1062 <xsl:variable name="guid" select="guid"/> 1065 1063 <xsl:variable name="recurrenceId" select="recurrenceId"/> 1066 1064 <xsl:variable name="eventTitle" select="form/title/input/@value"/> 1067 <xsl:variable name="eventUrl "><xsl:value-of select="$publicCal"/>/event/eventView.do?subid=<xsl:value-of select="$subscriptionId"/>&calPath=<xsl:value-of select="$calPathEncoded"/>&guid=<xsl:value-of select="$guid"/>&recurrenceId=<xsl:value-of select="$recurrenceId"/></xsl:variable>1065 <xsl:variable name="eventUrlPrefix"><xsl:value-of select="$publicCal"/>/event/eventView.do?guid=<xsl:value-of select="$guid"/>&recurrenceId=<xsl:value-of select="$recurrenceId"/></xsl:variable> 1068 1066 1069 1067 <h2>Event Information</h2> … … 1158 1156 <xsl:call-template name="submitEventButtons"> 1159 1157 <xsl:with-param name="eventTitle" select="$eventTitle"/> 1160 <xsl:with-param name="eventUrl " select="$eventUrl"/>1158 <xsl:with-param name="eventUrlPrefix" select="$eventUrlPrefix"/> 1161 1159 </xsl:call-template> 1162 1160 … … 1564 1562 so provide access to master event --> 1565 1563 <em>This event is a recurrence instance.</em><br/> 1566 <a href="{$event-fetchForUpdate}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="edit master (recurring event)">edit master event</a>1564 <a href="{$event-fetchForUpdate}&calPath={$calPath}&guid={$guid}" title="edit master (recurring event)">edit master event</a> 1567 1565 </xsl:when> 1568 1566 <xsl:otherwise> … … 2537 2535 <!-- don't create two instances of the submit buttons on pending events; 2538 2536 the publishing buttons require numerous unique ids --> 2539 <xsl:call-template name="submitEventButtons"> >2537 <xsl:call-template name="submitEventButtons"> 2540 2538 <xsl:with-param name="eventTitle" select="$eventTitle"/> 2541 <xsl:with-param name="eventUrl " select="$eventUrl"/>2539 <xsl:with-param name="eventUrlPrefix" select="$eventUrlPrefix"/> 2542 2540 </xsl:call-template> 2543 2541 </xsl:if> … … 2589 2587 <xsl:template name="submitEventButtons"> 2590 2588 <xsl:param name="eventTitle"/> 2591 <xsl:param name="eventUrl "/>2589 <xsl:param name="eventUrlPrefix"/> 2592 2590 <div class="submitBox"> 2593 2591 <xsl:choose> … … 2643 2641 <input type="submit" name="updateSubmitEvent" value="Update Event"/> 2644 2642 <input type="submit" name="publishEvent" value="Publish Event"> 2645 <xsl:attribute name="onclick">doPublishEvent('<xsl:value-of select="form/calendar/all/select/option/@value"/>','<xsl:value-of select="$eventTitle"/>','<xsl:value-of select="$eventUrl "/>');</xsl:attribute>2643 <xsl:attribute name="onclick">doPublishEvent('<xsl:value-of select="form/calendar/all/select/option/@value"/>','<xsl:value-of select="$eventTitle"/>','<xsl:value-of select="$eventUrlPrefix"/>');</xsl:attribute> 2646 2644 </input> 2647 2645 <input type="submit" name="cancel" value="Cancel"/> … … 6438 6436 </xsl:if> 6439 6437 <xsl:for-each select="/bedework/searchResults/searchResult"> 6440 <xsl:variable name="subscriptionId" select="event/subscription/id"/>6441 6438 <xsl:variable name="calPath" select="event/calendar/encodedPath"/> 6442 6439 <xsl:variable name="guid" select="event/guid"/> … … 6450 6447 </td> 6451 6448 <td> 6452 <a href="{$event-fetchForDisplay}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">6449 <a href="{$event-fetchForDisplay}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 6453 6450 <xsl:value-of select="event/summary"/> 6454 6451 </a> trunk/deployment/webadmin/webapp/resources/resources/bedeworkEventForm.js
r2167 r2169 702 702 } 703 703 704 function doPublishEvent(publishingCal,eventTitle,eventUrl ) {704 function doPublishEvent(publishingCal,eventTitle,eventUrlPrefix) { 705 705 // User has submitted the event when there is only a single publishing calendar. 706 706 // Update the newCalPath to reflect the publishing calendar: … … 717 717 snsubject.value = "Event Approved: " + eventTitle; 718 718 sntext = document.getElementById("sntext"); 719 sntext.value = "Your event has been approved and is now published.\n\nEVENT DETAILS\n-------------\n\nTitle: " + eventTitle + "\nURL: " + eventUrl ;719 sntext.value = "Your event has been approved and is now published.\n\nEVENT DETAILS\n-------------\n\nTitle: " + eventTitle + "\nURL: " + eventUrlPrefix + "&" + publishingCal; 720 720 } 721 721 function doRejectEvent(reason,eventTitle) {
