Changeset 2016
- Timestamp:
- 01/09/09 04:28:15
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webadmin/webapp/resources/default/default/default.xsl
r2015 r2016 212 212 <!-- the following variable can be set to "true" or "false"; 213 213 to use jQuery widgets and fancier UI features, set to false - these are 214 not guaranteed to work in portals. Setting to true will make the 215 add/edit event form much faster, but will not support internationalization. --> 214 not guaranteed to work in portals. --> 216 215 <xsl:variable name="portalFriendly">false</xsl:variable> 217 216 … … 1087 1086 <tr> 1088 1087 <td class="fieldName"> 1089 Calendar:** 1088 Calendar: 1089 <input type="hidden" name="newCalPath" value=""> 1090 <xsl:attribute name="value"><xsl:value-of select="form/calendar/all/select/option[@selected]/@value"/></xsl:attribute> 1091 </input> 1090 1092 </td> 1091 1093 <td> 1092 1094 <xsl:if test="form/calendar/preferred/select/option"> 1093 < select name="prefCalendarId">1094 <option>1095 <xsl:attribute name="value"><xsl:value-of select="form/calendar/path"/></xsl:attribute>1096 Select preferred:1095 <!-- Display the preferred calendars by default if they exist --> 1096 <select name="bwPreferredCalendars" id="bwPreferredCalendars" onchange="this.form.newCalPath.value = this.value"> 1097 <option value=""> 1098 Select: 1097 1099 </option> 1098 1100 <xsl:for-each select="form/calendar/preferred/select/option"> … … 1111 1113 </option> 1112 1114 </xsl:for-each> 1113 </select><br/> 1114 or Calendar (all): 1115 </select> 1115 1116 </xsl:if> 1116 <select name="calendarId"> 1117 <option> 1118 <xsl:attribute name="value"><xsl:value-of select="form/calendar/path"/></xsl:attribute> 1117 <!-- hide the listing of all calendars if preferred calendars exist, otherwise show them --> 1118 <select name="bwAllCalendars" id="bwAllCalendars" onchange="this.form.newCalPath.value = this.value;"> 1119 <xsl:if test="form/calendar/preferred/select/option"> 1120 <xsl:attribute name="class">invisible</xsl:attribute> 1121 </xsl:if> 1122 <option value=""> 1119 1123 Select: 1120 1124 </option> … … 1136 1140 </select> 1137 1141 <xsl:text> </xsl:text> 1142 <!-- allow for toggling between the preferred and all calendars listings if preferred 1143 calendars exist --> 1144 <xsl:if test="form/calendar/preferred/select/option"> 1145 <input type="radio" name="toggleCalendarLists" value="preferred" checked="checked" onclick="changeClass('bwPreferredCalendars','shown');changeClass('bwAllCalendars','invisible');this.form.newCalPath.value = this.form.bwPreferredCalendars.value;"/> 1146 preferred 1147 <input type="radio" name="toggleCalendarLists" value="all" onclick="changeClass('bwPreferredCalendars','invisible');changeClass('bwAllCalendars','shown');this.form.newCalPath.value = this.form.bwAllCalendars.value;"/> 1148 all 1149 </xsl:if> 1150 <br/> 1138 1151 <span id="calDescriptionsLink"> 1139 1152 <a href="javascript:launchSimpleWindow('{$calendar-fetchDescriptions}')">calendar descriptions</a> … … 2140 2153 <tr> 2141 2154 <td class="fieldName"> 2142 Location: **2155 Location: 2143 2156 </td> 2144 2157 <td> 2145 2158 <xsl:if test="form/location/preferred/select/option"> 2146 <select name="prefLocationId" id=" eventFormPrefLocationList">2159 <select name="prefLocationId" id="bwPreferredLocationList"> 2147 2160 <option value=""> 2148 Select preferred:2161 Select: 2149 2162 </option> 2150 2163 <xsl:copy-of select="form/location/preferred/select/*"/> 2151 2164 </select> 2152 or Location (all):2153 2165 </xsl:if> 2154 <select name="allLocationId" id="eventFormLocationList"> 2166 <select name="allLocationId" id="bwAllLocationList"> 2167 <xsl:if test="form/location/preferred/select/option"> 2168 <xsl:attribute name="class">invisible</xsl:attribute> 2169 </xsl:if> 2155 2170 <option value=""> 2156 2171 Select: … … 2158 2173 <xsl:copy-of select="form/location/all/select/*"/> 2159 2174 </select> 2175 <xsl:text> </xsl:text> 2176 <!-- allow for toggling between the preferred and all location listings if preferred 2177 locations exist --> 2178 <xsl:if test="form/location/preferred/select/option"> 2179 <input type="radio" name="toggleLocationLists" value="preferred" checked="checked" onclick="changeClass('bwPreferredLocationList','shown');changeClass('bwAllLocationList','invisible');"/> 2180 preferred 2181 <input type="radio" name="toggleLocationLists" value="all" onclick="changeClass('bwPreferredLocationList','invisible');changeClass('bwAllLocationList','shown');"/> 2182 all 2183 </xsl:if> 2160 2184 </td> 2161 2185 </tr> … … 2199 2223 <tr> 2200 2224 <td class="fieldName"> 2201 Contact: **2225 Contact: 2202 2226 </td> 2203 2227 <td> 2204 2228 <xsl:if test="form/contact/preferred/select/option"> 2205 <select name="prefContactId" id=" eventFormContactList">2229 <select name="prefContactId" id="bwPreferredContactList"> 2206 2230 <option value=""> 2207 Select preferred:2231 Select: 2208 2232 </option>option> 2209 2233 <xsl:copy-of select="form/contact/preferred/select/*"/> 2210 2234 </select> 2211 or Contact (all):2212 2235 </xsl:if> 2213 <select name="allContactId" id="eventFormPrefContactList"> 2236 <select name="allContactId" id="bwAllContactList"> 2237 <xsl:if test="form/contact/preferred/select/option"> 2238 <xsl:attribute name="class">invisible</xsl:attribute> 2239 </xsl:if> 2214 2240 <option value=""> 2215 2241 Select: … … 2217 2243 <xsl:copy-of select="form/contact/all/select/*"/> 2218 2244 </select> 2245 <xsl:text> </xsl:text> 2246 <!-- allow for toggling between the preferred and all contacts listings if preferred 2247 contacts exist --> 2248 <xsl:if test="form/contact/preferred/select/option"> 2249 <input type="radio" name="toggleContactLists" value="preferred" checked="checked" onclick="changeClass('bwPreferredContactList','shown');changeClass('bwAllContactList','invisible');"/> 2250 preferred 2251 <input type="radio" name="toggleContactLists" value="all" onclick="changeClass('bwPreferredContactList','invisible');changeClass('bwAllContactList','shown');"/> 2252 all 2253 </xsl:if> 2219 2254 </td> 2220 2255 </tr> … … 2224 2259 <tr> 2225 2260 <td class="fieldName"> 2226 Categories: **2261 Categories: 2227 2262 </td> 2228 2263 <td> 2229 2264 <xsl:if test="form/categories/preferred/category and /bedework/creating='true'"> 2230 <input type="radio" name="categoryCheckboxes" value="preferred" checked="checked" onclick="changeClass('preferredCategoryCheckboxes','shown');changeClass('allCategoryCheckboxes','invisible');"/> showpreferred2231 <input type="radio" name="categoryCheckboxes" value="all" onclick="changeClass('preferredCategoryCheckboxes','invisible');changeClass('allCategoryCheckboxes','shown')"/> showall<br/>2265 <input type="radio" name="categoryCheckboxes" value="preferred" checked="checked" onclick="changeClass('preferredCategoryCheckboxes','shown');changeClass('allCategoryCheckboxes','invisible');"/>preferred 2266 <input type="radio" name="categoryCheckboxes" value="all" onclick="changeClass('preferredCategoryCheckboxes','invisible');changeClass('allCategoryCheckboxes','shown')"/>all<br/> 2232 2267 <table cellpadding="0" id="preferredCategoryCheckboxes"> 2233 2268 <tr> … … 2304 2339 <td colspan="2" style="padding-top: 1em;"> 2305 2340 <span class="fieldInfo"> 2306 **<strong>If "preferred values" are enabled</strong>2307 by your administrator, the ca tegory, location, and contact lists will2341 <strong>If "preferred values" are enabled</strong> 2342 by your administrator, the calendar, category, location, and contact lists will 2308 2343 contain only those value you've used previously. If you don't find the value 2309 2344 you need in one of these lists, use the "all" list adjacent to each
