Changeset 2132
- Timestamp:
- 04/14/09 00:55:54
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webadmin/webapp/resources/default/default/default.xsl
r2131 r2132 154 154 <xsl:variable name="subscriptions-initAdd" select="/bedework/urlPrefixes/subscriptions/initAdd/a/@href"/> 155 155 <xsl:variable name="subscriptions-update" select="/bedework/urlPrefixes/subscriptions/update/a/@href"/> 156 <xsl:variable name="subscriptions-delete" select="/bedework/urlPrefixes/subscriptions/delete/a/@href"/> 156 157 <xsl:variable name="subscriptions-openCloseMod" select="/bedework/urlPrefixes/subscriptions/subOpenCloseMod/a/@href"/> 157 158 <!-- views --> … … 416 417 </xsl:when> 417 418 <xsl:when test="/bedework/page='subscriptions' or 418 /bedework/page='modSubscription'"> 419 /bedework/page='modSubscription' or 420 /bedework/page='deleteSubConfirm'"> 419 421 <xsl:apply-templates select="/bedework/calendars" mode="subscriptions"/> 420 422 </xsl:when> … … 1160 1162 </xsl:if> 1161 1163 <br/> 1162 < span id="calDescriptionsLink">1164 <!-- span id="calDescriptionsLink"> 1163 1165 <a href="javascript:launchSimpleWindow('{$calendar-fetchDescriptions}')">calendar descriptions</a> 1164 </span >1166 </span--> 1165 1167 </td> 1166 1168 </tr> … … 2475 2477 <!-- no direct selecting of folders or folder aliases: we only want users to select the 2476 2478 underlying calendar aliases --> 2477 <!--img src="{$resourcesRoot}/resources/catIcon.gif" width="13" height="13" alt="folder" class="folderForAliasTree" border="0"/--> 2478 <input type="checkbox" name="forDiplayOnly" disabled="disabled"/> 2479 <img src="{$resourcesRoot}/resources/catIcon.gif" width="13" height="13" alt="folder" class="folderForAliasTree" border="0"/> 2479 2480 <xsl:value-of select="name"/> 2480 2481 </xsl:when> … … 4397 4398 <xsl:call-template name="subscriptionIntro"/> 4398 4399 </xsl:when> 4400 <xsl:when test="/bedework/page='deleteSubConfirm'"> 4401 <xsl:apply-templates select="/bedework/currentCalendar" mode="deleteSubConfirm"/> 4402 </xsl:when> 4399 4403 <xsl:when test="/bedework/creating='true'"> 4400 4404 <xsl:apply-templates select="/bedework/currentCalendar" mode="addSubscription"/> … … 4574 4578 <input type="hidden" value="" name="publicAliasHolder" id="publicAliasHolder"/> 4575 4579 <div id="bwPublicCalDisplay"> 4576 Select the public calendar or folder:4580 <button type="button" onclick="showPublicCalAliasTree();">Select a public calendar or folder</button> 4577 4581 </div> 4578 <ul id="publicSubscriptionTree" class=" calendarTree">4582 <ul id="publicSubscriptionTree" class="invisible"> 4579 4583 <xsl:apply-templates select="/bedework/publicCalendars/calendar" mode="selectCalForPublicAliasCalTree"/> 4580 4584 </ul> … … 4659 4663 </xsl:template> 4660 4664 4665 <xsl:template match="currentCalendar" mode="deleteSubConfirm"> 4666 <xsl:choose> 4667 <xsl:when test="isSubscription = 'true'"> 4668 <h3>Remove Subscription</h3> 4669 <p> 4670 The following subscription will be removed. 4671 Continue? 4672 </p> 4673 </xsl:when> 4674 <xsl:when test="calType = '0'"> 4675 <h3>Delete Folder</h3> 4676 <p> 4677 The following folder <em>and all its contents</em> will be deleted. 4678 Continue? 4679 </p> 4680 </xsl:when> 4681 <xsl:otherwise> 4682 <h3>Delete Calendar</h3> 4683 <p> 4684 The following calendar will be deleted. Continue? 4685 </p> 4686 </xsl:otherwise> 4687 </xsl:choose> 4688 4689 <form name="delCalForm" action="{$subscriptions-delete}" method="post"> 4690 <table class="eventFormTable"> 4691 <tr> 4692 <th>Path:</th> 4693 <td> 4694 <xsl:value-of select="path"/> 4695 </td> 4696 </tr> 4697 <tr> 4698 <th>Name:</th> 4699 <td> 4700 <xsl:value-of select="name"/> 4701 </td> 4702 </tr> 4703 <tr> 4704 <th>Summary:</th> 4705 <td> 4706 <xsl:value-of select="summary"/> 4707 </td> 4708 </tr> 4709 <tr> 4710 <th>Description:</th> 4711 <td> 4712 <xsl:value-of select="desc"/> 4713 </td> 4714 </tr> 4715 </table> 4716 4717 <table border="0" id="submitTable"> 4718 <tr> 4719 <td> 4720 <input type="submit" name="cancelled" value="Cancel"/> 4721 </td> 4722 <td align="right"> 4723 <xsl:choose> 4724 <xsl:when test="isSubscription = 'true'"> 4725 <input type="submit" name="delete" value="Yes: Remove Subscription!"/> 4726 </xsl:when> 4727 <xsl:when test="calType = '0'"> 4728 <input type="submit" name="delete" value="Yes: Delete Folder!"/> 4729 </xsl:when> 4730 <xsl:otherwise> 4731 <input type="submit" name="delete" value="Yes: Delete Calendar!"/> 4732 </xsl:otherwise> 4733 </xsl:choose> 4734 </td> 4735 </tr> 4736 </table> 4737 </form> 4738 </xsl:template> 4739 4661 4740 <!--+++++++++++++++ Views ++++++++++++++++++++--> 4662 4741 <xsl:template match="views" mode="viewList"> … … 4694 4773 <td> 4695 4774 <xsl:for-each select="path"> 4775 <xsl:sort select="substring-after(.,$userPath)" order="ascending" case-order="upper-first"/> 4696 4776 <xsl:value-of select="substring-after(.,$userPath)"/> 4697 4777 <xsl:if test="position()!=last()"><br/></xsl:if> … … 4743 4823 </xsl:if> 4744 4824 </xsl:for-each> 4825 <!-- extra row to keep the code valid if above rows are empty --> 4826 <tr><td> </td></tr> 4745 4827 </table> 4746 4828 </td> … … 4764 4846 </tr> 4765 4847 </xsl:for-each> 4848 <!-- extra row to keep the code valid if above rows are empty --> 4849 <tr><td> </td></tr> 4766 4850 </table> 4767 4851 </td> … … 4788 4872 <h2>Remove View?</h2> 4789 4873 4790 <xsl:variable name="viewName" select="/bedework/views/view/name"/> 4791 <p>The following view will be removed. <em>Be forewarned: if caching is 4792 enabled, removing views from a 4793 production system can cause the public interface to throw errors until the 4794 cache is flushed (a few minutes).</em> 4874 <p> 4875 The view <strong><xsl:value-of select="/bedework/currentView/name"/></strong> 4876 will be removed. 4795 4877 </p> 4878 <p class="note"> 4879 Be forewarned: if caching is 4880 enabled, removing views from a production system can cause the public 4881 interface to throw errors until the 4882 cache is flushed (a few minutes). 4883 </p> 4796 4884 4797 4885 <p>Continue?</p> 4798 4886 4799 <h3 class="viewName">4800 <xsl:value-of select="$viewName"/>4801 </h3>4802 4887 <form name="removeView" action="{$view-remove}" method="post"> 4803 <input type="hidden" name="name" value="{$viewName}"/> 4888 <input type="hidden" name="name"> 4889 <xsl:attribute name="value"><xsl:value-of select="/bedework/currentView/name"/></xsl:attribute> 4890 </input> 4804 4891 <input type="submit" name="delete" value="Yes: Remove View"/> 4805 4892 <input type="submit" name="cancelled" value="No: Cancel"/> trunk/deployment/webadmin/webapp/resources/resources/bedework.js
r2131 r2132 166 166 // used to update a calendar subscription (alias) We must do two things: update the hidden 167 167 // calendar input field and update the displayed text 168 function updatePublicCalendarAlias(newCalPath,calDisplay,cal TreeNodeId,calendarCollection) {168 function updatePublicCalendarAlias(newCalPath,calDisplay,calendarCollection) { 169 169 var calendarAliasHolder = document.getElementById("publicAliasHolder"); 170 var bwCalDisplay = document.getElementById("bwPublicCalDisplay"); 170 171 calendarAliasHolder.value = newCalPath; 171 $('#'+calTreeNodeId).addClass("strong"); 172 var bwCalDisplay = document.getElementById("bwPublicCalDisplay"); 173 bwCalDisplay.innerHTML = "Selected calendar: <strong>" + calDisplay + "</strong>"; 172 bwCalDisplay.innerHTML = '<strong>' + calDisplay + '</strong> <button type="button" onclick="showPublicCalAliasTree();">change</button>'; 173 changeClass("publicSubscriptionTree","invisible"); 174 } 175 function showPublicCalAliasTree() { 176 changeClass("publicSubscriptionTree","calendarTree"); 174 177 } 175 178 // set the subscription URI when creating or updating a subscription
