Changeset 2913
- Timestamp:
- 05/21/10 17:02:46
- Files:
-
- trunk/deployment/webuser/webapp/resources/demoskins/default/strings.xsl (modified) (1 diff)
- trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/css/bwScheduling.css (modified) (1 diff)
- trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/eventForm.xsl (modified) (3 diffs)
- trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/head.xsl (modified) (1 diff)
- trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/javascript/bedeworkScheduling.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webuser/webapp/resources/demoskins/default/strings.xsl
r2900 r2913 310 310 <xsl:variable name="bwStr-AEEF-End">End:</xsl:variable> 311 311 <xsl:variable name="bwStr-AEEF-Duration">Duration</xsl:variable> 312 <xsl:variable name="bwStr-AEEF-Duration-Sched">Duration:</xsl:variable> 312 313 <xsl:variable name="bwStr-AEEF-Days">days</xsl:variable> 313 314 <xsl:variable name="bwStr-AEEF-Hours">hours</xsl:variable> trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/css/bwScheduling.css
r2905 r2913 181 181 margin: 0; 182 182 } 183 #bwScheduleControls #bwFbOptionsMenu li { 184 margin: 0.5em; 185 } 186 #bwScheduleControls .schedTime { 187 padding-left: 1em; 188 } trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/eventForm.xsl
r2907 r2913 1481 1481 </td> 1482 1482 <td class="dateLabel"> 1483 Start:1483 <strong><xsl:copy-of select="$bwStr-AEEF-Start"/></strong> 1484 1484 </td> 1485 <td> 1486 1487 </td> 1488 <td class="time"> 1489 1485 <td class="schedDate"> 1486 <input type="text" name="bwEventWidgetStartDateSched" id="bwEventWidgetStartDateSched" size="10"/> 1487 <xsl:text> </xsl:text> 1488 <span class="schedTime"> 1489 <xsl:copy-of select="form/start/hour/*"/> 1490 <xsl:copy-of select="form/start/minute/*"/> 1491 <xsl:if test="form/start/ampm"> 1492 <xsl:copy-of select="form/start/ampm/*"/> 1493 </xsl:if> 1494 </span> 1490 1495 </td> 1491 1496 </tr> … … 1504 1509 </td> 1505 1510 <td> 1506 <input type="button" id="bwSchedOptions" onclick="bwGrid.showOptions();"value="Options ▼"/>1511 <input type="button" id="bwSchedOptions" value="Options ▼"/> 1507 1512 <ul id="bwFbOptionsMenu"> 1508 1513 <li>24 Hours</li> … … 1510 1515 </td> 1511 1516 <td class="dateLabel"> 1512 End:1517 <strong><xsl:copy-of select="$bwStr-AEEF-Duration-Sched"/></strong> 1513 1518 </td> 1514 <td> 1515 </td> 1516 <td class="time"> 1519 <td class="schedDate"> 1520 <!-- force day, hour, minute format --> 1521 <input type="text" name="eventDuration.daysStr" size="2" id="durationDaysSched"> 1522 <xsl:attribute name="value"> 1523 <xsl:choose> 1524 <xsl:when test="/bedework/creating='true' and form/allDay/input/@checked='checked'">1</xsl:when> 1525 <xsl:when test="/bedework/creating='true' and form/allDay/input/@checked!='checked'">0</xsl:when> 1526 <xsl:otherwise><xsl:value-of select="form/end/duration/days/input/@value"/></xsl:otherwise> 1527 </xsl:choose> 1528 </xsl:attribute> 1529 </input> 1530 <xsl:copy-of select="$bwStr-AEEF-Days"/> 1531 <xsl:text> </xsl:text> 1532 <span id="durationHrMinSched"> 1533 <input type="text" name="eventDuration.hoursStr" size="2" id="durationHoursSched"> 1534 <xsl:attribute name="value"> 1535 <xsl:choose> 1536 <xsl:when test="/bedework/creating='true'">1</xsl:when> 1537 <xsl:otherwise><xsl:value-of select="form/end/duration/hours/input/@value"/></xsl:otherwise> 1538 </xsl:choose> 1539 </xsl:attribute> 1540 </input> 1541 <xsl:copy-of select="$bwStr-AEEF-Hours"/> 1542 <xsl:text> </xsl:text> 1543 <input type="text" name="eventDuration.minutesStr" size="2" id="durationMinutesSched"> 1544 <xsl:attribute name="value"> 1545 <xsl:choose> 1546 <xsl:when test="/bedework/creating='true'">0</xsl:when> 1547 <xsl:otherwise><xsl:value-of select="form/end/duration/minutes/input/@value"/></xsl:otherwise> 1548 </xsl:choose> 1549 </xsl:attribute> 1550 </input> 1551 <xsl:copy-of select="$bwStr-AEEF-Minutes"/> 1552 </span> 1517 1553 </td> 1518 1554 </tr> 1519 1555 </table> 1520 <input type="button" id="getJson" onclick="bwGrid.requestFreeBusy('{$requestFreeBusy}');" value="development: get freebusy"/> 1556 1557 <!-- input type="button" id="getJson" onclick="bwGrid.requestFreeBusy('{$requestFreeBusy}');" value="development: get freebusy"/--> 1521 1558 </div> 1522 1559 </div> trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/head.xsl
r2910 r2913 134 134 }).attr("readonly", "readonly"); 135 135 $("#bwEventWidgetRdate").val('<xsl:value-of select="substring-before(/bedework/formElements/form/start/rfc3339DateTime,'T')"/>'); 136 137 // meeting startdate widget 138 $("#bwEventWidgetStartDateSched").datepicker({ 139 defaultDate: new Date(<xsl:value-of select="/bedework/formElements/form/start/yearText/input/@value"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected = 'selected']/@value) - 1"/>, <xsl:value-of select="/bedework/formElements/form/start/day/select/option[@selected = 'selected']/@value"/>) 140 }).attr("readonly", "readonly"); 141 $("#bwEventWidgetStartDateSched").val('<xsl:value-of select="substring-before(/bedework/formElements/form/start/rfc3339DateTime,'T')"/>'); 142 136 143 } 137 144 </xsl:comment> trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/javascript/bedeworkScheduling.js
r2910 r2913 374 374 this.hourDivision = val; 375 375 this.display(); 376 }377 378 this.showOptions = function() {379 $("#bwFbOptionsMenu").show("slow");380 376 } 381 377 … … 804 800 ); 805 801 802 // now add some actions 803 // to the elements of the freebusy control buttons ... 804 // while these are not actually part of the grid, the 805 // actions exposed interact with it 806 807 $("#bwSchedOptions").click(function() { 808 alert("?"); 809 $("bwFbOptionsMenu").show("fast"); 810 }); 811 806 812 807 813 } catch (e) {
