|
69 | 69 | </select> |
70 | 70 | </div><!-- |
71 | 71 | colpath --> |
72 | | - <xsl:if test="count(/bedework/calendars/calendar) > 1"> |
73 | | - <div id="bwEventListCol"> |
74 | | - <label for="colPathSetter"><xsl:copy-of select="$bwStr-EvLs-Calendar"/></label> |
75 | | - <select name="colPath" |
76 | | - onchange="setEventList(this.form,'calPath');" |
77 | | - id="colPathSetter"> |
78 | | - <xsl:for-each select="/bedework/calendars/calendar"> |
79 | | - <option> |
80 | | - <xsl:attribute name="value"><xsl:value-of select="path"/></xsl:attribute> |
81 | | - <xsl:if test="$calendarPath = path"> |
82 | | - <xsl:attribute name="selected">selected</xsl:attribute> |
83 | | - </xsl:if> |
84 | | - <xsl:value-of select="path"/> |
85 | | - </option> |
86 | | - </xsl:for-each> |
87 | | - </select> |
88 | | - </div> |
89 | | - </xsl:if> |
90 | | - <xsl:if test="count(/bedework/calendars/calendar) = 1"> |
91 | | - <div><input type="hidden" name="colPath" value="{/bedework/calendars/calendar/path}"/></div> |
92 | | - </xsl:if> |
93 | | - <xsl:if test="count(/bedework/calendars/calendar) = 0"> |
94 | | - <div><input type="hidden" name="colPath" value="/public/cals/MainCal"/></div> |
95 | | - </xsl:if><!-- |
| 72 | + <div id="bwEventListCol"> |
| 73 | + <xsl:choose> |
| 74 | + <xsl:when test="count(/bedework/calendars/calendar) > 1"> |
| 75 | + <label for="colPathSetter"><xsl:copy-of select="$bwStr-EvLs-Calendar"/></label> |
| 76 | + <select name="colPath" |
| 77 | + onchange="setEventList(this.form,'calPath');" |
| 78 | + id="colPathSetter"> |
| 79 | + <xsl:for-each select="/bedework/calendars/calendar"> |
| 80 | + <option> |
| 81 | + <xsl:attribute name="value"><xsl:value-of select="path"/></xsl:attribute> |
| 82 | + <xsl:if test="$calendarPath = path"> |
| 83 | + <xsl:attribute name="selected">selected</xsl:attribute> |
| 84 | + </xsl:if> |
| 85 | + <xsl:value-of select="path"/> |
| 86 | + </option> |
| 87 | + </xsl:for-each> |
| 88 | + </select> |
| 89 | + </xsl:when> |
| 90 | + <xsl:otherwise> |
| 91 | + <input type="hidden" name="colPath"> |
| 92 | + <xsl:attribute name="value"><xsl:value-of select="$calendarPath"/> |
| 93 | + </xsl:attribute> |
| 94 | + </input> |
| 95 | + </xsl:otherwise> |
| 96 | + </xsl:choose> |
| 97 | + </div><!-- |
96 | 98 | query --> |
97 | 99 | <xsl:variable name="queryVal"> |
98 | 100 | <xsl:choose> |
|
0 commit comments