Changeset 1009

Show
Ignore:
Timestamp:
09/16/06 22:18:34
Author:
johnsa
Message:

more ui scheduling stuff for add event

Files:

Legend:

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

    r1007 r1009  
    564564} 
    565565#clock { 
    566   position: relative; 
     566  position: absolute; 
     567  top: 460px; 
     568  left: 320px; 
    567569} 
    568570.shown { 
     
    613615  position: absolute; 
    614616  top: -300px; 
    615   left: -100px; 
     617  left: 150px; 
    616618  width: 500px; 
    617   padding: 1em
    618   border: 2px solid #666
     619  padding: 18px
     620  border: 2px solid #ccc
    619621  background: white; 
    620622  color: black; 
     
    622624#recipientsAndAttendeesBox h4 { 
    623625  padding: 4px; 
    624   margin: -1em -1em 1em -1em; 
    625   text-align: center; 
    626   color: black; 
    627   background: #ddd; 
     626  margin: -20px -20px 10px -20px; 
     627  text-align: center; 
     628  color: #eee; 
     629  background: #233979 url(../../resources/glassFill-02.gif) repeat-x bottom; 
     630  border: 2px solid #233979; 
    628631} 
    629632#recipientsAndAttendeesBox table { 
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r1007 r1009  
    7777  <xsl:variable name="event-selectCalForEvent" select="/bedework/urlPrefixes/event/selectCalForEvent/a/@href"/> 
    7878  <xsl:variable name="event-attendeesForEvent" select="/bedework/urlPrefixes/event/attendeesForEvent/a/@href"/> 
     79  <xsl:variable name="event-showAttendeesForEvent" select="/bedework/urlPrefixes/event/showAttendeesForEvent/a/@href"/> 
    7980  <xsl:variable name="editEvent" select="/bedework/urlPrefixes/editEvent"/> 
    8081  <xsl:variable name="delEvent" select="/bedework/urlPrefixes/delEvent"/> 
     
    15851586                </div> 
    15861587              </div><br/> 
    1587               <div id="clock" class="invisible"> 
    1588                 <xsl:call-template name="clock"/> 
    1589               </div> 
    15901588              <div class="dateFields"> 
    15911589                <xsl:choose> 
     
    17141712          </td> 
    17151713          <td class="fieldval posrelative"> 
    1716             <input type="button" value="Add recipients and attendees" onclick="changeClass('recipientsAndAttendees','shown')"/> 
    1717             <!-- the following is the recipients and attendees dialog box --> 
    1718             <div id="recipientsAndAttendees" class="invisible"> 
    1719               <div id="recipientsAndAttendeesBox"> 
    1720                 <h4 id="dialogTitle"><!--onmousedown="bwDrag('recipientsAndAttendeesBox')" onmouseup="bwDrop('recipientsAndAttendeesBox')"--> 
    1721                   Recipients and Attendees 
    1722                 </h4> 
    1723                 <table cellspacing="0"> 
    1724                   <tr> 
    1725                     <td> 
    1726                       <input name="raHolder" width="40"/> 
    1727                       <input type="button" value="add" onclick="postRecipientsAndAttendees('standardForm','{$event-attendeesForEvent}');"/> 
    1728                       <br/> 
    1729                       <input type="checkbox" name="recipient" value="true" checked="checked"/> recipient 
    1730                       <input type="checkbox" name="attendee" value="true" checked="checked"/> attendee 
    1731                     </td> 
    1732                     <td> 
    1733                       Role: 
    1734                       <select name="role"> 
    1735                         <option value="REQ-PARTICIPANT">required participant</option> 
    1736                         <option value="OPT-PARTICIPANT">optional participant</option> 
    1737                         <option value="CHAIR">chair</option> 
    1738                         <option value="NON-PARTICIPANT">non-participant</option> 
    1739                       </select><br/> 
    1740                       Status: 
    1741                       <select name="partstat"> 
    1742                         <option value="NEEDS-ACTION">needs action</option> 
    1743                         <option value="ACCEPTED">accepted</option> 
    1744                         <option value="DECLINED">declined</option> 
    1745                         <option value="TENTATIVE">tentative</option> 
    1746                         <option value="DELEGATED">delegated</option> 
    1747                       </select> 
    1748                     </td> 
    1749                   </tr> 
    1750                 </table> 
    1751                 <table cellspacing="0"> 
    1752                   <tr> 
    1753                     <th>Recipients</th> 
    1754                     <th>Attendees</th> 
    1755                   </tr> 
    1756                   <tr> 
    1757                     <td> 
    1758                       <div id="recipientList"> 
    1759                       </div> 
    1760                     </td> 
    1761                     <td> 
    1762                       <div id="attendeeList"> 
    1763                       </div> 
    1764                     </td> 
    1765                   </tr> 
    1766                 </table> 
    1767                 <input type="button" value="done" onclick="changeClass('recipientsAndAttendees','invisible');"/> 
    1768               </div> 
    1769             </div> 
     1714            <input type="button" value="Manage recipients and attendees" onclick="changeClass('recipientsAndAttendees','shown')"/> 
    17701715          </td> 
    17711716        </tr> 
     
    17991744        </tr> 
    18001745      </table> 
     1746    </form> 
     1747 
     1748    <!-- pop-up dialog boxes in use with the events page --> 
     1749    <!-- these should follow other items in the form and in some cases 
     1750         be in a different form --> 
     1751 
     1752    <div id="clock" class="invisible"> 
     1753      <xsl:call-template name="clock"/> 
     1754    </div> 
     1755 
     1756    <form name="raForm" id="recipientsAndAttendees" class="invisible"> 
     1757      <div id="recipientsAndAttendeesBox"> 
     1758        <h4 id="dialogTitle"><!--onmousedown="bwDrag('recipientsAndAttendeesBox')" onmouseup="bwDrop('recipientsAndAttendeesBox')"--> 
     1759          Recipients and Attendees 
     1760        </h4> 
     1761        <div id="raContent"> 
     1762          <table cellspacing="0"> 
     1763            <tr> 
     1764              <td> 
     1765                <input name="raHolder" width="40"/> 
     1766                <input type="button" value="add" onclick="postRecipientsAndAttendees('recipientsAndAttendees','{$event-attendeesForEvent}','{$event-showAttendeesForEvent}');"/> 
     1767                <br/> 
     1768                <input type="checkbox" name="recipient" value="true" checked="checked"/> recipient 
     1769                <input type="checkbox" name="attendee" value="true" checked="checked"/> attendee 
     1770              </td> 
     1771              <td> 
     1772                Role: 
     1773                <select name="role"> 
     1774                  <option value="REQ-PARTICIPANT">required participant</option> 
     1775                  <option value="OPT-PARTICIPANT">optional participant</option> 
     1776                  <option value="CHAIR">chair</option> 
     1777                  <option value="NON-PARTICIPANT">non-participant</option> 
     1778                </select><br/> 
     1779                Status: 
     1780                <select name="partstat"> 
     1781                  <option value="NEEDS-ACTION">needs action</option> 
     1782                  <option value="ACCEPTED">accepted</option> 
     1783                  <option value="DECLINED">declined</option> 
     1784                  <option value="TENTATIVE">tentative</option> 
     1785                  <option value="DELEGATED">delegated</option> 
     1786                </select> 
     1787              </td> 
     1788            </tr> 
     1789          </table> 
     1790          <table cellspacing="0"> 
     1791            <tr> 
     1792              <th>Recipients</th> 
     1793              <th>Attendees</th> 
     1794            </tr> 
     1795            <tr> 
     1796              <td> 
     1797                <div id="recipientList"> 
     1798                </div> 
     1799              </td> 
     1800              <td> 
     1801                <div id="attendeeList"> 
     1802                </div> 
     1803              </td> 
     1804            </tr> 
     1805          </table> 
     1806          <input type="button" value="done" onclick="changeClass('recipientsAndAttendees','invisible');"/> 
     1807        </div> 
     1808      </div> 
    18011809    </form> 
    18021810  </xsl:template> 
  • trunk/deployment/webuser/webapp/resources/demoskins/resources/includes.js

    r1007 r1009  
    163163/* AJAX-style asynchronous interactions */ 
    164164/****************************************/ 
     165 
    165166var req; 
    166167 
    167 function postRecipientsAndAttendees(formId,urlPrefix) { 
     168function postRecipientsAndAttendees(formId,urlActionPrefix,urlRenderPrefix) { 
    168169  formObj = document.getElementById(formId); 
    169170 
     
    174175  var status = formObj.partstat.value; 
    175176 
    176   var url = urlPrefix; 
    177   url += "&uri=" + val; 
     177  var postUrl = urlActionPrefix; 
     178  postUrl += "&uri=" + val; 
    178179  if (isRecipient) { 
    179     url += "&recipient=yes"; 
     180    postUrl += "&recipient=yes"; 
    180181  } 
    181182  if (isAttendee) { 
    182     url += "&attendee=yes&role=" + role + "&status=" + status; 
     183    postUrl += "&attendee=yes&role=" + role + "&status=" + status; 
    183184  } 
    184185 
     
    188189    req = new ActiveXObject("Microsoft.XMLHTTP"); 
    189190  } 
    190   req.open("GET", url, true); 
     191  req.open("GET", postUrl, true); 
    191192  req.onreadystatechange = callback(); 
    192193  req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 
    193   req.send(url); 
    194  
    195   /*updateRecipientAndAttendeesListing(req);*/ 
     194  req.send(postUrl); 
     195 
     196  /* return the data */ 
     197  var getUrl = urlRenderPrefix; 
     198  req.open("GET", getUrl, true); 
     199  req.onreadystatechange = callback(); 
    196200} 
    197201function callback() { 
    198202  if (req.readyState == 4) { 
    199203    if (req.status == 200) { 
    200       /*do nothing for now*/ 
     204      /*var recipients = req.responseXML.getElementsByTagName("recipients")[0]; 
     205      var attendees = req.responseXML.getElementsByTagName("attendees")[0]; 
     206      recipientList = document.getElementById("recipientList"); 
     207      attendeeList = document.getElementById("attendeeList"); 
     208      recipientList.innerHTML = recipients; 
     209      attendeeList.innerHTML = attendeeList;*/ 
    201210    } 
    202211  } 
    203212} 
    204 function updateRecipientAndAttendeesListing(req) { 
    205   var recipients = req.responseXML.getElementsByTagName("recipients")[0]; 
    206   var attendees = req.responseXML.getElementsByTagName("attendees")[0]; 
    207   recipientList = document.getElementById("recipientList"); 
    208   attendeeList = document.getElementById("attendeeList"); 
    209   recipientList.innerHTML = recipients; 
    210   attendeeList.innerHTML = attendeeList; 
    211 }