Changeset 2170
- Timestamp:
- 05/13/09 14:15:47
- Files:
-
- trunk/deployment/resources/javascript/bedework/bedeworkXProperties.js (modified) (3 diffs)
- trunk/deployment/webadmin/webapp/resources/default/default/default.css (modified) (2 diffs)
- trunk/deployment/webadmin/webapp/resources/default/default/default.xsl (modified) (6 diffs)
- trunk/deployment/webadmin/webapp/resources/resources/bedeworkEventForm.js (modified) (1 diff)
- trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.xsl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/resources/javascript/bedework/bedeworkXProperties.js
r2160 r2170 39 39 var bwXPropertySubmitStatus = "X-BEDEWORK-SUBMIT-STATUS"; 40 40 var bwXPropertySubmitterEmail = "X-BEDEWORK-SUBMITTER-EMAIL"; 41 var bwXPropertySubmitterEmail = "X-BEDEWORK-SUBMITTER-EMAIL"; 42 var bwXPropertySubmissionClaimant = "X-BEDEWORK-SUBMISSION-CLAIMANT"; 41 43 42 44 var bwXParamDescription = "X-BEDEWORK-PARAM-DESCRIPTION"; … … 47 49 var bwXParamPhone = "X-BEDEWORK-PARAM-PHONE"; 48 50 var bwXParamEmail = "X-BEDEWORK-PARAM-EMAIL"; 51 var bwXParamClaimantUser = "X-BEDEWORK-SUBMISSION-CLAIMANT-USER"; 49 52 50 53 … … 123 126 } 124 127 128 this.remove = function(name) { 129 index = this.getIndex(name); 130 if (index > -1) { 131 xproperties.splice(index,1); 132 } 133 } 134 125 135 this.getIndex = function(name) { 126 136 for (var i = 0; i < xproperties.length; i++) { trunk/deployment/webadmin/webapp/resources/default/default/default.css
r2167 r2170 364 364 color: black; 365 365 } 366 #commonListTable td.unclaimed { 367 background-color: #eee; 368 color: #900 !important; 369 font-style: italic; 370 } 366 371 .recurrenceEditLinks { 367 372 font-style: italic; … … 722 727 margin-top: 1em; 723 728 } 729 .claimButtons { 730 padding-left: 2em; 731 } 724 732 #publishBox { 725 733 position: absolute; trunk/deployment/webadmin/webapp/resources/default/default/default.xsl
r2169 r2170 229 229 <head> 230 230 <title>Calendar Admin: Public Events Administration</title> 231 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>231 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/> 232 232 <link rel="stylesheet" href="{$resourcesRoot}/default/default/default.css"/> 233 233 <link rel="stylesheet" href="{$resourcesRoot}/default/default/subColors.css"/> … … 276 276 </xsl:choose> 277 277 <script type="text/javascript" src="{$resourcesRoot}/resources/bedeworkEventForm.js"> </script> 278 <script type="text/javascript" src=" {$resourcesRoot}/resources/bedeworkXProperties.js"> </script>278 <script type="text/javascript" src="/bedework-common/javascript/bedework/bedeworkXProperties.js"> </script> 279 279 <script type="text/javascript"> 280 280 <xsl:comment> … … 954 954 <tr> 955 955 <th>Title</th> 956 <xsl:if test="/bedework/page='tabPendingEvents'"> 957 <th>Claimed By</th> 958 </xsl:if> 956 959 <th>Start</th> 957 960 <th>End</th> … … 984 987 <xsl:variable name="recurrenceId" select="recurrenceId"/> 985 988 <tr> 989 <xsl:if test="not(xproperties/X-BEDEWORK-SUBMISSION-CLAIMANT)"> 990 <xsl:attribute name="class">highlight</xsl:attribute> 991 </xsl:if> 986 992 <td> 987 993 <xsl:choose> 988 994 <xsl:when test="$pending = 'true'"> 989 <a href="{$event-fetchForUpdatePending}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 990 <xsl:choose> 991 <xsl:when test="summary != ''"> 992 <xsl:value-of select="summary"/> 993 </xsl:when> 994 <xsl:otherwise> 995 <em>no title</em> 996 </xsl:otherwise> 997 </xsl:choose> 998 </a> 995 <xsl:choose> 996 <xsl:when test="xproperties/X-BEDEWORK-SUBMISSION-CLAIMANT and not(xproperties/X-BEDEWORK-SUBMISSION-CLAIMANT/values/text = /bedework/userInfo/group)"> 997 <xsl:choose> 998 <xsl:when test="summary != ''"> 999 <xsl:value-of select="summary"/> 1000 </xsl:when> 1001 <xsl:otherwise> 1002 <em>no title</em> 1003 </xsl:otherwise> 1004 </xsl:choose> 1005 </xsl:when> 1006 <xsl:otherwise> 1007 <a href="{$event-fetchForUpdatePending}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1008 <xsl:choose> 1009 <xsl:when test="summary != ''"> 1010 <xsl:value-of select="summary"/> 1011 </xsl:when> 1012 <xsl:otherwise> 1013 <em>no title</em> 1014 </xsl:otherwise> 1015 </xsl:choose> 1016 </a> 1017 </xsl:otherwise> 1018 </xsl:choose> 999 1019 </xsl:when> 1000 1020 <xsl:otherwise> … … 1012 1032 </xsl:choose> 1013 1033 </td> 1034 <xsl:if test="/bedework/page='tabPendingEvents'"> 1035 <xsl:choose> 1036 <xsl:when test="xproperties/X-BEDEWORK-SUBMISSION-CLAIMANT"> 1037 <td> 1038 <xsl:value-of select="xproperties/X-BEDEWORK-SUBMISSION-CLAIMANT/values/text"/> 1039 <xsl:text> </xsl:text> 1040 (<xsl:value-of select="xproperties/X-BEDEWORK-SUBMISSION-CLAIMANT/parameters/X-BEDEWORK-SUBMISSION-CLAIMANT-USER"/>) 1041 </td> 1042 </xsl:when> 1043 <xsl:otherwise> 1044 <td class="unclaimed">unclaimed</td> 1045 </xsl:otherwise> 1046 </xsl:choose> 1047 </xsl:if> 1014 1048 <td class="date"> 1015 1049 <xsl:value-of select="start/shortdate"/> … … 2646 2680 </xsl:otherwise> 2647 2681 </xsl:choose> 2682 <span class="claimButtons"> 2683 <xsl:choose> 2684 <xsl:when test="form/xproperties/X-BEDEWORK-SUBMISSION-CLAIMANT/values/text = /bedework/userInfo/group"> 2685 <input type="submit" name="updateSubmitEvent" value="Release Event" onclick="releasePendingEvent();"/> 2686 </xsl:when> 2687 <xsl:otherwise> 2688 <input type="submit" name="updateSubmitEvent" value="Claim Event"> 2689 <xsl:attribute name="onclick">claimPendingEvent('<xsl:value-of select="/bedework/userInfo/group"/>','<xsl:value-of select="/bedework/userInfo/currentUser'"/>');</xsl:attribute> 2690 </input> 2691 </xsl:otherwise> 2692 </xsl:choose> 2693 </span> 2648 2694 </xsl:when> 2649 2695 <xsl:otherwise> trunk/deployment/webadmin/webapp/resources/resources/bedeworkEventForm.js
r2169 r2170 376 376 // commit all xproperties back to the form 377 377 bwXProps.generate(formObj); 378 } 379 function claimPendingEvent(group,user) { 380 bwXProps.update(bwXPropertySubmissionClaimant,[[bwXParamClaimantUser,user]],group,true); 381 } 382 function releasePendingEvent() { 383 bwXProps.remove(bwXPropertySubmissionClaimant); 378 384 } 379 385 function swapAllDayEvent(obj) { trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.xsl
r2160 r2170 152 152 <title>Bedework: Submit a Public Event</title> 153 153 <meta name="robots" content="noindex,nofollow"/> 154 <meta content="text/html;charset=utf-8" http-equiv="Content-Type"/>154 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/> 155 155 <link rel="stylesheet" href="{$resourcesRoot}/default/default/default.css"/> 156 156 <link rel="icon" type="image/ico" href="{$resourcesRoot}/resources/bedework.ico" /> … … 1263 1263 <!-- hide the root calendar. --> 1264 1264 <xsl:choose> 1265 <xsl:when test="calType = '7' or calType = '8'"> 1266 <!-- we've hit an unresolvable alias; stop descending --> 1267 <input type="checkbox" name="forDiplayOnly" disabled="disabled"/> 1268 <em><xsl:value-of select="name"/>?</em> 1269 </xsl:when> 1265 1270 <xsl:when test="calType = '0'"> 1266 1271 <!-- no direct selecting of folders or folder aliases: we only want users to select the 1267 1272 underlying calendar aliases --> 1268 <!--img src="{$resourcesRoot}/resources/catIcon.gif" width="13" height="13" alt="folder" class="folderForAliasTree" border="0"/--> 1269 <input type="checkbox" name="forDiplayOnly" disabled="disabled"/> 1273 <img src="{$resourcesRoot}/resources/catIcon.gif" width="13" height="13" alt="folder" class="folderForAliasTree" border="0"/> 1270 1274 <xsl:value-of select="name"/> 1271 1275 </xsl:when> … … 1275 1279 <xsl:if test="path = /bedework/formElements/form/xproperties//X-BEDEWORK-ALIAS/values/text"><xsl:attribute name="checked"><xsl:value-of select="checked"/></xsl:attribute></xsl:if> 1276 1280 </input> 1277 <xsl:value-of select="name"/> 1281 <xsl:choose> 1282 <xsl:when test="path = /bedework/formElements/form/xproperties//X-BEDEWORK-ALIAS/values/text"> 1283 <strong><xsl:value-of select="name"/></strong> 1284 </xsl:when> 1285 <xsl:otherwise> 1286 <xsl:value-of select="name"/> 1287 </xsl:otherwise> 1288 </xsl:choose> 1278 1289 </xsl:otherwise> 1279 1290 </xsl:choose>
