Changeset 2172
- Timestamp:
- 05/14/09 16:36:55
- Files:
-
- trunk/deployment/resources/javascript/bedework/bedeworkXProperties.js (modified) (1 diff)
- trunk/deployment/webadmin/webapp/resources/default/default/default.xsl (modified) (7 diffs)
- trunk/deployment/webadmin/webapp/resources/resources/bedeworkEventForm.js (modified) (1 diff)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl (modified) (17 diffs)
- trunk/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/default.xsl (modified) (17 diffs)
- trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.css (modified) (2 diffs)
- trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.xsl (modified) (10 diffs)
- trunk/deployment/websubmit/webapp/resources/demoskins/resources/bedeworkEventForm.js (modified) (1 diff)
- trunk/deployment/websubmit/webapp/resources/demoskins/resources/bedeworkXProperties.js (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/resources/javascript/bedework/bedeworkXProperties.js
r2171 r2172 37 37 var bwXPropertyContact = "X-BEDEWORK-CONTACT"; 38 38 var bwXPropertyCategories = "X-BEDEWORK-CATEGORIES"; 39 var bwXPropertySubmitAlias = "X-BEDEWORK-SUBMIT-ALIAS"; 39 40 var bwXPropertySubmitComment = "X-BEDEWORK-SUBMIT-COMMENT"; 40 41 var bwXPropertySubmitStatus = "X-BEDEWORK-SUBMIT-STATUS"; trunk/deployment/webadmin/webapp/resources/default/default/default.xsl
r2171 r2172 763 763 <xsl:template name="tabPendingEvents"> 764 764 <h2>Pending Events</h2> 765 <p>The following events were submitted to the calendar:</p>765 <p>The following events are awaiting moderation:</p> 766 766 <xsl:call-template name="eventListCommon"> 767 767 <xsl:with-param name="pending">true</xsl:with-param> … … 959 959 <th>Start</th> 960 960 <th>End</th> 961 <th>Topical Areas</th> 962 <th>Categories</th> 963 <!-- <th>Calendar</th> --> 961 <th> 962 <xsl:if test="/bedework/page='tabPendingEvents'">Suggested </xsl:if> 963 Topical Areas 964 </th> 964 965 <th>Description</th> 965 966 </tr> … … 1057 1058 </td> 1058 1059 <td class="calcat"> 1059 <xsl:for-each select="xproperties/X-BEDEWORK-ALIAS"> 1060 <xsl:call-template name="substring-afterLastInstanceOf"> 1061 <xsl:with-param name="string" select="values/text"/> 1062 <xsl:with-param name="char">/</xsl:with-param> 1063 </xsl:call-template><br/> 1064 </xsl:for-each> 1060 <xsl:choose> 1061 <xsl:when test="/bedework/page='tabPendingEvents'"> 1062 <xsl:for-each select="xproperties/X-BEDEWORK-SUBMIT-ALIAS"> 1063 <xsl:call-template name="substring-afterLastInstanceOf"> 1064 <xsl:with-param name="string" select="values/text"/> 1065 <xsl:with-param name="char">/</xsl:with-param> 1066 </xsl:call-template><br/> 1067 </xsl:for-each> 1068 </xsl:when> 1069 <xsl:otherwise> 1070 <xsl:for-each select="xproperties/X-BEDEWORK-ALIAS"> 1071 <xsl:call-template name="substring-afterLastInstanceOf"> 1072 <xsl:with-param name="string" select="values/text"/> 1073 <xsl:with-param name="char">/</xsl:with-param> 1074 </xsl:call-template><br/> 1075 </xsl:for-each> 1076 </xsl:otherwise> 1077 </xsl:choose> 1065 1078 </td> 1066 <td class="calcat">1067 <xsl:for-each select="categories/category">1068 <xsl:sort select="keyword"/>1069 <xsl:value-of select="keyword"/><br/>1070 </xsl:for-each>1071 </td>1072 <!-- <td>1073 <xsl:value-of select="calendar/name"/>1074 </td>-->1075 1079 <td> 1076 1080 <xsl:value-of select="description"/> … … 1112 1116 '<xsl:call-template name="escapeApos"><xsl:with-param name="str" select="form/xproperties/node()[name()='X-BEDEWORK-CONTACT']/parameters/node()[name()='X-BEDEWORK-PARAM-URL']"/></xsl:call-template>', 1113 1117 '<xsl:call-template name="escapeApos"><xsl:with-param name="str" select="form/xproperties/node()[name()='X-BEDEWORK-CONTACT']/parameters/node()[name()='X-BEDEWORK-PARAM-EMAIL']"/></xsl:call-template>', 1114 '<xsl:for-each select="form/xproperties/node()[name()='X-BEDEWORK- ALIAS']/values/text"><xsl:call-template name="escapeApos"><xsl:with-param name="str"><xsl:call-template name="substring-afterLastInstanceOf"><xsl:with-param name="string" select="."/><xsl:with-param name="char">/</xsl:with-param></xsl:call-template></xsl:with-param></xsl:call-template><br/></xsl:for-each>',1118 '<xsl:for-each select="form/xproperties/node()[name()='X-BEDEWORK-SUBMIT-ALIAS']/values/text"><xsl:call-template name="escapeApos"><xsl:with-param name="str"><xsl:call-template name="substring-afterLastInstanceOf"><xsl:with-param name="string" select="."/><xsl:with-param name="char">/</xsl:with-param></xsl:call-template></xsl:with-param></xsl:call-template><br/></xsl:for-each>', 1115 1119 '<xsl:call-template name="escapeApos"><xsl:with-param name="str" select="form/xproperties/node()[name()='X-BEDEWORK-CATEGORIES']/values/text"/></xsl:call-template>', 1116 1120 '<xsl:call-template name="escapeApos"><xsl:with-param name="str" select="form/xproperties/node()[name()='X-BEDEWORK-SUBMIT-COMMENT']/values/text"/></xsl:call-template>'); … … 2598 2602 <input type="checkbox" name="alias" onclick="toggleBedeworkXProperty('X-BEDEWORK-ALIAS','{$virtualPath}',this.checked)"> 2599 2603 <xsl:attribute name="value"><xsl:value-of select="$virtualPath"/></xsl:attribute> 2600 <xsl:if test=" path = /bedework/formElements/form/xproperties//X-BEDEWORK-ALIAS/values/text"><xsl:attribute name="checked"><xsl:value-of select="checked"/></xsl:attribute></xsl:if>2604 <xsl:if test="$virtualPath = /bedework/formElements/form/xproperties//X-BEDEWORK-ALIAS/values/text"><xsl:attribute name="checked"><xsl:value-of select="checked"/></xsl:attribute></xsl:if> 2601 2605 </input> 2602 2606 <xsl:choose> 2603 <xsl:when test=" path = /bedework/formElements/form/xproperties//X-BEDEWORK-ALIAS/values/text">2607 <xsl:when test="$virtualPath = /bedework/formElements/form/xproperties//X-BEDEWORK-ALIAS/values/text"> 2604 2608 <strong><xsl:value-of select="name"/></strong> 2605 2609 </xsl:when> … … 2670 2674 <input type="submit" name="updateSubmitEvent" value="Update Event"/> 2671 2675 <input type="button" name="publishEvent" value="Publish Event" onclick="changeClass('publishBox','visible')"/> 2672 <input type="submit" name="cancel " value="Cancel"/>2676 <input type="submit" name="cancelled" value="Cancel"/> 2673 2677 </xsl:when> 2674 2678 <xsl:otherwise> … … 2678 2682 <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> 2679 2683 </input> 2680 <input type="submit" name="cancel " value="Cancel"/>2684 <input type="submit" name="cancelled" value="Cancel"/> 2681 2685 </xsl:otherwise> 2682 2686 </xsl:choose> trunk/deployment/webadmin/webapp/resources/resources/bedeworkEventForm.js
r2171 r2172 284 284 output += '</table>'; 285 285 } 286 if (this.category != "") { 286 // categories: deprecated - there will be no categories because the topical 287 // areas selected by the submitter are only suggestions 288 /*if (this.category != "") { 287 289 output += '<p><strong>Type of Event:</strong> (if Topical Areas weren\'t sufficient)<br/>'; 288 290 output += this.category; 289 291 output += '</p>'; 290 } 292 }*/ 291 293 output += '<p>'; 292 294 if (this.notes != "") { trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl
r2171 r2172 566 566 <!--==== SINGLE EVENT ====--> 567 567 <xsl:template match="event"> 568 <xsl:variable name="subscriptionId" select="subscription/id"/>569 568 <xsl:variable name="calPath" select="calendar/encodedPath"/> 570 569 <xsl:variable name="guid" select="guid"/> … … 578 577 </xsl:variable> 579 578 <h2 class="{$statusClass}"> 580 <a id="linkToEvent" href="javascript:showLink('{$urlPrefix}/event/eventView.do? subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}')" title="generate link to this event">579 <a id="linkToEvent" href="javascript:showLink('{$urlPrefix}/event/eventView.do?calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}')" title="generate link to this event"> 581 580 link to this event 582 581 </a> … … 724 723 <th class="icalIcon" rowspan="2"> 725 724 <div id="eventIcons"> 726 <a href="{$privateCal}/event/addEventRef.do? subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">725 <a href="{$privateCal}/event/addEventRef.do?calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar"> 727 726 <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon.gif" width="20" height="26" border="0" alt="Add event to MyCalendar"/> 728 727 add to my calendar 729 728 </a> 730 729 <xsl:variable name="eventIcalName" select="concat($guid,'.ics')"/> 731 <a href="{$export}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">730 <a href="{$export}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"> 732 731 <img src="{$resourcesRoot}/images/std-ical_icon.gif" width="20" height="26" border="0" alt="Download this event"/> 733 732 download</a> … … 897 896 <xsl:for-each select="event"> 898 897 <xsl:variable name="id" select="id"/> 899 <xsl:variable name="subscriptionId" select="subscription/id"/>900 898 <xsl:variable name="calPath" select="calendar/encodedPath"/> 901 899 <xsl:variable name="guid" select="guid"/> … … 926 924 start/time = end/time"> 927 925 <td class="{$dateRangeStyle} center" colspan="3"> 928 <a href="{$eventView}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">926 <a href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 929 927 <xsl:value-of select="start/time"/> 930 928 </a> … … 933 931 <xsl:otherwise> 934 932 <td class="{$dateRangeStyle} right"> 935 <a href="{$eventView}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">933 <a href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 936 934 <xsl:choose> 937 935 <xsl:when test="start/allday = 'true' and … … 950 948 </td> 951 949 <td class="{$dateRangeStyle} center"> 952 <a href="{$eventView}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">-</a>950 <a href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">-</a> 953 951 </td> 954 952 <td class="{$dateRangeStyle} left"> 955 <a href="{$eventView}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">953 <a href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 956 954 <xsl:choose> 957 955 <xsl:when test="end/allday = 'true' and … … 991 989 <xsl:choose> 992 990 <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> 993 <a href="{$eventView}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">991 <a href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 994 992 <strong> 995 993 <xsl:value-of select="summary"/>: … … 1027 1025 </xsl:when> 1028 1026 <xsl:otherwise> 1029 <a href="{$eventView}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">1027 <a href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1030 1028 <xsl:value-of select="summary"/> 1031 1029 <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if> … … 1047 1045 </td> 1048 1046 <td class="icons"> 1049 <a href="{$privateCal}/event/addEventRef.do? subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">1047 <a href="{$privateCal}/event/addEventRef.do?calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar"> 1050 1048 <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="Add event to MyCalendar"/> 1051 1049 </a> 1052 1050 <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/> 1053 <a href="{$export}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">1051 <a href="{$export}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"> 1054 1052 <img src="{$resourcesRoot}/images/std-ical_icon_small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/> 1055 1053 </a> … … 1082 1080 <xsl:for-each select="event"> 1083 1081 <xsl:variable name="id" select="id"/> 1084 <xsl:variable name="subscriptionId" select="subscription/id"/>1085 1082 <xsl:variable name="calPath" select="calendar/encodedPath"/> 1086 1083 <xsl:variable name="guid" select="guid"/> … … 1097 1094 <xsl:if test="status='TENTATIVE'"><em>TENTATIVE: </em></xsl:if> 1098 1095 1099 <a class="title" href="{$eventView}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">1096 <a class="title" href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1100 1097 <xsl:value-of select="summary"/> 1101 1098 </a><xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if> … … 1107 1104 1108 1105 <xsl:text> </xsl:text> 1109 <a href="{$privateCal}/event/addEventRef.do? subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">1106 <a href="{$privateCal}/event/addEventRef.do?calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar"> 1110 1107 <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="Add event to MyCalendar"/> 1111 1108 </a> 1112 1109 <xsl:text> </xsl:text> 1113 1110 <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/> 1114 <a href="{$export}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">1111 <a href="{$export}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"> 1115 1112 <img src="{$resourcesRoot}/images/std-ical_icon_small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/> 1116 1113 </a> … … 1254 1251 <xsl:template match="event" mode="calendarLayout"> 1255 1252 <xsl:param name="dayPos"/> 1256 <xsl:variable name="subscriptionId" select="subscription/id"/>1257 1253 <xsl:variable name="calPath" select="calendar/encodedPath"/> 1258 1254 <xsl:variable name="guid" select="guid"/> … … 1278 1274 </xsl:variable> 1279 1275 <li> 1280 <a href="{$eventView}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" class="{$eventClass} {$subscriptionClass}">1276 <a href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" class="{$eventClass} {$subscriptionClass}"> 1281 1277 <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if> 1282 1278 <xsl:choose> … … 1613 1609 </xsl:if> 1614 1610 <xsl:for-each select="/bedework/searchResults/searchResult"> 1615 <xsl:variable name="subscriptionId" select="event/subscription/id"/>1616 1611 <xsl:variable name="calPath" select="event/calendar/encodedPath"/> 1617 1612 <xsl:variable name="guid" select="event/guid"/> … … 1625 1620 </td> 1626 1621 <td> 1627 <a href="{$eventView}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">1622 <a href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1628 1623 <xsl:value-of select="event/summary"/> 1629 1624 </a> trunk/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/default.xsl
r2171 r2172 565 565 <!--==== SINGLE EVENT ====--> 566 566 <xsl:template match="event"> 567 <xsl:variable name="subscriptionId" select="subscription/id"/>568 567 <xsl:variable name="calPath" select="calendar/encodedPath"/> 569 568 <xsl:variable name="guid" select="guid"/> … … 577 576 </xsl:variable> 578 577 <h2 class="{$statusClass}"> 579 <a id="linkToEvent" href="javascript:showLink('{$urlPrefix}/event/eventView.do? subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}')" title="generate link to this event">578 <a id="linkToEvent" href="javascript:showLink('{$urlPrefix}/event/eventView.do?calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}')" title="generate link to this event"> 580 579 link to this event 581 580 </a> … … 723 722 <th class="icalIcon" rowspan="2"> 724 723 <div id="eventIcons"> 725 <a href="{$privateCal}/event/addEventRef.do? subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">724 <a href="{$privateCal}/event/addEventRef.do?calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar"> 726 725 <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon.gif" width="20" height="26" border="0" alt="Add event to MyCalendar"/> 727 726 add to my calendar 728 727 </a> 729 728 <xsl:variable name="eventIcalName" select="concat($guid,'.ics')"/> 730 <a href="{$export}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">729 <a href="{$export}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"> 731 730 <img src="{$resourcesRoot}/images/std-ical_icon.gif" width="20" height="26" border="0" alt="Download this event"/> 732 731 download</a> … … 896 895 <xsl:for-each select="event"> 897 896 <xsl:variable name="id" select="id"/> 898 <xsl:variable name="subscriptionId" select="subscription/id"/>899 897 <xsl:variable name="calPath" select="calendar/encodedPath"/> 900 898 <xsl:variable name="guid" select="guid"/> … … 925 923 start/time = end/time"> 926 924 <td class="{$dateRangeStyle} center" colspan="3"> 927 <a href="{$eventView}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">925 <a href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 928 926 <xsl:value-of select="start/time"/> 929 927 </a> … … 932 930 <xsl:otherwise> 933 931 <td class="{$dateRangeStyle} right"> 934 <a href="{$eventView}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">932 <a href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 935 933 <xsl:choose> 936 934 <xsl:when test="start/allday = 'true' and … … 949 947 </td> 950 948 <td class="{$dateRangeStyle} center"> 951 <a href="{$eventView}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">-</a>949 <a href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">-</a> 952 950 </td> 953 951 <td class="{$dateRangeStyle} left"> 954 <a href="{$eventView}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">952 <a href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 955 953 <xsl:choose> 956 954 <xsl:when test="end/allday = 'true' and … … 990 988 <xsl:choose> 991 989 <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> 992 <a href="{$eventView}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">990 <a href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 993 991 <strong> 994 992 <xsl:value-of select="summary"/>: … … 1026 1024 </xsl:when> 1027 1025 <xsl:otherwise> 1028 <a href="{$eventView}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">1026 <a href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1029 1027 <xsl:value-of select="summary"/> 1030 1028 <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if> … … 1046 1044 </td> 1047 1045 <td class="icons"> 1048 <a href="{$privateCal}/event/addEventRef.do? subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">1046 <a href="{$privateCal}/event/addEventRef.do?calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar"> 1049 1047 <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="Add event to MyCalendar"/> 1050 1048 </a> 1051 1049 <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/> 1052 <a href="{$export}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">1050 <a href="{$export}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"> 1053 1051 <img src="{$resourcesRoot}/images/std-ical_icon_small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/> 1054 1052 </a> … … 1081 1079 <xsl:for-each select="event"> 1082 1080 <xsl:variable name="id" select="id"/> 1083 <xsl:variable name="subscriptionId" select="subscription/id"/>1084 1081 <xsl:variable name="calPath" select="calendar/encodedPath"/> 1085 1082 <xsl:variable name="guid" select="guid"/> … … 1096 1093 <xsl:if test="status='TENTATIVE'"><em>TENTATIVE: </em></xsl:if> 1097 1094 1098 <a class="title" href="{$eventView}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">1095 <a class="title" href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1099 1096 <xsl:value-of select="summary"/> 1100 1097 </a><xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if> … … 1106 1103 1107 1104 <xsl:text> </xsl:text> 1108 <a href="{$privateCal}/event/addEventRef.do? subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">1105 <a href="{$privateCal}/event/addEventRef.do?calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar"> 1109 1106 <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="Add event to MyCalendar"/> 1110 1107 </a> 1111 1108 <xsl:text> </xsl:text> 1112 1109 <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/> 1113 <a href="{$export}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">1110 <a href="{$export}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"> 1114 1111 <img src="{$resourcesRoot}/images/std-ical_icon_small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/> 1115 1112 </a> … … 1253 1250 <xsl:template match="event" mode="calendarLayout"> 1254 1251 <xsl:param name="dayPos"/> 1255 <xsl:variable name="subscriptionId" select="subscription/id"/>1256 1252 <xsl:variable name="calPath" select="calendar/encodedPath"/> 1257 1253 <xsl:variable name="guid" select="guid"/> … … 1277 1273 </xsl:variable> 1278 1274 <li> 1279 <a href="{$eventView}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" class="{$eventClass} {$subscriptionClass}">1275 <a href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" class="{$eventClass} {$subscriptionClass}"> 1280 1276 <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if> 1281 1277 <xsl:choose> … … 1612 1608 </xsl:if> 1613 1609 <xsl:for-each select="/bedework/searchResults/searchResult"> 1614 <xsl:variable name="subscriptionId" select="event/subscription/id"/>1615 1610 <xsl:variable name="calPath" select="event/calendar/encodedPath"/> 1616 1611 <xsl:variable name="guid" select="event/guid"/> … … 1624 1619 </td> 1625 1620 <td> 1626 <a href="{$eventView}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">1621 <a href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1627 1622 <xsl:value-of select="event/summary"/> 1628 1623 </a> trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.css
r2160 r2172 768 768 } 769 769 #bedework #commonListTable { 770 font-size: 0.9em; 770 771 margin-bottom: 2em; 771 772 } … … 784 785 background-color: #eee; 785 786 } 787 #commonListTable td.unclaimed { 788 background-color: #eee; 789 color: #900 !important; 790 font-style: italic; 791 } trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.xsl
r2170 r2172 349 349 <!--==== ADD and EDIT EVENT FORM ====--> 350 350 <xsl:template match="formElements" mode="eventForm"> 351 <xsl:variable name="subscriptionId" select="subscriptionId"/>352 351 <xsl:variable name="calPathEncoded" select="form/calendar/encodedPath"/> 353 352 <xsl:variable name="calPath" select="form/calendar/path"/> … … 377 376 <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 378 377 Delete: 379 <a href="{$delEvent}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="delete master (recurring event)">all</a>,380 <a href="{$delEvent}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="delete instance (recurring event)">instance</a>378 <a href="{$delEvent}&calPath={$calPath}&guid={$guid}" title="delete master (recurring event)">all</a>, 379 <a href="{$delEvent}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="delete instance (recurring event)">instance</a> 381 380 </xsl:when> 382 381 <xsl:otherwise> 383 <a href="{$delEvent}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="delete event">382 <a href="{$delEvent}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="delete event"> 384 383 <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 385 384 Delete … … 499 498 </a> 500 499 </div> 501 <strong>Step 4:</strong> S elect Topical Areas. <em>Optional.</em>500 <strong>Step 4:</strong> Suggest Topical Areas. <em>Optional.</em> 502 501 </div> 503 502 <div id="bwHelp-Review" class="invisible"> … … 1275 1274 </xsl:when> 1276 1275 <xsl:otherwise> 1277 <input type="checkbox" name="alias"> 1278 <xsl:attribute name="value"><xsl:value-of select="path"/></xsl:attribute> 1279 <xsl:if test="path = /bedework/formElements/form/xproperties//X-BEDEWORK-ALIAS/values/text"><xsl:attribute name="checked"><xsl:value-of select="checked"/></xsl:attribute></xsl:if> 1276 <xsl:variable name="virtualPath">/user<xsl:for-each select="ancestor-or-self::calendar/name">/<xsl:value-of select="."/></xsl:for-each></xsl:variable> 1277 <input type="checkbox" name="alias" onclick="toggleBedeworkXProperty('X-BEDEWORK-SUBMIT-ALIAS','{$virtualPath}',this.checked)"> 1278 <xsl:attribute name="value"><xsl:value-of select="$virtualPath"/></xsl:attribute> 1279 <xsl:if test="$virtualPath = /bedework/formElements/form/xproperties//X-BEDEWORK-SUBMIT-ALIAS/values/text"><xsl:attribute name="checked"><xsl:value-of select="checked"/></xsl:attribute></xsl:if> 1280 1280 </input> 1281 1281 <xsl:choose> 1282 <xsl:when test=" path = /bedework/formElements/form/xproperties//X-BEDEWORK-ALIAS/values/text">1282 <xsl:when test="$virtualPath = /bedework/formElements/form/xproperties//X-BEDEWORK-SUBMIT-ALIAS/values/text"> 1283 1283 <strong><xsl:value-of select="name"/></strong> 1284 1284 </xsl:when> … … 1478 1478 calendar administrator. You may edit or delete the 1479 1479 events until they have been accepted. Once your 1480 event is picked up, you 1481 will no longer see it in your list. 1480 event is published, you will no longer see it in your list. 1482 1481 </p> 1483 1482 <xsl:call-template name="eventListCommon"/> … … 1488 1487 <tr> 1489 1488 <th>Title</th> 1490 < !-- <th>Submitted</th> -->1489 <th>Claimed By</th> 1491 1490 <th>Start</th> 1492 1491 <th>End</th> 1493 <th> Categories</th>1492 <th>Topical Areas</th> 1494 1493 <th>Description</th> 1495 1494 </tr> 1496 1495 1497 1496 <xsl:for-each select="/bedework/events/event"> 1498 <xsl:variable name="subscriptionId" select="subscription/id"/>1499 1497 <xsl:variable name="calPath" select="calendar/encodedPath"/> 1500 1498 <xsl:variable name="guid" select="guid"/> … … 1502 1500 <tr> 1503 1501 <td> 1504 <a href="{$editEvent}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">1502 <a href="{$editEvent}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1505 1503 <xsl:choose> 1506 1504 <xsl:when test="summary != ''"> … … 1513 1511 </a> 1514 1512 </td> 1515 <!-- need to output created date 1516 <td class="date"> 1517 <xsl:value-of select="end/longdate"/> 1518 </td> --> 1513 <xsl:choose> 1514 <xsl:when test="xproperties/X-BEDEWORK-SUBMISSION-CLAIMANT"> 1515 <td> 1516 <xsl:value-of select="xproperties/X-BEDEWORK-SUBMISSION-CLAIMANT/values/text"/> 1517 <xsl:text> </xsl:text> 1518 (<xsl:value-of select="xproperties/X-BEDEWORK-SUBMISSION-CLAIMANT/parameters/X-BEDEWORK-SUBMISSION-CLAIMANT-USER"/>) 1519 </td> 1520 </xsl:when> 1521 <xsl:otherwise> 1522 <td class="unclaimed">unclaimed</td> 1523 </xsl:otherwise> 1524 </xsl:choose> 1519 1525 <td class="date"> 1520 1526 <xsl:value-of select="start/shortdate"/> … … 1528 1534 </td> 1529 1535 <td> 1530 <xsl:for-each select="categories/category"> 1531 <xsl:value-of select="word"/><br/> 1536 <xsl:for-each select="xproperties/X-BEDEWORK-SUBMIT-ALIAS"> 1537 <xsl:call-template name="substring-afterLastInstanceOf"> 1538 <xsl:with-param name="string" select="values/text"/> 1539 <xsl:with-param name="char">/</xsl:with-param> 1540 </xsl:call-template><br/> 1532 1541 </xsl:for-each> 1533 1542 </td> … … 1538 1547 Recurring event. 1539 1548 Edit: 1540 <a href="{$editEvent}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}">1549 <a href="{$editEvent}&calPath={$calPath}&guid={$guid}"> 1541 1550 master 1542 1551 </a> | 1543 <a href="{$editEvent}& subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">1552 <a href="{$editEvent}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1544 1553 instance 1545 1554 </a> trunk/deployment/websubmit/webapp/resources/demoskins/resources/bedeworkEventForm.js
r2160 r2172 322 322 // commit all xproperties back to the form 323 323 bwXProps.generate(formObj); 324 } 325 function toggleBedeworkXProperty(xprop,value,checked) { 326 if (!checked) { 327 bwXProps.removeByValue(xprop, value); 328 } else { 329 bwXProps.update(bwXPropertySubmitAlias,[],value,false); 330 } 324 331 } 325 332 // create table of form fields for review
