Changeset 2045
- Timestamp:
- 01/27/09 17:02:50
- Files:
-
- trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.css (modified) (4 diffs)
- trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl (modified) (14 diffs)
- trunk/deployment/webuser/webapp/resources/demoskins/resources/bedeworkAttendees.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.css
r1990 r2045 1502 1502 } 1503 1503 #bedework #tasks .taskDate { 1504 font-size: 0. 7em;1505 margin-left: 1em;1504 font-size: 0.8em; 1505 font-style: italic; 1506 1506 } 1507 1507 /* Calendars and Subscriptions */ … … 1656 1656 padding: 0; 1657 1657 margin: 0; 1658 width: 2em ;1658 width: 2em !important; 1659 1659 height: 10px; 1660 1660 } … … 1913 1913 font-size: 0.9em; 1914 1914 } 1915 /* LINKS */1916 1915 #bedework a:link, 1917 1916 #bedework a:active { … … 1946 1945 float: left; 1947 1946 } 1947 #bedework .titleButton { 1948 display: block; 1949 margin: 1em; 1950 } trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r2019 r2045 974 974 </xsl:when> 975 975 <xsl:otherwise> 976 <xsl:for-each select="/bedework/eventscalendar/year/month/week/day[event[not(entityType=2 and start/noStart='true' and end/type='N')]]"> 977 <!-- reminders are displayed below the normal event listings and are represented as 976 <xsl:for-each select="/bedework/eventscalendar/year/month/week/day[event[not(entityType=2)]]"> 977 <!-- tasks (entityType=2) are displayed below the normal event listings. Reminders (tasks without 978 start or end dates) can also be represented as: 978 979 entityType=2 and start/noStart='true' and end/type='N'; we skip them within grid and list views --> 979 980 <xsl:if test="/bedework/periodname='Week' or /bedework/periodname='Month' or /bedework/periodname=''"> … … 997 998 </tr> 998 999 </xsl:if> 999 <xsl:for-each select="event[not(entityType=2 and start/noStart='true' and end/type='N')]">1000 <xsl:for-each select="event[not(entityType=2)]"> 1000 1001 <xsl:variable name="id" select="id"/> 1001 1002 <xsl:variable name="subscriptionId" select="subscription/id"/> … … 1244 1245 <xsl:if test="event"> 1245 1246 <ul> 1246 <xsl:apply-templates select="event[not(entityType=2 and start/noStart='true' and end/type='N')]" mode="calendarLayout">1247 <xsl:apply-templates select="event[not(entityType=2)]" mode="calendarLayout"> 1247 1248 <xsl:with-param name="dayPos" select="$dayPos"/> 1248 1249 </xsl:apply-templates> … … 1294 1295 <xsl:if test="event"> 1295 1296 <ul> 1296 <xsl:apply-templates select="event[not(entityType=2 and start/noStart='true' and end/type='N')]" mode="calendarLayout">1297 <xsl:apply-templates select="event[not(entityType=2)]" mode="calendarLayout"> 1297 1298 <xsl:with-param name="dayPos" select="$dayPos"/> 1298 1299 </xsl:apply-templates> … … 1505 1506 <!--== TASKS ==--> 1506 1507 <xsl:template name="tasks"> 1507 <xsl:if test="/bedework/eventscalendar//event[entityType=2 and start/noStart='true' and end/type='N']">1508 <xsl:if test="/bedework/eventscalendar//event[entityType=2]"> 1508 1509 <div id="tasks"> 1509 1510 <h3> 1510 reminders (tasks with no start or end date)1511 tasks & reminders 1511 1512 </h3> 1512 1513 <ul class="tasks"> 1513 <xsl:apply-templates select="/bedework/eventscalendar//event[entityType=2 and start/noStart='true' and end/type='N']" mode="tasks"/>1514 <xsl:apply-templates select="/bedework/eventscalendar//event[entityType=2]" mode="tasks"/> 1514 1515 </ul> 1515 1516 </div> … … 1531 1532 <xsl:otherwise> 1532 1533 <xsl:value-of select="summary"/> 1534 <xsl:if test="not(start/noStart='true')"> 1535 <span class="taskDate"> - Start: <xsl:value-of select="start/shortdate"/></span> 1536 </xsl:if> 1537 <xsl:if test="not(end/type='N')"> 1538 <span class="taskDate">- Due: <xsl:value-of select="end/shortdate"/></span> 1539 </xsl:if> 1533 1540 </xsl:otherwise> 1534 1541 </xsl:choose> … … 3774 3781 <table id="freeBusy"> 3775 3782 <tr> 3776 <td> </td>3777 <t hcolspan="24" class="left">3783 <td> </td> 3784 <td colspan="24" class="left"> 3778 3785 Freebusy for 3779 3786 <span class="who"> … … 3790 3797 </xsl:choose> 3791 3798 </span> 3792 </t h>3799 </td> 3793 3800 <!-- at some point allow switching of timezones: 3794 <t h colspan="32" class="right">3801 <td colspan="24" class="right"> 3795 3802 <xsl:variable name="currentTimezone">America/Los_Angeles</xsl:variable> 3796 3803 <xsl:value-of select="$formattedStartDate"/> to <xsl:value-of select="$formattedEndDate"/> … … 3804 3811 </xsl:for-each> 3805 3812 </select> 3806 </t h>-->3813 </td>--> 3807 3814 </tr> 3808 3815 <tr> … … 4107 4114 </li> 4108 4115 </ul> 4109 <h2>4110 Manage Categories4111 <input type="button" name="return" value="Add new category" onclick="javascript:location.replace('{$category-initAdd}')" class="titleButton"/>4112 </h2>4113 4116 <table class="common" id="manage" cellspacing="0"> 4114 4117 <tr> 4115 <th class="commonHeader" colspan="2">Edit/Delete Categories</th>4118 <th class="commonHeader">Manage Categories</th> 4116 4119 </tr> 4117 < xsl:choose>4118 < xsl:when test="/bedework/categories/category">4119 < xsl:for-each select="/bedework/categories/category">4120 <xsl:variable name="categoryKey" select="normalize-space(keyword)"/>4121 < tr>4122 < td>4123 < a href="{$category-fetchForUpdate}&categoryKey={$categoryKey}">4124 <xsl:va lue-of select="keyword"/>4125 </a>4126 </td>4127 <td>4128 <xsl:value-of select="desc"/>4129 </td>4130 </tr>4131 </xsl:for-each>4132 </xsl:when>4133 <xsl:otherwise>4134 <tr>4135 <td colspan="2">4136 No categories defined4137 </ td>4138 </ tr>4139 </ xsl:otherwise>4140 </ xsl:choose>4120 <tr> 4121 <td> 4122 <input type="button" name="return" value="Add new category" onclick="javascript:location.replace('{$category-initAdd}')" class="titleButton"/> 4123 <ul> 4124 <xsl:choose> 4125 <xsl:when test="/bedework/categories/category"> 4126 <xsl:for-each select="/bedework/categories/category"> 4127 <xsl:variable name="categoryKey" select="normalize-space(keyword)"/> 4128 <li> 4129 <a href="{$category-fetchForUpdate}&categoryKey={$categoryKey}"> 4130 <xsl:value-of select="keyword"/> 4131 </a> 4132 </li> 4133 </xsl:for-each> 4134 </xsl:when> 4135 <xsl:otherwise> 4136 <li> 4137 No categories defined 4138 </li> 4139 </xsl:otherwise> 4140 </xsl:choose> 4141 </ul> 4142 </td> 4143 </tr> 4141 4144 </table> 4142 4145 </xsl:template> 4143 4146 4144 4147 <xsl:template name="modCategory"> 4148 <h2>Manage Preferences</h2> 4149 <ul class="submenu"> 4150 <li> 4151 <a href="{$prefs-fetchForUpdate}">general</a> 4152 </li> 4153 <li class="selected">categories</li> 4154 <li> 4155 <a href="{$location-initUpdate}">locations</a> 4156 </li> 4157 <li> 4158 <a href="{$prefs-fetchSchedulingForUpdate}">scheduling/meetings</a> 4159 </li> 4160 </ul> 4145 4161 <xsl:choose> 4146 4162 <xsl:when test="/bedework/creating='true'"> 4147 <h2>Manage Categories</h2>4148 4163 <form action="{$category-update}" method="post"> 4149 4164 <table class="common" cellspacing="0"> … … 4181 4196 </xsl:when> 4182 4197 <xsl:otherwise> 4183 <h2>Manage Categories</h2>4184 4198 <form action="{$category-update}" method="post"> 4185 4199 <table class="common" cellspacing="0"> 4186 4200 <tr> 4187 <th class="commonHeader" colspan="2"> UpdateCategory</th>4201 <th class="commonHeader" colspan="2">Edit Category</th> 4188 4202 </tr> 4189 4203 <tr> … … 5814 5828 <xsl:template name="locationList"> 5815 5829 <h2> 5816 Manage Locations 5817 <input type="button" name="return" value="Add new location" onclick="javascript:location.replace('{$location-initAdd}')" class="titleButton"/> 5830 Manage Preferences 5818 5831 </h2> 5832 <ul class="submenu"> 5833 <li> 5834 <a href="{$prefs-fetchForUpdate}">general</a> 5835 </li> 5836 <li> 5837 <a href="{$category-initUpdate}">categories</a> 5838 </li> 5839 <li class="selected">locations</li> 5840 <li> 5841 <a href="{$prefs-fetchSchedulingForUpdate}">scheduling/meetings</a> 5842 </li> 5843 </ul> 5819 5844 <table class="common" id="manage" cellspacing="0"> 5820 5845 <tr> 5821 <th class="commonHeader"> Edit/Delete Locations</th>5846 <th class="commonHeader">Manage Locations</th> 5822 5847 </tr> 5823 5848 <tr> 5824 5849 <td> 5850 <input type="button" name="return" value="Add new location" onclick="javascript:location.replace('{$location-initAdd}')" class="titleButton"/> 5825 5851 <xsl:if test="/bedework/locations/location"> 5826 5852 <ul> … … 5840 5866 5841 5867 <xsl:template name="modLocation"> 5868 <h2> 5869 Manage Preferences 5870 </h2> 5871 <ul class="submenu"> 5872 <li> 5873 <a href="{$prefs-fetchForUpdate}">general</a> 5874 </li> 5875 <li> 5876 <a href="{$category-initUpdate}">categories</a> 5877 </li> 5878 <li class="selected"> 5879 <a href="{$location-initUpdate}">locations</a> 5880 </li> 5881 <li> 5882 <a href="{$prefs-fetchSchedulingForUpdate}">scheduling/meetings</a> 5883 </li> 5884 </ul> 5842 5885 <xsl:choose> 5843 5886 <xsl:when test="/bedework/creating = 'true'"> 5844 5887 <form name="addLocationForm" method="post" action="{$location-update}" id="standardForm"> 5845 <h2>Manage Locations</h2>5846 5888 <table class="common" cellspacing="0"> 5847 5889 <tr> … … 5886 5928 <form name="editLocationForm" method="post" action="{$location-update}" id="standardForm"> 5887 5929 <input type="hidden" name="updateLocation" value="true"/> 5888 <h2>Manage Locations</h2>5889 5930 <table class="common" cellspacing="0"> 5890 5931 <tr> trunk/deployment/webuser/webapp/resources/demoskins/resources/bedeworkAttendees.js
r1955 r2045 1 var entries = [1 /*var entries = [ 2 2 { name: "Peter Pan", address: "peter@pan.de", uri: "someUri", type: "user"}, 3 3 { name: "Molly", address: "molly@yahoo.com", uri: "someUri", type: "user"}, … … 10 10 { name: "Quake The Net", address: "webmaster@quakenet.org", uri: "someUri", type: "user"}, 11 11 { name: "Dr. Write", address: "write@writable.com", uri: "someUri", type: "user"} 12 ]; 12 ];*/ 13 14 var entries = { 15 "microformats": { 16 "vcard": [ 17 { 18 "version": { 19 "value": "4.0" 20 }, 21 22 "rev": { 23 "value": "20080811051937Z" 24 }, 25 26 "source": [{ 27 "value": "\/ucarddav\/douglm.vcf" 28 }], 29 "uid": { 30 "value": "\/ucarddav\/douglm.vcf" 31 }, 32 "mail": [{ 33 "value": "douglm@mysite.org" 34 }], 35 36 "kind": { 37 "value": "individual" 38 }, 39 40 "fn": { 41 "value": "Douglass, Mike" 42 } 43 44 }, { 45 "version": { 46 "value": "4.0" 47 }, 48 49 "rev": { 50 "value": "20080812153529Z" 51 }, 52 53 "source": [{ 54 "value": "\/ucarddav\/johnsa.vcf" 55 }], 56 "uid": { 57 "value": "\/ucarddav\/johnsa.vcf" 58 }, 59 60 "mail": [{ 61 "value": "johnsa@rpi.edu", 62 "value": "johnsa@mysite.org" 63 }], 64 65 "kind": { 66 "value": "individual" 67 }, 68 69 "fn": { 70 "value": "Johnson, Arlen" 71 } 72 73 }, { 74 "version": { 75 "value": "4.0" 76 }, 77 78 "rev": { 79 "value": "20081103181729Z" 80 }, 81 82 "source": [{ 83 "value": "\/ucarddav\/calowner01.vcf" 84 }], 85 "uid": { 86 "value": "\/ucarddav\/calowner01.vcf" 87 }, 88 89 "mail": [{ 90 "value": "bogus@mysite.org" 91 }], 92 93 "kind": { 94 "value": "individual" 95 }, 96 97 "fn": { 98 "value": "last, first" 99 } 100 101 }] 102 } 103 } 104 105 13 106 14 107 $(document).ready(function(){ … … 28 121 autoFill: false, 29 122 formatItem: function(row, i, max) { 30 return " \"" + row. name + "\" [" + row.address+ "]";123 return " \"" + row.fn + "\" [" + row.mail + "]"; 31 124 }, 32 125 formatMatch: function(row, i, max) { 33 return row. name + " " + row.address;126 return row.fn + " " + row.mail; 34 127 }, 35 128 formatResult: function(row) { 36 return row. address;129 return row.mail; 37 130 } 38 131 });
