Changeset 1427

Show
Ignore:
Timestamp:
06/18/07 01:23:44
Author:
johnsa
Message:

user client: added UI features for handling scheduling and access control changes when editing events. More to be done to finish this.

Files:

Legend:

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

    r1424 r1427  
    4949} 
    5050#bedework div.eventSubmitButtons { 
     51  clear: both; 
    5152  text-align: right; 
    5253  margin: 1em 0.5em; 
     
    570571  margin: -1em -1em 0 -1em; 
    571572  padding: 4px 0; 
    572   background-color: #666
    573   color: #eee; 
     573  background: #233979 url(../../resources/glassFill-02.gif) repeat-x bottom
     574  color : #eee; 
    574575  text-align: center; 
    575576} 
     
    801802  padding: 2px 4px; 
    802803} 
     804#bedework #scheduling { 
     805  margin: 1em; 
     806  font-size: 0.9em; 
     807} 
     808#bedework #scheduling p.editAttendees { 
     809  padding-top: 1em; 
     810  clear: both; 
     811} 
    803812#bedework #recurringSwitch { 
    804813  margin: 0 0 1em 0; 
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r1426 r1427  
    18921892        Edit  
    18931893        <xsl:choose>   
    1894           <xsl:when test="form/scheduleMethod = 2"> 
    1895             Meeting <input type="button" value="edit attendees" onclick="window.location='{$event-attendeesForEvent}'"/> 
    1896           </xsl:when> 
     1894          <xsl:when test="form/scheduleMethod = 2">Meeting</xsl:when> 
    18971895          <xsl:otherwise>Event</xsl:otherwise> 
    18981896        </xsl:choose> 
     
    19691967 
    19701968      <!-- event form submenu --> 
    1971       <!--<xsl:choose> 
    1972         <xsl:when test="/bedework/creating = 'false'"> 
    1973           <a href="javascript:launchSizedWindow('{$event-showAccess}',600,700)" id="eventAccessLink">set event access</a> 
    1974         </xsl:when> 
    1975         <xsl:otherwise> 
    1976           <a href="javascript:alert('Access/sharing may be set once an event is created.\n')" id="eventAccessLink">set event access</a> 
    1977         </xsl:otherwise> 
    1978       </xsl:choose>--> 
    19791969      <ul id="eventFormTabs" class="submenu"> 
    19801970        <li class="selected"> 
    1981           <a href="javascript:setTab('eventFormTabs',0); show('bwEventTab-Basic'); hide('bwEventTab-Details','bwEventTab-Recurrence','bwEventTab-Access');"> 
     1971          <a href="javascript:setTab('eventFormTabs',0); show('bwEventTab-Basic'); hide('bwEventTab-Details','bwEventTab-Recurrence','bwEventTab-Access','bwEventTab-Scheduling');"> 
    19821972            basic 
    19831973          </a> 
    19841974        </li> 
    19851975        <li> 
    1986           <a href="javascript:setTab('eventFormTabs',1); show('bwEventTab-Details'); hide('bwEventTab-Basic','bwEventTab-Recurrence','bwEventTab-Access');"> 
     1976          <a href="javascript:setTab('eventFormTabs',1); show('bwEventTab-Details'); hide('bwEventTab-Basic','bwEventTab-Recurrence','bwEventTab-Access','bwEventTab-Scheduling');"> 
    19871977            details 
    19881978          </a> 
    19891979        </li> 
    19901980        <li> 
    1991           <a href="javascript:setTab('eventFormTabs',2); show('bwEventTab-Recurrence'); hide('bwEventTab-Details','bwEventTab-Basic','bwEventTab-Access');"> 
     1981          <a href="javascript:setTab('eventFormTabs',2); show('bwEventTab-Recurrence'); hide('bwEventTab-Details','bwEventTab-Basic','bwEventTab-Access','bwEventTab-Scheduling');"> 
    19921982            recurrence 
    19931983          </a> 
    19941984        </li> 
    1995         <li> 
    1996           <a href="javascript:setTab('eventFormTabs',3); show('bwEventTab-Access'); hide('bwEventTab-Details','bwEventTab-Basic','bwEventTab-Recurrence');"> 
    1997             access 
    1998           </a> 
    1999         </li> 
     1985        <!--<xsl:if test="/bedework/creating = 'false'">--> 
     1986          <li> 
     1987            <a href="javascript:setTab('eventFormTabs',3); show('bwEventTab-Access'); hide('bwEventTab-Details','bwEventTab-Basic','bwEventTab-Recurrence','bwEventTab-Scheduling');"> 
     1988              access 
     1989            </a> 
     1990          </li> 
     1991          <li> 
     1992            <a href="javascript:setTab('eventFormTabs',4); show('bwEventTab-Scheduling'); hide('bwEventTab-Basic','bwEventTab-Details','bwEventTab-Recurrence','bwEventTab-Access');"> 
     1993              scheduling 
     1994            </a> 
     1995          </li> 
     1996        <!--</xsl:if>--> 
    20001997      </ul> 
    2001  
     1998       
    20021999    <!-- Basic tab --> 
    20032000    <!-- ============== --> 
     
    29522949          <xsl:with-param name="recurrenceId" select="$recurrenceId"/> 
    29532950        </xsl:apply-templates> 
    2954         <!--<form name="eventShareForm" method="post" action="{$event-setAccess}" id="shareForm" onsubmit="setAccessHow(this)"> 
    2955           <input type="hidden" name="calPath" value="{$calPath}"/> 
    2956           <input type="hidden" name="guid" value="{$guid}"/> 
    2957           <input type="hidden" name="recurid" value="{$recurrenceId}"/>--> 
    2958           <xsl:call-template name="entityAccessForm"> 
    2959             <xsl:with-param name="hideSubmitButton">true</xsl:with-param> 
    2960           </xsl:call-template> 
    2961         <!--</form>--> 
     2951        <xsl:call-template name="entityAccessForm"> 
     2952          <xsl:with-param name="hideSubmitButton">true</xsl:with-param> 
     2953        </xsl:call-template> 
     2954        <p> 
     2955          <input name="updateEventAccess" type="submit" value="update access"/> 
     2956        </p> 
     2957      </div> 
     2958    </div> 
     2959     
     2960    <!-- Scheduling tab --> 
     2961    <!-- ============== --> 
     2962    <div id="bwEventTab-Scheduling" class="invisible"> 
     2963      <div id="scheduling"> 
     2964        <xsl:if test="form/attendees/attendee"> 
     2965          <xsl:apply-templates select="form/attendees"> 
     2966            <xsl:with-param name="trash">no</xsl:with-param> 
     2967          </xsl:apply-templates> 
     2968        </xsl:if> 
     2969     
     2970        <xsl:if test="form/recipients/recipient"> 
     2971          <xsl:apply-templates select="form/recipients"> 
     2972            <xsl:with-param name="trash">no</xsl:with-param> 
     2973          </xsl:apply-templates> 
     2974        </xsl:if> 
     2975        <p class="editAttendees"> 
     2976          <xsl:choose> 
     2977            <xsl:when test="form/scheduleMethod = 2"> 
     2978              <input name="editEventAttendees" type="submit" value="edit attendees and recipients"/> 
     2979            </xsl:when> 
     2980            <xsl:otherwise> 
     2981              <input name="editEventAttendees" type="submit" value="make this event a meeting"/> 
     2982            </xsl:otherwise> 
     2983          </xsl:choose> 
     2984        </p> 
    29622985      </div> 
    29632986    </div> 
     
    33543377           
    33553378          <xsl:if test="/bedework/attendees/attendee"> 
    3356             <table id="attendees" class="widget" cellspacing="0"> 
    3357               <tr> 
    3358                 <th colspan="4">Attendees</th> 
    3359               </tr> 
    3360               <tr class="subHead"> 
    3361                 <td></td> 
    3362                 <td>attendee</td> 
    3363                 <td>role</td> 
    3364                 <td>status</td> 
    3365               </tr> 
    3366               <xsl:for-each select="/bedework/attendees/attendee"> 
    3367                 <xsl:sort select="cn" order="ascending" case-order="upper-first"/> 
    3368                 <xsl:sort select="attendeeUri" order="ascending" case-order="upper-first"/> 
    3369                 <xsl:variable name="attendeeUri" select="attendeeUri"/> 
    3370                 <tr> 
    3371                   <td class="trash"> 
    3372                     <a href="{$event-attendeesForEvent}&amp;uri={$attendeeUri}&amp;attendee=true&amp;delete=true" title="remove"> 
    3373                       <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="remove"/> 
    3374                     </a> 
    3375                   </td> 
    3376                   <td> 
    3377                     <a href="{$attendeeUri}"> 
    3378                       <xsl:choose> 
    3379                         <xsl:when test="cn != ''"> 
    3380                           <xsl:value-of select="cn"/> 
    3381                         </xsl:when> 
    3382                         <xsl:otherwise> 
    3383                           <xsl:value-of select="attendeeUri"/> 
    3384                         </xsl:otherwise> 
    3385                       </xsl:choose> 
    3386                     </a> 
    3387                   </td> 
    3388                   <td class="role"> 
    3389                     <xsl:value-of select="role"/> 
    3390                   </td> 
    3391                   <td class="status"> 
    3392                     <xsl:value-of select="partstat"/> 
    3393                   </td> 
    3394                 </tr> 
    3395               </xsl:for-each> 
    3396             </table> 
     3379            <xsl:apply-templates select="/bedework/attendees"/> 
    33973380          </xsl:if> 
    33983381       
    33993382          <xsl:if test="/bedework/recipients/recipient"> 
    3400             <table id="recipients" class="widget" cellspacing="0"> 
    3401               <tr> 
    3402                 <th colspan="2">Recipients</th> 
    3403               </tr> 
    3404               <tr class="subHead"> 
    3405                 <td></td> 
    3406                 <td>recipient</td> 
    3407               </tr> 
    3408               <xsl:for-each select="/bedework/recipients/recipient"> 
    3409                 <xsl:variable name="recipientUri" select="."/> 
    3410                 <tr> 
    3411                   <td class="trash"> 
    3412                     <a href="{$event-attendeesForEvent}&amp;uri={$recipientUri}&amp;recipient=true&amp;delete=true" title="remove"> 
    3413                       <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="remove"/> 
    3414                     </a> 
    3415                   </td> 
    3416                   <td> 
    3417                     <a href="{$recipientUri}"> 
    3418                       <xsl:value-of select="."/> 
    3419                     </a> 
    3420                   </td> 
    3421                 </tr> 
    3422               </xsl:for-each> 
    3423             </table> 
     3383            <xsl:apply-templates select="/bedework/recipients"/> 
    34243384          </xsl:if> 
    34253385 
     
    35583518    </div> 
    35593519  </xsl:template> 
    3560  
     3520   
     3521  <xsl:template match="attendees"> 
     3522    <xsl:param name="trash">yes</xsl:param>  
     3523    <table id="attendees" class="widget" cellspacing="0"> 
     3524      <tr> 
     3525        <th colspan="4">Attendees</th> 
     3526      </tr> 
     3527      <tr class="subHead"> 
     3528        <xsl:if test="$trash = 'yes'"><td></td></xsl:if> 
     3529        <td>attendee</td> 
     3530        <td>role</td> 
     3531        <td>status</td> 
     3532      </tr> 
     3533      <xsl:for-each select="attendee"> 
     3534        <xsl:sort select="cn" order="ascending" case-order="upper-first"/> 
     3535        <xsl:sort select="attendeeUri" order="ascending" case-order="upper-first"/> 
     3536        <xsl:variable name="attendeeUri" select="attendeeUri"/> 
     3537        <tr> 
     3538          <xsl:if test="$trash = 'yes'"> 
     3539            <td class="trash"> 
     3540              <a href="{$event-attendeesForEvent}&amp;uri={$attendeeUri}&amp;attendee=true&amp;delete=true" title="remove"> 
     3541                <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="remove"/> 
     3542              </a> 
     3543            </td> 
     3544          </xsl:if> 
     3545          <td> 
     3546            <a href="{$attendeeUri}"> 
     3547              <xsl:choose> 
     3548                <xsl:when test="cn != ''"> 
     3549                  <xsl:value-of select="cn"/> 
     3550                </xsl:when> 
     3551                <xsl:otherwise> 
     3552                  <xsl:value-of select="attendeeUri"/> 
     3553                </xsl:otherwise> 
     3554              </xsl:choose> 
     3555            </a> 
     3556          </td> 
     3557          <td class="role"> 
     3558            <xsl:value-of select="role"/> 
     3559          </td> 
     3560          <td class="status"> 
     3561            <xsl:value-of select="partstat"/> 
     3562          </td> 
     3563        </tr> 
     3564      </xsl:for-each> 
     3565    </table> 
     3566  </xsl:template> 
     3567 
     3568  <xsl:template match="recipients"> 
     3569    <xsl:param name="trash">yes</xsl:param> 
     3570    <table id="recipients" class="widget" cellspacing="0"> 
     3571      <tr> 
     3572        <th colspan="2">Recipients</th> 
     3573      </tr> 
     3574      <tr class="subHead"> 
     3575        <xsl:if test="$trash = 'yes'"><td></td></xsl:if> 
     3576        <td>recipient</td> 
     3577      </tr> 
     3578      <xsl:for-each select="recipient"> 
     3579        <xsl:variable name="recipientUri" select="."/> 
     3580        <tr> 
     3581          <xsl:if test="$trash = 'yes'"> 
     3582            <td class="trash"> 
     3583              <a href="{$event-attendeesForEvent}&amp;uri={$recipientUri}&amp;recipient=true&amp;delete=true" title="remove"> 
     3584                <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="remove"/> 
     3585              </a> 
     3586            </td> 
     3587          </xsl:if> 
     3588          <td> 
     3589            <a href="{$recipientUri}"> 
     3590              <xsl:value-of select="."/> 
     3591            </a> 
     3592          </td> 
     3593        </tr> 
     3594      </xsl:for-each> 
     3595    </table> 
     3596  </xsl:template> 
     3597   
    35613598  <xsl:template match="event" mode="addEventRef"> 
    35623599  <!-- The name "eventForm" is referenced by several javascript functions. Do not 
     
    67146751            <p>OR</p> 
    67156752            <p> 
     6753              <input type="radio" value="owner" name="whoType"/> owner<br/> 
    67166754              <input type="radio" value="auth" name="whoType"/> authenticated<br/> 
     6755              <input type="radio" value="unauth" name="whoType"/> unauthenticated<br/> 
    67176756              <input type="radio" value="other" name="whoType"/> other users 
    67186757            </p>