Changeset 2088
- Timestamp:
- 03/03/09 16:42:59
- Files:
-
- trunk/deployment/webadmin/webapp/resources/default/default/default.css (modified) (2 diffs)
- trunk/deployment/webadmin/webapp/resources/resources/bedeworkEventForm.js (modified) (1 diff)
- trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.css (modified) (1 diff)
- trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.xsl (modified) (6 diffs)
- trunk/deployment/websubmit/webapp/resources/demoskins/resources/bedeworkEventForm.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webadmin/webapp/resources/default/default/default.css
r2080 r2088 314 314 display: inline; 315 315 font-size: 1.1em; 316 padding: 1em 0; 316 317 } 317 318 #bwSubmittedEventCommentBlock table { … … 328 329 } 329 330 #bwSubmittedEventCommentBlock p { 330 padding-top: 1em;331 331 clear: both; 332 332 } trunk/deployment/webadmin/webapp/resources/resources/bedeworkEventForm.js
r1966 r2088 277 277 } 278 278 if (this.category != "") { 279 output += '<table>'; 280 output += '<tr><th colspan="2">Suggested Category:</th></tr>'; 281 output += '<tr><td>Category:</td><td>' + this.category + '</td></tr>'; 282 output += '</table>'; 279 output += '<p><strong>Suggested Type of Event:</strong><br/>'; 280 output += this.category; 281 output += '</p>'; 283 282 } 284 283 output += '<p>'; trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.css
r1681 r2088 661 661 border: 1px solid #666 !important; 662 662 } 663 #bedework .aliasTree { 664 margin: 1em 0; 665 padding: 0; 666 } 667 #bedework .aliasTree li { 668 list-style: none !important; 669 margin: 0; 670 padding: 0; 671 } 672 #bedework .aliasTree li ul { 673 margin: 0 0 0.5em 0.75em; 674 padding-left: 10px; 675 } 676 #bedework img.folderForAliasTree { 677 padding: 0.5em 0.2em 0 0.5em; 678 } 663 679 #bedework #submitTable { 664 680 width: 98%; /* less than 100% helps avoid IE weirdness */ trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.xsl
r2087 r2088 471 471 </div> 472 472 <div id="bwHelp-Categories" class="invisible"> 473 <!-- this tab is now "topical areas - we will leave the ids named "categories" for now. --> 473 474 <div class="navButtons"> 474 475 <a href="javascript:show('bwEventTab-Contact','bwHelp-Contact','bwBottomNav-Contact'); hide('bwHelp-Categories','bwEventTab-Categories','bwBottomNav-Categories');"> … … 488 489 </a> 489 490 </div> 490 <strong>Step 4:</strong> Select Categories. <em>Optional.</em>491 <strong>Step 4:</strong> Select Topical Areas. <em>Optional.</em> 491 492 </div> 492 493 <div id="bwHelp-Review" class="invisible"> … … 535 536 <td class="fieldval"> 536 537 <xsl:choose> 537 <xsl:when test="$submissionCalendars >1">538 <xsl:when test="$submissionCalendars = 1"> 538 539 <!-- there is only 1 writable calendar, just send a hidden field --> 539 540 <xsl:variable name="newCalPath"><xsl:value-of select="/bedework/myCalendars//calendar[calType='1']/path"/></xsl:variable> … … 1051 1052 </div> 1052 1053 1053 <!-- Categories tab -->1054 <!-- ============== -->1054 <!-- Categories tab (now Topical areas) --> 1055 <!-- ================================== --> 1055 1056 <div id="bwEventTab-Categories" class="invisible"> 1056 <xsl:variable name="catCount" select="count(form/categories/all/category)"/> 1057 <!-- Topical area --> 1058 <!-- These are the subscriptions (aliases) where the events should show up. 1059 By selecting one or more of these, appropriate categories will be set on the event --> 1060 <ul class="aliasTree"> 1061 <!-- hard coding the "aliases" name is not best, but will do for now --> 1062 <xsl:apply-templates select="form/calendars/calendar/calendar[name='aliases']" mode="showEventFormAliases"> 1063 <xsl:with-param name="root">true</xsl:with-param> 1064 </xsl:apply-templates> 1065 </ul> 1066 <p class="subFormMessage"> 1067 Missing a topical area? Please describe what type of event you're submitting: 1068 </p> 1069 <div class="subForm"> 1070 <p> 1071 <label for="commentCategories">Type of event: </label> 1072 <input type="text" name="commentCategories" size="80"> 1073 <xsl:attribute name="value"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-CATEGORIES']/values/text"/></xsl:attribute> 1074 </input> 1075 </p> 1076 </div> 1077 <!-- xsl:variable name="catCount" select="count(form/categories/all/category)"/> 1057 1078 <xsl:choose> 1058 1079 <xsl:when test="not(form/categories/all/category)"> … … 1094 1115 </input> 1095 1116 </p> 1096 </div >1117 </div--> 1097 1118 </div> 1098 1119 … … 1211 1232 </div> 1212 1233 </div> 1234 </xsl:template> 1235 1236 <xsl:template match="calendar" mode="showEventFormAliases"> 1237 <xsl:param name="root">false</xsl:param> 1238 <li> 1239 <xsl:if test="$root != 'true'"> 1240 <!-- hide the root calendar. --> 1241 <xsl:choose> 1242 <xsl:when test="calType = '0'"> 1243 <!-- no direct selecting of folders or folder aliases: we only want users to select the 1244 underlying calendar aliases --> 1245 <!--img src="{$resourcesRoot}/resources/catIcon.gif" width="13" height="13" alt="folder" class="folderForAliasTree" border="0"/--> 1246 <input type="checkbox" name="forDiplayOnly" disabled="disabled"/> 1247 <xsl:value-of select="name"/> 1248 </xsl:when> 1249 <xsl:otherwise> 1250 <input type="checkbox" name="alias"> 1251 <xsl:attribute name="value"><xsl:value-of select="path"/></xsl:attribute> 1252 <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> 1253 </input> 1254 <xsl:value-of select="name"/> 1255 </xsl:otherwise> 1256 </xsl:choose> 1257 </xsl:if> 1258 1259 <xsl:if test="calendar"> 1260 <ul> 1261 <xsl:apply-templates select="calendar" mode="showEventFormAliases"/> 1262 </ul> 1263 </xsl:if> 1264 </li> 1213 1265 </xsl:template> 1214 1266 trunk/deployment/websubmit/webapp/resources/demoskins/resources/bedeworkEventForm.js
r1967 r2088 271 271 // Depends on bedeworkXProperties.js 272 272 // Set application local x-properties here. 273 274 // Submission comments as x-properties 275 // Only return those comments that contain non-empty values; 276 // throw out the subfields if main field has no value. 277 278 if (formObj["commentLocationAddress"].value != "") { 279 bwXProps.update(bwXPropertyLocation, 280 [[bwXParamSubAddress,formObj["commentLocationSubaddress"].value], 281 [bwXParamURL,formObj["commentLocationURL"].value]], 282 formObj["commentLocationAddress"].value,true); 283 } 284 if (formObj["commentContactName"].value != "") { 285 bwXProps.update(bwXPropertyContact, 286 [[bwXParamPhone,formObj["commentContactPhone"].value], 287 [bwXParamURL,formObj["commentContactURL"].value], 288 [bwXParamEmail,formObj["commentContactEmail"].value]], 289 formObj["commentContactName"].value,true); 290 } 291 if (formObj["commentCategories"].value) { 292 bwXProps.update(bwXPropertyCategories,[],formObj["commentCategories"].value,true); 293 } 294 if (formObj["commentNotes"].value) { 295 bwXProps.update(bwXPropertySubmitComment,[],formObj["commentNotes"].value,true); 296 } 273 297 274 298 // X-BEDEWORK-IMAGE and its parameters:
