Changeset 2913

Show
Ignore:
Timestamp:
05/21/10 17:02:46
Author:
johnsa
Message:

user client: more work on the "meeting" tab - addition of date widgets

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webuser/webapp/resources/demoskins/default/strings.xsl

    r2900 r2913  
    310310  <xsl:variable name="bwStr-AEEF-End">End:</xsl:variable> 
    311311  <xsl:variable name="bwStr-AEEF-Duration">Duration</xsl:variable> 
     312  <xsl:variable name="bwStr-AEEF-Duration-Sched">Duration:</xsl:variable> 
    312313  <xsl:variable name="bwStr-AEEF-Days">days</xsl:variable> 
    313314  <xsl:variable name="bwStr-AEEF-Hours">hours</xsl:variable> 
  • trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/css/bwScheduling.css

    r2905 r2913  
    181181  margin: 0; 
    182182} 
     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  
    14811481                  </td> 
    14821482                  <td class="dateLabel"> 
    1483                     Start: 
     1483                    <strong><xsl:copy-of select="$bwStr-AEEF-Start"/></strong> 
    14841484                  </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> 
    14901495                  </td> 
    14911496                </tr> 
     
    15041509                  </td> 
    15051510                  <td> 
    1506                     <input type="button" id="bwSchedOptions" onclick="bwGrid.showOptions();" value="Options &#x25BC;"/> 
     1511                    <input type="button" id="bwSchedOptions" value="Options &#x25BC;"/> 
    15071512              <ul id="bwFbOptionsMenu"> 
    15081513                <li>24 Hours</li> 
     
    15101515                  </td> 
    15111516                  <td class="dateLabel"> 
    1512                     End: 
     1517                    <strong><xsl:copy-of select="$bwStr-AEEF-Duration-Sched"/></strong> 
    15131518                  </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> 
    15171553                  </td> 
    15181554                </tr>   
    15191555              </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"/--> 
    15211558            </div> 
    15221559    </div> 
  • trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/head.xsl

    r2910 r2913  
    134134              }).attr("readonly", "readonly"); 
    135135              $("#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               
    136143            } 
    137144            </xsl:comment> 
  • trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/javascript/bedeworkScheduling.js

    r2910 r2913  
    374374    this.hourDivision = val; 
    375375    this.display(); 
    376   } 
    377    
    378   this.showOptions = function() { 
    379     $("#bwFbOptionsMenu").show("slow"); 
    380376  } 
    381377   
     
    804800      ); 
    805801       
     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       
    806812 
    807813    } catch (e) {