Changeset 1783
- Timestamp:
- 03/17/08 14:59:14
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
releases/bedework-3.4.1/deployment/websubmit/webapp/resources/demoskins/default/default/default.xsl
r1726 r1783 467 467 <!-- Calendar --> 468 468 <!-- ======== --> 469 <!-- the string "user/" should not be hard coded; fix this -->470 469 <xsl:variable name="submissionCalendars"> 471 <xsl:value-of select="count(/bedework/myCalendars//calendar[ starts-with(path,/bedework/submissionsRoot/unencoded) and calType='1']) = '1'"/>470 <xsl:value-of select="count(/bedework/myCalendars//calendar[calType='1'])"/> 472 471 </xsl:variable> 473 472 <tr> … … 483 482 <xsl:choose> 484 483 <xsl:when test="$submissionCalendars = 1"> 485 <!-- there is only 1 writable calendar, so find it by looking down both trees at once-->486 <xsl:variable name="newCalPath"><xsl:value-of select="/bedework/myCalendars//calendar[ starts-with(path,/bedework/submissionsRoot/unencoded) andcalType='1']/path"/></xsl:variable>484 <!-- there is only 1 writable calendar, just send a hidden field --> 485 <xsl:variable name="newCalPath"><xsl:value-of select="/bedework/myCalendars//calendar[calType='1']/path"/></xsl:variable> 487 486 <input type="hidden" name="newCalPath" value="{$newCalPath}"/> 488 489 487 <span id="bwEventCalDisplay"> 490 488 <xsl:value-of select="$newCalPath"/> … … 493 491 <xsl:otherwise> 494 492 <select name="newCalPath" id="bwNewCalPathField"> 495 <xsl:for-each select="/bedework/myCalendars//calendar[ starts-with(path,/bedework/submissionsRoot/unencoded) andcalType='1']">493 <xsl:for-each select="/bedework/myCalendars//calendar[calType='1']"> 496 494 <option> 497 <xsl:attribute name="value"><xsl:value-of select=" /bedework/submissionsRoot/unencoded"/></xsl:attribute>495 <xsl:attribute name="value"><xsl:value-of select="path"/></xsl:attribute> 498 496 <xsl:value-of select="substring-after(substring-after(path,/bedework/submissionsRoot/unencoded),'/')"/> 499 497 </option>
