Changeset 122
- Timestamp:
- 02/09/06 12:41:00
- Files:
-
- trunk/calendar3/deployment/webadmin/webapp/resources/default/default/default.css (modified) (1 diff)
- trunk/calendar3/deployment/webadmin/webapp/resources/default/default/default.xsl (modified) (3 diffs)
- trunk/calendar3/deployment/webadmin/webapp/resources/resources/includes.js (modified) (1 diff)
- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/default.xsl (modified) (4 diffs)
- trunk/calendar3/webclient/war/docs/header.jsp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/calendar3/deployment/webadmin/webapp/resources/default/default/default.css
r39 r122 247 247 font-weight: bold; 248 248 margin: 0 1em; 249 } 250 table.eventFormTable #calendarDescriptionBox { 251 width: 450px; 252 border: 1px solid #ccb; 253 font-size: 0.75em; 254 background-color: #f5f5f5; 255 color: black; 256 margin: 4px 0; 257 padding: 4px; 258 } 259 table.eventFormTable #calendarDescriptionBox a { 260 display: block; 261 text-align: right; 249 262 } 250 263 .autoCompleteMatched { trunk/calendar3/deployment/webadmin/webapp/resources/default/default/default.xsl
r102 r122 451 451 <td> 452 452 <xsl:if test="/bedeworkadmin/formElements/form/calendar/preferred/select/option"> 453 <select name="prefCalendarId" >453 <select name="prefCalendarId" onchange="getCalendarDescription(this.value,'please select a calendar.')"> 454 454 <option value="-1"> 455 455 Select preferred: … … 459 459 or Calendar (all): 460 460 </xsl:if> 461 <select name="calendarId" >461 <select name="calendarId" onchange="getCalendarDescription(this.value,'please select a calendar.')"> 462 462 <option value="-1"> 463 463 Select: … … 465 465 <xsl:copy-of select="/bedeworkadmin/formElements/form/calendar/all/select/*"/> 466 466 </select> 467 <xsl:text> </xsl:text> 468 <a href="" target="_blank">Calendar Definitions</a> 467 <div id="calendarDescriptionBox"> 468 Description: <span id="calendarDescription">please select a calendar.</span> 469 <a href="" target="calDescriptions">all calendar descriptions</a> 470 </div> 469 471 </td> 470 472 </tr> trunk/calendar3/deployment/webadmin/webapp/resources/resources/includes.js
r2 r122 41 41 } 42 42 } 43 function getCalendarDescription(calId,defaultMessage) { 44 div = document.getElementById("calendarDescription"); 45 if (calId == -1) { 46 div.innerHTML = defaultMessage; 47 } else { 48 div.innerHTML = calId; 49 } 50 } trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/default.xsl
r121 r122 153 153 </xsl:template> 154 154 155 <!--==== BLOCK (named)TEMPLATES and NAVIGATION ====-->155 <!--==== HEADER TEMPLATES and NAVIGATION ====--> 156 156 <!-- these templates are separated out for convenience and to simplify the default template --> 157 157 … … 490 490 <xsl:variable name="name" select="name"/> 491 491 <xsl:choose> 492 <xsl:when test="name=/bedework/ name">492 <xsl:when test="name=/bedework/selectionState/view/name"> 493 493 <option value="{$name}" selected="selected"><xsl:value-of select="name"/></option> 494 494 </xsl:when> … … 1001 1001 </xsl:template> 1002 1002 1003 <!--==== FOOTER ====-->1003 <!--==== FOOTER ====--> 1004 1004 1005 1005 <xsl:template name="footer"> … … 1022 1022 </select> 1023 1023 </form> 1024 <form name="skinSelectForm" method="get" action="{$setup}"> 1025 skin selector: 1026 <select name="skinNameSticky" onChange="submit()"> 1027 <option>select a skin</option> 1028 <option value="default">Demo</option> 1029 <option value="washington">Washington</option> 1030 <option value="rensselaer">Rensselaer</option> 1024 <form name="skinSelectForm" method="get" action=""> 1025 skin examples: 1026 <select name="skinNameSticky" onchange="window.location = this.value"> 1027 <option>select a calendar</option> 1028 <option value="http://events.rpi.edu">Rensselaer</option> 1029 <option value="http://myuw.washington.edu/cal/">Washington</option> 1031 1030 </select> 1032 1031 </form> trunk/calendar3/webclient/war/docs/header.jsp
r113 r122 67 67 Values: true, false - Flag if we are using 24 hour time --%> 68 68 69 <logic:present name="calForm" property="currentView" >70 <name><bean:write name="calForm" property="currentView.name"/></name><%--71 Value: string - Name of selected view for display --%>72 <viewid><bean:write name="calForm" property="currentView.id"/></viewid><%--73 Value: string - String ID of selected view for display --%>74 </logic:present>75 <logic:notPresent name="calForm" property="currentView" >76 <name>All</name>77 <viewid>-1</viewid>78 </logic:notPresent>79 <search><bean:write name="calForm" property="search"/></search><%--80 Value: string - Current search string for display --%>81 82 69 <publicview><bean:write name="calForm" property="publicView" /></publicview><%-- 83 70 Values: true, false - Flag if we are in the guest (public) view --%> … … 119 106 e.g. <a href="{$urlPrefix}/eventView.do?eventId=8">View Event</a> --%> 120 107 <urlpattern><genurl:rewrite action="DUMMYACTION.DO" /></urlpattern> 121 122 <selectionType><bean:write name="calForm" property="selectionType"/></selectionType><%--123 Value: view,search,calendar,subscription,filter124 Used to branch into different presentation depending on the type of125 output we expect --%>126 108 127 109 <personaluri><bean:message key="org.bedework.personal.calendar.uri"/></personaluri> … … 192 174 </appvar> 193 175 </logic:iterate> 176 177 <selectionState><%-- 178 What type of information have we selected to display? Used to 179 branch between different templates in the xsl based on user selections. --%> 180 <selectionType><bean:write name="calForm" property="selectionType"/></selectionType><%-- 181 Value: view,search,calendar,subscription,filter 182 Used to branch into different presentation depending on the type of 183 output we expect --%> 184 <view> 185 <logic:present name="calForm" property="currentView" > 186 <name><bean:write name="calForm" property="currentView.name"/></name><%-- 187 Value: string - Name of selected view for display --%> 188 <id><bean:write name="calForm" property="currentView.id"/></id><%-- 189 Value: string - String ID of selected view for display --%> 190 </logic:present> 191 <logic:notPresent name="calForm" property="currentView" > 192 <name>All</name><%-- change: this should be the default not "All" --%> 193 <id>-1</id> 194 </logic:notPresent> 195 </view> 196 <search><bean:write name="calForm" property="search"/></search><%-- 197 Value: string - Current search string for display 198 Note: this will change when proper searching is implemented --%> 199 <subscription></subscription><%-- 200 Value: string - currently selected subscription ("calendar" too) --%> 201 <filter></filter> <%-- unimplemented --%> 202 </selectionState> 203 194 204 <% 195 205 } catch (Throwable t) {
