Changeset 1571
- Timestamp:
- 09/28/07 10:37:26
- Files:
-
- trunk/deployment/webadmin/webapp/resources/default/default/default.xsl (modified) (4 diffs)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl (modified) (2 diffs)
- trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webadmin/webapp/resources/default/default/default.xsl
r1564 r1571 49 49 this should be changed to point to a 50 50 web server over https to avoid mixed content errors, e.g., 51 <xsl:variable name="resourcesRoot" select="'https://mywebserver.edu/myresourcesdir'"/>51 <xsl:variable name="resourcesRoot">https://mywebserver.edu/myresourcesdir</xsl:variable> 52 52 --> 53 53 <xsl:variable name="resourcesRoot" select="/bedework/approot"/> … … 82 82 <xsl:variable name="event-update" select="/bedework/urlPrefixes/event/update/a/@href"/> 83 83 <xsl:variable name="event-selectCalForEvent" select="/bedework/urlPrefixes/event/selectCalForEvent/a/@href"/> 84 <xsl:variable name="event-showRdates" select="/bedework/urlPrefixes/event/showRdates"/>85 <xsl:variable name="event-setRdate" select="/bedework/urlPrefixes/event/setRdate"/>86 84 <xsl:variable name="event-initUpload" select="/bedework/urlPrefixes/event/initUpload/a/@href"/> 87 85 <xsl:variable name="event-upload" select="/bedework/urlPrefixes/event/upload/a/@href"/> … … 1610 1608 </tr> 1611 1609 </table> 1612 <!-- recurrence dates (rdates) -->1613 <!--<div id="recurrenceDatesButton">1614 <input type="button" value="manage recurrence & exception dates" onclick="launchSizedWindow('{$event-showRdates}','560','400')"/>1615 </div>-->1616 1610 <h4> 1617 1611 Recurrence and Exception Dates … … 2255 2249 </xsl:template> 2256 2250 2257 <xsl:template name="rdates"> 2258 <div id="bwDialogBox"> 2259 <form name="rdatesForm" id="rdates" action="{$event-setRdate}" method="post" onsubmit="setRdateDatetime(this)"> 2260 <h4 id="dialogTitle"> 2261 Recurrence and Exception Dates 2262 </h4> 2263 <div id="raContent"> 2264 <div class="dateStartEndBox" id="rdatesFormFields"> 2265 <div class="dateFields"> 2266 <input name="eventRdate.date" 2267 dojoType="dropdowndatepicker" 2268 formatLength="medium" 2269 value="today" 2270 saveFormat="yyyyMMdd" 2271 id="bwEventWidgeRdate" 2272 iconURL="{$resourcesRoot}/resources/calIcon.gif"/> 2273 </div> 2274 <div id="rdateTimeFields" class="timeFields"> 2275 <select name="eventRdate.hour"> 2276 <option value="00">00</option> 2277 <option value="01">01</option> 2278 <option value="02">02</option> 2279 <option value="03">03</option> 2280 <option value="04">04</option> 2281 <option value="05">05</option> 2282 <option value="06">06</option> 2283 <option value="07">07</option> 2284 <option value="08">08</option> 2285 <option value="09">09</option> 2286 <option value="10">10</option> 2287 <option value="11">11</option> 2288 <option value="12" selected="selected">12</option> 2289 <option value="13">13</option> 2290 <option value="14">14</option> 2291 <option value="15">15</option> 2292 <option value="16">16</option> 2293 <option value="17">17</option> 2294 <option value="18">18</option> 2295 <option value="19">19</option> 2296 <option value="20">20</option> 2297 <option value="21">21</option> 2298 <option value="22">22</option> 2299 <option value="23">23</option> 2300 </select> 2301 <select name="eventRdate.minute"> 2302 <option value="00" selected="selected">00</option> 2303 <option value="05">05</option> 2304 <option value="10">10</option> 2305 <option value="15">15</option> 2306 <option value="20">20</option> 2307 <option value="25">25</option> 2308 <option value="30">30</option> 2309 <option value="35">35</option> 2310 <option value="40">40</option> 2311 <option value="45">45</option> 2312 <option value="50">50</option> 2313 <option value="55">55</option> 2314 </select> 2315 <xsl:text> </xsl:text> 2316 2317 <select name="tzid" id="rdateTzid" class="timezones"> 2318 <xsl:if test="form/floating/input/@checked='checked'"><xsl:attribute name="disabled">disabled</xsl:attribute></xsl:if> 2319 <option value="-1">select timezone...</option> 2320 <xsl:variable name="rdateTzId" select="/bedework/rdates/tzid"/> 2321 <xsl:for-each select="/bedework/timezones/timezone"> 2322 <option> 2323 <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> 2324 <xsl:if test="$rdateTzId = id"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> 2325 <xsl:value-of select="name"/> 2326 </option> 2327 </xsl:for-each> 2328 </select> 2329 </div> 2330 <xsl:text> </xsl:text> 2331 <input type="submit" value="add rdate"/> 2332 <br/> 2333 <!-- dateonly event: this is temporary - should be determined by the main event --> 2334 <input type="checkbox" name="dateOnly" id="rdateDateOnly" onclick="swapRdateAllDay(this)" value="on"/> 2335 all day 2336 <!-- floating event: no timezone (and not UTC) --> 2337 <input type="checkbox" name="floating" id="rdateFloating" onclick="swapRdateFloatingTime(this)" value="on"/> 2338 floating 2339 <!-- store time as coordinated universal time (UTC) --> 2340 <input type="checkbox" name="storeUTC" id="rdateStoreUTC" onclick="swapRdateStoreUTC(this)" value="on"/> 2341 store as UTC 2342 </div> 2343 2344 <xsl:call-template name="messagesAndErrors"/> 2345 2346 <table cellspacing="0" class="rdatesTable"> 2347 <tr> 2348 <th colspan="2">Recurrence Dates</th> 2349 </tr> 2350 <xsl:choose> 2351 <xsl:when test="/bedework/rdates/rdate"> 2352 <xsl:for-each select="/bedework/rdates/rdate"> 2353 <tr> 2354 <td> 2355 <xsl:value-of select="longdate"/> 2356 <xsl:if test="allday='false'"> 2357 <xsl:text> </xsl:text> 2358 <xsl:value-of select="time"/> 2359 <xsl:if test="floating='false'"> 2360 <xsl:text> </xsl:text> 2361 <xsl:value-of select="timezone/id"/> 2362 </xsl:if> 2363 </xsl:if> 2364 </td> 2365 <td class="trash"> 2366 <xsl:variable name="datetime"><xsl:value-of select="unformatted"/></xsl:variable> 2367 <xsl:variable name="tzid" select="timezone/id"/> 2368 <xsl:variable name="dateOnly"><xsl:if test="allday = 'true'">&dateOnly=true</xsl:if></xsl:variable> 2369 <xsl:variable name="floating"><xsl:if test="floating = 'true'">&floating=true</xsl:if></xsl:variable> 2370 <xsl:variable name="storeUTC"><xsl:if test="utc = 'true'">&storeUTC=true</xsl:if></xsl:variable> 2371 <a href="{$event-setRdate}&datetime={$datetime}&tzid={$tzid}{$dateOnly}{$floating}{$storeUTC}&delete=true" title="remove"> 2372 <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="remove"/> 2373 </a> 2374 </td> 2375 </tr> 2376 </xsl:for-each> 2377 </xsl:when> 2378 <xsl:otherwise> 2379 <tr> 2380 <td colspan="2">No recurrence dates</td> 2381 </tr> 2382 </xsl:otherwise> 2383 </xsl:choose> 2384 </table> 2385 2386 <table cellspacing="0" class="rdatesTable"> 2387 <tr> 2388 <th colspan="2">Exception Dates</th> 2389 </tr> 2390 <tr> 2391 <td colspan="2" class="note"> 2392 exception dates are created by deleting an instance of a 2393 recurring event 2394 </td> 2395 </tr> 2396 <xsl:choose> 2397 <xsl:when test="/bedework/exdates/exdate"> 2398 <xsl:for-each select="/bedework/exdates/exdate"> 2399 <tr> 2400 <td> 2401 <xsl:value-of select="longdate"/> 2402 <xsl:if test="allday='false'"> 2403 <xsl:value-of select="time"/> 2404 <xsl:if test="floating='false'"> 2405 <xsl:value-of select="timezone/id"/> 2406 </xsl:if> 2407 </xsl:if> 2408 </td> 2409 <td class="trash"> 2410 <xsl:variable name="datetime"><xsl:value-of select="unformatted"/></xsl:variable> 2411 <xsl:variable name="tzid" select="timezone/id"/> 2412 <xsl:variable name="dateOnly"><xsl:if test="allday = 'true'">&dateOnly=true</xsl:if></xsl:variable> 2413 <xsl:variable name="floating"><xsl:if test="floating = 'true'">&floating=true</xsl:if></xsl:variable> 2414 <xsl:variable name="storeUTC"><xsl:if test="utc = 'true'">&storeUTC=true</xsl:if></xsl:variable> 2415 <a href="{$event-setRdate}&datetime={$datetime}&tzid={$tzid}{$dateOnly}{$floating}{$storeUTC}&exdelete=true" title="remove"> 2416 <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="remove"/> 2417 </a> 2418 </td> 2419 </tr> 2420 </xsl:for-each> 2421 </xsl:when> 2422 <xsl:otherwise> 2423 <tr> 2424 <td colspan="2">No exception dates</td> 2425 </tr> 2426 </xsl:otherwise> 2427 </xsl:choose> 2428 </table> 2429 2430 <input type="button" value="done" onclick="window.close()"/> 2431 </div> 2432 </form> 2433 </div> 2434 </xsl:template> 2435 2436 <xsl:template match="event" mode="displayEvent"> 2251 <xsl:template match="event" mode="displayEvent"> 2437 2252 <xsl:variable name="calPath" select="calendar/path"/> 2438 2253 <xsl:variable name="guid" select="guid"/> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl
r1536 r1571 64 64 <!-- DEFINE GLOBAL CONSTANTS --> 65 65 66 <!-- URL of html resources (images, css, other html); by default this is 67 set to the application root --> 68 <xsl:variable name="resourcesRoot" select="/bedework/approot"/> 69 66 70 <!-- URL of the XSL template directory --> 67 71 <!-- The approot is an appropriate place to put … … 72 76 and can be safely removed if you so choose. --> 73 77 <xsl:variable name="appRoot" select="/bedework/approot"/> 74 75 <!-- URL of html resources (images, css, other html); by default this is76 set to the application root -->77 <xsl:variable name="resourcesRoot" select="/bedework/approot"/>78 78 79 79 <!-- Properly encoded prefixes to the application actions; use these to build trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r1558 r1571 82 82 <xsl:variable name="event-showAccess" select="/bedework/urlPrefixes/event/showAccess/a/@href"/> 83 83 <xsl:variable name="event-setAccess" select="/bedework/urlPrefixes/event/setAccess/a/@href"/> 84 <!--<xsl:variable name="event-selectCalForEvent" select="/bedework/urlPrefixes/event/selectCalForEvent/a/@href"/>-->85 <xsl:variable name="event-showRdates" select="/bedework/urlPrefixes/event/showRdates"/>86 <xsl:variable name="event-showExdates" select="/bedework/urlPrefixes/event/showExdates"/>87 <xsl:variable name="event-setRdate" select="/bedework/urlPrefixes/event/setRdate"/>88 84 <xsl:variable name="editEvent" select="/bedework/urlPrefixes/event/editEvent"/> 89 85 <xsl:variable name="gotoEditEvent" select="/bedework/urlPrefixes/event/gotoEditEvent"/> … … 3123 3119 </tr> 3124 3120 </table> 3125 <!-- recurrence dates (rdates) -->3126 <!--<div id="recurrenceDatesButton">3127 <input type="button" value="manage recurrence & exception dates" onclick="launchSizedWindow('{$event-showRdates}','560','400')"/>3128 </div>-->3129 3121 <h4> 3130 3122 Recurrence and Exception Dates … … 3518 3510 <area shape="poly" alt="Midnight, 0000 hour" title="Midnight, 0000 hour" coords="172,96, 169,74, 161,73, 161,65, 168,63, 158,-1, 209,-1, 201,61, 200,62, 206,64, 205,74, 198,75, 196,96, 183,95" href="javascript:bwClockUpdateDateTimeForm('hour','0',{$hour24})" /> 3519 3511 </map> 3520 </div>3521 </xsl:template>3522 3523 <xsl:template name="rdates">3524 <div id="bwDialogBox">3525 <form name="rdatesForm" id="rdates" action="{$event-setRdate}" method="post" onsubmit="setRdateDatetime(this)">3526 <h4 id="dialogTitle">3527 Recurrence and Exception Dates3528 </h4>3529 <div id="raContent">3530 <div class="dateStartEndBox" id="rdatesFormFields">3531 <div class="dateFields">3532 <input name="eventRdate.date"3533 dojoType="dropdowndatepicker"3534 formatLength="medium"3535 value="today"3536 saveFormat="yyyyMMdd"3537 id="bwEventWidgeRdate"3538 iconURL="{$resourcesRoot}/resources/calIcon.gif"/>3539 </div>3540 <div id="rdateTimeFields" class="timeFields">3541 <select name="eventRdate.hour">3542 <option value="00">00</option>3543 <option value="01">01</option>3544 <option value="02">02</option>3545 <option value="03">03</option>3546 <option value="04">04</option>3547 <option value="05">05</option>3548 <option value="06">06</option>3549 <option value="07">07</option>3550 <option value="08">08</option>3551 <option value="09">09</option>3552 <option value="10">10</option>3553 <option value="11">11</option>3554 <option value="12" selected="selected">12</option>3555 <option value="13">13</option>3556 <option value="14">14</option>3557 <option value="15">15</option>3558 <option value="16">16</option>3559 <option value="17">17</option>3560 <option value="18">18</option>3561 <option value="19">19</option>3562 <option value="20">20</option>3563 <option value="21">21</option>3564 <option value="22">22</option>3565 <option value="23">23</option>3566 </select>3567 <select name="eventRdate.minute">3568 <option value="00" selected="selected">00</option>3569 <option value="05">05</option>3570 <option value="10">10</option>3571 <option value="15">15</option>3572 <option value="20">20</option>3573 <option value="25">25</option>3574 <option value="30">30</option>3575 <option value="35">35</option>3576 <option value="40">40</option>3577 <option value="45">45</option>3578 <option value="50">50</option>3579 <option value="55">55</option>3580 </select>3581 <xsl:text> </xsl:text>3582 3583 <select name="tzid" id="rdateTzid" class="timezones">3584 <xsl:if test="form/floating/input/@checked='checked'"><xsl:attribute name="disabled">disabled</xsl:attribute></xsl:if>3585 <option value="-1">select timezone...</option>3586 <xsl:variable name="rdateTzId" select="/bedework/rdates/tzid"/>3587 <xsl:for-each select="/bedework/timezones/timezone">3588 <option>3589 <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute>3590 <xsl:if test="$rdateTzId = id"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>3591 <xsl:value-of select="name"/>3592 </option>3593 </xsl:for-each>3594 </select>3595 </div>3596 <xsl:text> </xsl:text>3597 <input type="submit" value="add rdate"/>3598 <br/>3599 <!-- dateonly event: this is temporary - should be determined by the main event -->3600 <input type="checkbox" name="dateOnly" id="rdateDateOnly" onclick="swapRdateAllDay(this)" value="on"/>3601 all day3602 <!-- floating event: no timezone (and not UTC) -->3603 <input type="checkbox" name="floating" id="rdateFloating" onclick="swapRdateFloatingTime(this)" value="on"/>3604 floating3605 <!-- store time as coordinated universal time (UTC) -->3606 <input type="checkbox" name="storeUTC" id="rdateStoreUTC" onclick="swapRdateStoreUTC(this)" value="on"/>3607 store as UTC3608 </div>3609 3610 <xsl:call-template name="messagesAndErrors"/>3611 3612 <table cellspacing="0" class="rdatesTable">3613 <tr>3614 <th colspan="2">Recurrence Dates</th>3615 </tr>3616 <xsl:choose>3617 <xsl:when test="/bedework/rdates/rdate">3618 <xsl:for-each select="/bedework/rdates/rdate">3619 <tr>3620 <td>3621 <xsl:value-of select="longdate"/>3622 <xsl:if test="allday='false'">3623 <xsl:text> </xsl:text>3624 <xsl:value-of select="time"/>3625 <xsl:if test="floating='false'">3626 <xsl:text> </xsl:text>3627 <xsl:value-of select="timezone/id"/>3628 </xsl:if>3629 </xsl:if>3630 </td>3631 <td class="trash">3632 <xsl:variable name="datetime"><xsl:value-of select="unformatted"/></xsl:variable>3633 <xsl:variable name="tzid" select="timezone/id"/>3634 <xsl:variable name="dateOnly"><xsl:if test="allday = 'true'">&dateOnly=true</xsl:if></xsl:variable>3635 <xsl:variable name="floating"><xsl:if test="floating = 'true'">&floating=true</xsl:if></xsl:variable>3636 <xsl:variable name="storeUTC"><xsl:if test="utc = 'true'">&storeUTC=true</xsl:if></xsl:variable>3637 <a href="{$event-setRdate}&datetime={$datetime}&tzid={$tzid}{$dateOnly}{$floating}{$storeUTC}&delete=true" title="remove">3638 <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="remove"/>3639 </a>3640 </td>3641 </tr>3642 </xsl:for-each>3643 </xsl:when>3644 <xsl:otherwise>3645 <tr>3646 <td colspan="2">No recurrence dates</td>3647 </tr>3648 </xsl:otherwise>3649 </xsl:choose>3650 </table>3651 3652 <table cellspacing="0" class="rdatesTable">3653 <tr>3654 <th colspan="2">Exception Dates</th>3655 </tr>3656 <tr>3657 <td colspan="2" class="note">3658 exception dates are created by deleting an instance of a3659 recurring event3660 </td>3661 </tr>3662 <xsl:choose>3663 <xsl:when test="/bedework/exdates/exdate">3664 <xsl:for-each select="/bedework/exdates/exdate">3665 <tr>3666 <td>3667 <xsl:value-of select="longdate"/>3668 <xsl:if test="allday='false'">3669 <xsl:value-of select="time"/>3670 <xsl:if test="floating='false'">3671 <xsl:value-of select="timezone/id"/>3672 </xsl:if>3673 </xsl:if>3674 </td>3675 <td class="trash">3676 <xsl:variable name="datetime"><xsl:value-of select="unformatted"/></xsl:variable>3677 <xsl:variable name="tzid" select="timezone/id"/>3678 <xsl:variable name="dateOnly"><xsl:if test="allday = 'true'">&dateOnly=true</xsl:if></xsl:variable>3679 <xsl:variable name="floating"><xsl:if test="floating = 'true'">&floating=true</xsl:if></xsl:variable>3680 <xsl:variable name="storeUTC"><xsl:if test="utc = 'true'">&storeUTC=true</xsl:if></xsl:variable>3681 <a href="{$event-setRdate}&datetime={$datetime}&tzid={$tzid}{$dateOnly}{$floating}{$storeUTC}&exdelete=true" title="remove">3682 <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="remove"/>3683 </a>3684 </td>3685 </tr>3686 </xsl:for-each>3687 </xsl:when>3688 <xsl:otherwise>3689 <tr>3690 <td colspan="2">No exception dates</td>3691 </tr>3692 </xsl:otherwise>3693 </xsl:choose>3694 </table>3695 3696 <input type="button" value="done" onclick="window.close()"/>3697 </div>3698 </form>3699 3512 </div> 3700 3513 </xsl:template>
