Changeset 1682
- Timestamp:
- 12/19/07 01:00:44
- Files:
-
- trunk/deployment/resources/xsl/default/default/errors.xsl (modified) (1 diff)
- trunk/deployment/webadmin/webapp/resources/default/default/default.xsl (modified) (3 diffs)
- trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.xsl (modified) (7 diffs)
- trunk/deployment/websubmit/webapp/resources/demoskins/resources/bedeworkEventForm.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/resources/xsl/default/default/errors.xsl
r1680 r1682 245 245 </xsl:when> 246 246 <xsl:when test="id='org.bedework.validation.error.insubmissionscalendar'"> 247 Error: to publish this event, please select a public calendar247 To publish this event, you must move it off the submitted events calendar onto a public calendar. 248 248 </xsl:when> 249 249 trunk/deployment/webadmin/webapp/resources/default/default/default.xsl
r1681 r1682 891 891 <tr> 892 892 <th>Title</th> 893 <th>Start Date</th>894 <th>End Date</th>893 <th>Start</th> 894 <th>End</th> 895 895 <xsl:choose> 896 896 <xsl:when test="$pending = 'true'"> … … 1044 1044 <xsl:attribute name="value"><xsl:value-of select="@value"/></xsl:attribute> 1045 1045 <xsl:if test="@selected"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> 1046 <xsl:value-of select="substring-after(node(),'/public/')"/> 1046 <xsl:choose> 1047 <xsl:when test="starts-with(node(),/bedework/submissionsRoot/unencoded)"> 1048 submitted events 1049 </xsl:when> 1050 <xsl:otherwise> 1051 <xsl:value-of select="substring-after(node(),'/public/')"/> 1052 </xsl:otherwise> 1053 </xsl:choose> 1047 1054 </option> 1048 1055 </xsl:for-each> … … 1059 1066 <option> 1060 1067 <xsl:attribute name="value"><xsl:value-of select="@value"/></xsl:attribute> 1061 <xsl:if test="@selected"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> 1062 <xsl:value-of select="substring-after(node(),'/public/')"/> 1068 <xsl:if test="@selected"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> 1069 <xsl:choose> 1070 <xsl:when test="starts-with(node(),/bedework/submissionsRoot/unencoded)"> 1071 submitted events 1072 </xsl:when> 1073 <xsl:otherwise> 1074 <xsl:value-of select="substring-after(node(),'/public/')"/> 1075 </xsl:otherwise> 1076 </xsl:choose> 1063 1077 </option> 1064 1078 </xsl:for-each> trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.xsl
r1680 r1682 75 75 <xsl:variable name="initEvent" select="/bedework/urlPrefixes/event/initEvent"/> 76 76 <xsl:variable name="initPendingEvents" select="/bedework/urlPrefixes/event/initPendingEvents"/> 77 <xsl:variable name="event-fetchForUpdate" select="/bedework/urlPrefixes/event/fetchForUpdate/a/@href"/>78 77 <xsl:variable name="addEvent" select="/bedework/urlPrefixes/event/addEvent"/> 79 78 <xsl:variable name="editEvent" select="/bedework/urlPrefixes/event/editEvent"/> … … 106 105 </head> 107 106 <body> 107 <xsl:if test="/bedework/page = 'editEvent' and 108 normalize-space(/bedework/formElements/form/xproperties/xproperty[@name='X-BEDEWORK-SUBMIT-COMMENT']/value) != ''"> 109 <xsl:attribute name="onload">getComments('standardForm','<xsl:value-of select="/bedework/formElements/form/xproperties/xproperty[@name='X-BEDEWORK-SUBMIT-COMMENT']/value"/>');</xsl:attribute> 110 </xsl:if> 108 111 <div id="bedework"><!-- main wrapper div --> 109 112 <xsl:call-template name="header"/> … … 355 358 </table> 356 359 </xsl:if> 357 358 <!-- event form submenu -->359 360 <!--361 <ul id="eventFormTabs" class="submenu">362 <li class="selected">363 <a href="javascript:setTab('eventFormTabs',0); show('bwEventTab-Details'); hide('bwEventTab-Location','bwEventTab-Categories','bwEventTab-Contact');">364 1. details365 </a>366 </li>367 <li>368 <a href="javascript:setTab('eventFormTabs',1); show('bwEventTab-Location'); hide('bwEventTab-Details','bwEventTab-Categories','bwEventTab-Contact');">369 2. location370 </a>371 </li>372 <li>373 <a href="javascript:setTab('eventFormTabs',2); show('bwEventTab-Contact'); hide('bwEventTab-Details','bwEventTab-Location','bwEventTab-Categories');">374 3. contact375 </a>376 </li>377 <li>378 <a href="javascript:setTab('eventFormTabs',3); show('bwEventTab-Categories'); hide('bwEventTab-Details','bwEventTab-Location','bwEventTab-Contact');">379 4. categories380 </a>381 </li>382 </ul>383 -->384 360 385 361 <div id="instructions"> … … 886 862 </xsl:when> 887 863 <xsl:otherwise> 888 <textarea name="description" cols="60" rows="4" id="bwEventDesc ription">864 <textarea name="description" cols="60" rows="4" id="bwEventDesc"> 889 865 <xsl:value-of select="form/desc/textarea"/> 890 866 </textarea> … … 1332 1308 <th>Title</th> 1333 1309 <!-- <th>Submitted</th> --> 1334 <th>Start Date</th>1335 <th>End Date</th>1310 <th>Start</th> 1311 <th>End</th> 1336 1312 <th>Categories</th> 1337 1313 <th>Description</th> … … 1345 1321 <tr> 1346 1322 <td> 1347 <a href="{$e vent-fetchForUpdate}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">1323 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1348 1324 <xsl:choose> 1349 1325 <xsl:when test="summary != ''"> … … 1381 1357 Recurring event. 1382 1358 Edit: 1383 <a href="{$e vent-fetchForUpdate}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}">1359 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}"> 1384 1360 master 1385 1361 </a> | 1386 <a href="{$e vent-fetchForUpdate}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">1362 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1387 1363 instance 1388 1364 </a> trunk/deployment/websubmit/webapp/resources/demoskins/resources/bedeworkEventForm.js
r1673 r1682 242 242 function setEventFields(formObj) { 243 243 setDates(formObj); 244 setComment (formObj);244 setComments(formObj); 245 245 setRecurrence(formObj); 246 246 setAccessHow(formObj,1); … … 260 260 formObj["eventEndDate.day"].value = endDate.getDate(); 261 261 } 262 function setComment (formObj) {262 function setComments(formObj) { 263 263 // set the submission comments (location, contact, and category suggestions) 264 264 // in a parsable format that can be filtered on output. … … 276 276 277 277 formObj["xbwsubmitcomment"].value = comment; 278 } 279 function getComments(formId,comment) { 280 // get the submission comments (location, contact, and category suggestions) 281 // and load them into the form 282 var formObj = document.getElementById(formId); 283 284 var commentVals = comment.split("\t"); 285 formObj["commentLocationAddress"].value = (commentVals[0] == undefined) ? "" : commentVals[0]; 286 formObj["commentLocationSubaddress"].value = (commentVals[2] == undefined) ? "" : commentVals[2]; 287 formObj["commentLocationURL"].value = (commentVals[2] == undefined) ? "" : commentVals[2]; 288 formObj["commentContactName"].value = (commentVals[3] == undefined) ? "" : commentVals[3]; 289 formObj["commentContactPhone"].value = (commentVals[4] == undefined) ? "" : commentVals[4]; 290 formObj["commentContactURL"].value = (commentVals[5] == undefined) ? "" : commentVals[5]; 291 formObj["commentContactEmail"].value = (commentVals[6] == undefined) ? "" : commentVals[6]; 292 formObj["commentCategories"].value = (commentVals[7] == undefined) ? "" : commentVals[7]; 293 formObj["commentNotes"].value = (commentVals[8] == undefined) ? "" : commentVals[8]; 278 294 } 279 295 // create table of form fields for review
