Changeset 1507

Show
Ignore:
Timestamp:
08/10/07 16:37:04
Author:
johnsa
Message:

user client: more work on rdates

Files:

Legend:

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

    r1503 r1507  
    31783178              </div> 
    31793179     
    3180      
    3181               <h3>Recurrence Dates</h3> 
    3182               <table cellspacing="0" class="rdatesTable" id="bwCurrentRdates"> 
    3183                 <xsl:choose> 
    3184                   <xsl:when test="/bedework/rdates/rdate"> 
    3185                     <xsl:for-each select="/bedework/rdates/rdate"> 
    3186                       <tr> 
    3187                         <td> 
    3188                           <xsl:value-of select="longdate"/> 
    3189                           <xsl:if test="allday='false'"> 
    3190                             <xsl:text> </xsl:text> 
    3191                             <xsl:value-of select="time"/> 
    3192                             <xsl:if test="floating='false'"> 
    3193                               <xsl:text> </xsl:text> 
    3194                               <xsl:value-of select="timezone/id"/> 
    3195                             </xsl:if> 
    3196                           </xsl:if> 
    3197                           <script type="text/javascript"> 
    3198                             <xsl:comment> 
    3199                               bwRdates.update('<xsl:value-of select="longdate"/>',  
    3200                                               '<xsl:value-of select="time"/>',  
    3201                                               <xsl:value-of select="allDay"/>,  
    3202                                               <xsl:value-of select="floating"/>,  
    3203                                               false,  
    3204                                               '<xsl:value-of select="timezone/id"/>'); 
    3205                             </xsl:comment> 
    3206                           </script> 
    3207                         </td> 
    3208                         <td class="trash"> 
    3209                           <xsl:variable name="datetime"><xsl:value-of select="unformatted"/></xsl:variable> 
    3210                           <xsl:variable name="tzid" select="timezone/id"/> 
    3211                           <xsl:variable name="dateOnly"><xsl:if test="allday = 'true'">&amp;dateOnly=true</xsl:if></xsl:variable> 
    3212                           <xsl:variable name="floating"><xsl:if test="floating = 'true'">&amp;floating=true</xsl:if></xsl:variable> 
    3213                           <xsl:variable name="storeUTC"><xsl:if test="utc = 'true'">&amp;storeUTC=true</xsl:if></xsl:variable> 
    3214                           <a href="{$event-setRdate}&amp;datetime={$datetime}&amp;tzid={$tzid}{$dateOnly}{$floating}{$storeUTC}&amp;delete=true" title="remove"> 
    3215                             <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="remove"/> 
    3216                           </a> 
    3217                         </td> 
    3218                       </tr> 
    3219                     </xsl:for-each> 
    3220                   </xsl:when> 
    3221                   <xsl:otherwise> 
    3222                     <tr> 
    3223                       <td colspan="2">No recurrence dates</td> 
    3224                     </tr> 
    3225                   </xsl:otherwise> 
    3226                 </xsl:choose> 
     3180              <!-- if there are no recurence dates, the following table will show --> 
     3181              <table cellspacing="0" id="bwCurrentRdates"> 
     3182                <tr><th>Recurrence Dates</th></tr> 
     3183                <tr><td>No recurrence dates</td></tr> 
    32273184              </table> 
    3228      
    3229               <table cellspacing="0" class="rdatesTable" id="bwCurrentExdates"> 
     3185               
     3186              <!-- if there are no recurence dates, the following table will show --> 
     3187              <table cellspacing="0" id="bwCurrentRdates"> 
    32303188                <tr> 
    3231                   <th colspan="2">Exception Dates</th> 
     3189                  <th colspan="3">Recurrence Dates</th> 
    32323190                </tr> 
    32333191                <tr> 
    3234                   <td colspan="2" class="note"
    3235                     exception dates are created by deleting an instance of a 
    3236                     recurring event 
    3237                   </td> 
     3192                  <td>Date</td
     3193                  <td>Time</td> 
     3194                  <td>TZid</td> 
     3195                  <td></td> 
    32383196                </tr> 
    3239                 <xsl:choose> 
    3240                   <xsl:when test="/bedework/exdates/exdate"> 
    3241                     <xsl:for-each select="/bedework/exdates/exdate"> 
    3242                       <tr> 
    3243                         <td> 
    3244                           <xsl:value-of select="longdate"/> 
    3245                           <xsl:if test="allday='false'"> 
    3246                             <xsl:value-of select="time"/> 
    3247                             <xsl:if test="floating='false'"> 
    3248                               <xsl:value-of select="timezone/id"/> 
    3249                             </xsl:if> 
    3250                           </xsl:if> 
    3251                         </td> 
    3252                         <td class="trash"> 
    3253                           <xsl:variable name="datetime"><xsl:value-of select="unformatted"/></xsl:variable> 
    3254                           <xsl:variable name="tzid" select="timezone/id"/> 
    3255                           <xsl:variable name="dateOnly"><xsl:if test="allday = 'true'">&amp;dateOnly=true</xsl:if></xsl:variable> 
    3256                           <xsl:variable name="floating"><xsl:if test="floating = 'true'">&amp;floating=true</xsl:if></xsl:variable> 
    3257                           <xsl:variable name="storeUTC"><xsl:if test="utc = 'true'">&amp;storeUTC=true</xsl:if></xsl:variable> 
    3258                           <a href="{$event-setRdate}&amp;datetime={$datetime}&amp;tzid={$tzid}{$dateOnly}{$floating}{$storeUTC}&amp;exdelete=true" title="remove"> 
    3259                             <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="remove"/> 
    3260                           </a> 
    3261                         </td> 
    3262                       </tr> 
    3263                     </xsl:for-each> 
    3264                   </xsl:when> 
    3265                   <xsl:otherwise> 
    3266                     <tr> 
    3267                       <td colspan="2">No exception dates</td> 
    3268                     </tr> 
    3269                   </xsl:otherwise> 
    3270                 </xsl:choose> 
    32713197              </table> 
     3198               
     3199              <!-- if there are no recurence dates, the following table will show --> 
     3200              <table cellspacing="0" id="bwCurrentExdatesNone"> 
     3201                <tr><th>Recurrence Dates</th></tr> 
     3202                <tr><td>No recurrence dates</td></tr> 
     3203              </table> 
     3204               
     3205              <!-- if there are no recurence dates, the following table will show --> 
     3206              <table cellspacing="0" id="bwCurrentExdates"> 
     3207                <tr> 
     3208                  <th colspan="3">Exception Dates</th> 
     3209                </tr> 
     3210                <tr> 
     3211                  <td>Date</td> 
     3212                  <td>Time</td> 
     3213                  <td>TZid</td> 
     3214                  <td></td> 
     3215                </tr> 
     3216              </table> 
     3217              <p> 
     3218                Exception dates may also be created by deleting an instance 
     3219                of a recurring event. 
     3220              </p> 
    32723221            </div> 
    32733222          </div> 
  • trunk/deployment/webuser/webapp/resources/demoskins/resources/bedeworkEventForm.js

    r1503 r1507  
    8787} 
    8888 
    89 var bwRdates = new BwREXdates("rdate", "bwCurrentRdates"); 
    90 var bwExdates = new BwREXdates("exdate", "bwCurrentExdates"); 
    91  
    92 function BwREXdates(reqPar, tableId) { 
     89var bwRdates = new BwREXdates("rdate", "bwCurrentRdates", "bwCurrentRdatesNone", "visible", "invisible", 2); 
     90var bwExdates = new BwREXdates("exdate", "bwCurrentExdates", "bwCurrentExdatesNone", "visible", "invisible", 2); 
     91 
     92function BwREXdates(reqPar, tableId, noDatesId, visibleClass, invisibleClass, numHeaderRows) { 
    9393  var rdates = new Array(); 
    9494