| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 |
<!-- |
|---|
| 3 |
Licensed to Jasig under one or more contributor license |
|---|
| 4 |
agreements. See the NOTICE file distributed with this work |
|---|
| 5 |
for additional information regarding copyright ownership. |
|---|
| 6 |
Jasig licenses this file to you under the Apache License, |
|---|
| 7 |
Version 2.0 (the "License"); you may not use this file |
|---|
| 8 |
except in compliance with the License. You may obtain a |
|---|
| 9 |
copy of the License at: |
|---|
| 10 |
|
|---|
| 11 |
http://www.apache.org/licenses/LICENSE-2.0 |
|---|
| 12 |
|
|---|
| 13 |
Unless required by applicable law or agreed to in writing, |
|---|
| 14 |
software distributed under the License is distributed on |
|---|
| 15 |
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
|---|
| 16 |
KIND, either express or implied. See the License for the |
|---|
| 17 |
specific language governing permissions and limitations |
|---|
| 18 |
under the License. |
|---|
| 19 |
--> |
|---|
| 20 |
<xsl:stylesheet |
|---|
| 21 |
version="1.0" |
|---|
| 22 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|---|
| 23 |
xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 24 |
<xsl:output |
|---|
| 25 |
method="xml" |
|---|
| 26 |
indent="no" |
|---|
| 27 |
media-type="text/html" |
|---|
| 28 |
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" |
|---|
| 29 |
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" |
|---|
| 30 |
standalone="yes" |
|---|
| 31 |
omit-xml-declaration="yes"/> |
|---|
| 32 |
|
|---|
| 33 |
<!-- ========================================================= --> |
|---|
| 34 |
<!-- PUBLIC EVENTS SUBMISSION CALENDAR STYLESHEET --> |
|---|
| 35 |
<!-- ========================================================= --> |
|---|
| 36 |
|
|---|
| 37 |
<!-- DEFINE INCLUDES --> |
|---|
| 38 |
<xsl:include href="/bedework-common/default/default/util.xsl"/> |
|---|
| 39 |
|
|---|
| 40 |
<!-- include the language string libraries --> |
|---|
| 41 |
<xsl:include href="/bedework-common/default/default/errors.xsl" /> |
|---|
| 42 |
<xsl:include href="/bedework-common/default/default/messages.xsl" /> |
|---|
| 43 |
<xsl:include href="./strings.xsl"/> |
|---|
| 44 |
|
|---|
| 45 |
<!-- DEFINE GLOBAL CONSTANTS --> |
|---|
| 46 |
<!-- URL of html resources (images, css, other html); by default this is |
|---|
| 47 |
set to the application root, but for the personal calendar |
|---|
| 48 |
this should be changed to point to a |
|---|
| 49 |
web server over https to avoid mixed content errors, e.g., |
|---|
| 50 |
<xsl:variable name="resourcesRoot">https://mywebserver.edu/myresourcesdir</xsl:variable> |
|---|
| 51 |
--> |
|---|
| 52 |
<xsl:variable name="resourcesRoot" select="/bedework/browserResourceRoot"/> |
|---|
| 53 |
|
|---|
| 54 |
<!-- URL of the XSL template directory --> |
|---|
| 55 |
<!-- The approot is an appropriate place to put |
|---|
| 56 |
included stylesheets and xml fragments. These are generally |
|---|
| 57 |
referenced relatively (like errors.xsl and messages.xsl above); |
|---|
| 58 |
this variable is here for your convenience if you choose to |
|---|
| 59 |
reference it explicitly. It is not used in this stylesheet, however, |
|---|
| 60 |
and can be safely removed if you so choose. --> |
|---|
| 61 |
<xsl:variable name="appRoot" select="/bedework/approot"/> |
|---|
| 62 |
|
|---|
| 63 |
<!-- Properly encoded prefixes to the application actions; use these to build |
|---|
| 64 |
urls; allows the application to be used without cookies or within a portal. |
|---|
| 65 |
These urls are rewritten in header.jsp and simply passed through for use |
|---|
| 66 |
here. Every url includes a query string (either ?b=de or a real query |
|---|
| 67 |
string) so that all links constructed in this stylesheet may begin the |
|---|
| 68 |
query string with an ampersand. --> |
|---|
| 69 |
|
|---|
| 70 |
<xsl:variable name="submissionsRootEncoded" select="/bedework/submissionsRoot/encoded"/> |
|---|
| 71 |
<xsl:variable name="submissionsRootUnencoded" select="/bedework/submissionsRoot/unencoded"/> |
|---|
| 72 |
|
|---|
| 73 |
<!-- main --> |
|---|
| 74 |
<xsl:variable name="setup" select="/bedework/urlPrefixes/setup"/> |
|---|
| 75 |
<xsl:variable name="initEvent" select="/bedework/urlPrefixes/event/initEvent"/> |
|---|
| 76 |
<xsl:variable name="initPendingEvents" select="/bedework/urlPrefixes/event/initPendingEvents"/> |
|---|
| 77 |
<xsl:variable name="addEvent" select="/bedework/urlPrefixes/event/addEvent"/> |
|---|
| 78 |
<xsl:variable name="editEvent" select="/bedework/urlPrefixes/event/editEvent"/> |
|---|
| 79 |
<xsl:variable name="gotoEditEvent" select="/bedework/urlPrefixes/event/gotoEditEvent"/> |
|---|
| 80 |
<xsl:variable name="updateEvent" select="/bedework/urlPrefixes/event/updateEvent"/> |
|---|
| 81 |
<xsl:variable name="delEvent" select="/bedework/urlPrefixes/event/delEvent"/> |
|---|
| 82 |
<xsl:variable name="initUpload" select="/bedework/urlPrefixes/misc/initUpload"/> |
|---|
| 83 |
<xsl:variable name="upload" select="/bedework/urlPrefixes/misc/upload"/> |
|---|
| 84 |
|
|---|
| 85 |
<!-- URL of the web application - includes web context --> |
|---|
| 86 |
<xsl:variable name="urlPrefix" select="/bedework/urlprefix"/> |
|---|
| 87 |
|
|---|
| 88 |
<!-- Other generally useful global variables --> |
|---|
| 89 |
<xsl:variable name="prevdate" select="/bedework/previousdate"/> |
|---|
| 90 |
<xsl:variable name="nextdate" select="/bedework/nextdate"/> |
|---|
| 91 |
<xsl:variable name="curdate" select="/bedework/currentdate/date"/> |
|---|
| 92 |
<xsl:variable name="skin">default</xsl:variable> |
|---|
| 93 |
<xsl:variable name="publicCal">/cal</xsl:variable> |
|---|
| 94 |
|
|---|
| 95 |
<!-- the following variable can be set to "true" or "false"; |
|---|
| 96 |
to use jQuery widgets and fancier UI features, set to false - these are |
|---|
| 97 |
not guaranteed to work in portals. --> |
|---|
| 98 |
<xsl:variable name="portalFriendly">false</xsl:variable> |
|---|
| 99 |
|
|---|
| 100 |
<!-- BEGIN MAIN TEMPLATE --> |
|---|
| 101 |
<xsl:template match="/"> |
|---|
| 102 |
<html lang="en"> |
|---|
| 103 |
<head> |
|---|
| 104 |
<xsl:call-template name="headSection"/> |
|---|
| 105 |
</head> |
|---|
| 106 |
<body> |
|---|
| 107 |
<xsl:choose> |
|---|
| 108 |
<xsl:when test="/bedework/page = 'addEvent'"> |
|---|
| 109 |
<xsl:attribute name="onload">focusElement('bwEventTitle');bwSetupDatePickers();</xsl:attribute> |
|---|
| 110 |
</xsl:when> |
|---|
| 111 |
<xsl:when test="/bedework/page = 'editEvent'"> |
|---|
| 112 |
<xsl:attribute name="onload">initRXDates();initXProperties();bwSetupDatePickers();</xsl:attribute> |
|---|
| 113 |
</xsl:when> |
|---|
| 114 |
</xsl:choose> |
|---|
| 115 |
<div id="bedework"><!-- main wrapper div --> |
|---|
| 116 |
<xsl:call-template name="header"/> |
|---|
| 117 |
<xsl:call-template name="messagesAndErrors"/> |
|---|
| 118 |
<xsl:call-template name="menuTabs"/> |
|---|
| 119 |
<div id="bodyContent"> |
|---|
| 120 |
<xsl:choose> |
|---|
| 121 |
<xsl:when test="/bedework/page='addEvent'"> |
|---|
| 122 |
<xsl:apply-templates select="/bedework/formElements" mode="addEvent"/> |
|---|
| 123 |
</xsl:when> |
|---|
| 124 |
<xsl:when test="/bedework/page='eventList'"> |
|---|
| 125 |
<xsl:call-template name="eventList"/> |
|---|
| 126 |
</xsl:when> |
|---|
| 127 |
<xsl:when test="/bedework/page='editEvent'"> |
|---|
| 128 |
<xsl:apply-templates select="/bedework/formElements" mode="editEvent"/> |
|---|
| 129 |
</xsl:when> |
|---|
| 130 |
<xsl:when test="/bedework/page='upload'"> |
|---|
| 131 |
<xsl:call-template name="upload" /> |
|---|
| 132 |
</xsl:when> |
|---|
| 133 |
<xsl:otherwise> |
|---|
| 134 |
<!-- home / entrance screen --> |
|---|
| 135 |
<xsl:call-template name="home"/> |
|---|
| 136 |
</xsl:otherwise> |
|---|
| 137 |
</xsl:choose> |
|---|
| 138 |
</div> |
|---|
| 139 |
<!-- footer --> |
|---|
| 140 |
<xsl:call-template name="footer"/> |
|---|
| 141 |
</div> |
|---|
| 142 |
</body> |
|---|
| 143 |
</html> |
|---|
| 144 |
</xsl:template> |
|---|
| 145 |
|
|---|
| 146 |
<!--==== HEAD SECTION ====--> |
|---|
| 147 |
<xsl:template name="headSection"> |
|---|
| 148 |
<title><xsl:copy-of select="$bwStr-Head-BedeworkSubmitPubEv"/></title> |
|---|
| 149 |
<meta name="robots" content="noindex,nofollow"/> |
|---|
| 150 |
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/> |
|---|
| 151 |
<link rel="stylesheet" href="{$resourcesRoot}/default/default/default.css"/> |
|---|
| 152 |
<link rel="icon" type="image/ico" href="{$resourcesRoot}/resources/bedework.ico" /> |
|---|
| 153 |
|
|---|
| 154 |
<!-- note: the non-breaking spaces in the script bodies below are to avoid |
|---|
| 155 |
losing the script closing tags (which avoids browser problems) --> |
|---|
| 156 |
<script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-1.3.2.min.js"> </script> |
|---|
| 157 |
<script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-ui-1.7.1.custom.min.js"> </script> |
|---|
| 158 |
<link rel="stylesheet" href="/bedework-common/javascript/jquery/css/custom-theme/jquery-ui-1.7.1.custom.css"/> |
|---|
| 159 |
<link rel="stylesheet" href="/bedework-common/javascript/jquery/css/custom-theme/bedeworkJquery.css"/> |
|---|
| 160 |
|
|---|
| 161 |
<script type="text/javascript" src="{$resourcesRoot}/resources/bedework.js"> </script> |
|---|
| 162 |
|
|---|
| 163 |
<xsl:if test="/bedework/page='addEvent' or /bedework/page='editEvent'"> |
|---|
| 164 |
<script type="text/javascript" src="/bedework-common/javascript/bedework/bwClock.js"> </script> |
|---|
| 165 |
<link rel="stylesheet" href="/bedework-common/javascript/bedework/bwClock.css"/> |
|---|
| 166 |
<xsl:choose> |
|---|
| 167 |
<xsl:when test="$portalFriendly = 'true'"> |
|---|
| 168 |
<script type="text/javascript" src="{$resourcesRoot}/resources/dynCalendarWidget.js"> </script> |
|---|
| 169 |
<link rel="stylesheet" href="{$resourcesRoot}/resources/dynCalendarWidget.css"/> |
|---|
| 170 |
</xsl:when> |
|---|
| 171 |
<xsl:otherwise> |
|---|
| 172 |
<script type="text/javascript"> |
|---|
| 173 |
<xsl:comment> |
|---|
| 174 |
$.datepicker.setDefaults({ |
|---|
| 175 |
constrainInput: true, |
|---|
| 176 |
dateFormat: "yy-mm-dd", |
|---|
| 177 |
showOn: "both", |
|---|
| 178 |
buttonImage: "<xsl:value-of select='$resourcesRoot'/>/resources/calIcon.gif", |
|---|
| 179 |
buttonImageOnly: true, |
|---|
| 180 |
gotoCurrent: true, |
|---|
| 181 |
duration: "" |
|---|
| 182 |
}); |
|---|
| 183 |
|
|---|
| 184 |
function bwSetupDatePickers() { |
|---|
| 185 |
// startdate |
|---|
| 186 |
$("#bwEventWidgetStartDate").datepicker({ |
|---|
| 187 |
defaultDate: new Date(<xsl:value-of select="/bedework/formElements/form/start/yearText/input/@value"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected = 'selected']/@value) - 1"/>, <xsl:value-of select="/bedework/formElements/form/start/day/select/option[@selected = 'selected']/@value"/>) |
|---|
| 188 |
}).attr("readonly", "readonly"); |
|---|
| 189 |
$("#bwEventWidgetStartDate").val('<xsl:value-of select="substring-before(/bedework/formElements/form/start/rfc3339DateTime,'T')"/>'); |
|---|
| 190 |
|
|---|
| 191 |
// starttime |
|---|
| 192 |
$("#bwStartClock").bwTimePicker({ |
|---|
| 193 |
hour24: <xsl:value-of select="/bedework/hour24"/>, |
|---|
| 194 |
attachToId: "calWidgetStartTimeHider", |
|---|
| 195 |
hourIds: ["eventStartDateHour","eventStartDateSchedHour"], |
|---|
| 196 |
minuteIds: ["eventStartDateMinute","eventStartDateSchedMinute"], |
|---|
| 197 |
ampmIds: ["eventStartDateAmpm","eventStartDateSchedAmpm"], |
|---|
| 198 |
hourLabel: "<xsl:value-of select="$bwStr-Cloc-Hour"/>", |
|---|
| 199 |
minuteLabel: "<xsl:value-of select="$bwStr-Cloc-Minute"/>", |
|---|
| 200 |
amLabel: "<xsl:value-of select="$bwStr-Cloc-AM"/>", |
|---|
| 201 |
pmLabel: "<xsl:value-of select="$bwStr-Cloc-PM"/>" |
|---|
| 202 |
}); |
|---|
| 203 |
|
|---|
| 204 |
// enddate |
|---|
| 205 |
$("#bwEventWidgetEndDate").datepicker({ |
|---|
| 206 |
defaultDate: new Date(<xsl:value-of select="/bedework/formElements/form/end/dateTime/yearText/input/@value"/>, <xsl:value-of select="number(/bedework/formElements/form/end/dateTime/month/select/option[@selected = 'selected']/@value) - 1"/>, <xsl:value-of select="/bedework/formElements/form/end/dateTime/day/select/option[@selected = 'selected']/@value"/>) |
|---|
| 207 |
}).attr("readonly", "readonly"); |
|---|
| 208 |
$("#bwEventWidgetEndDate").val('<xsl:value-of select="substring-before(/bedework/formElements/form/end/rfc3339DateTime,'T')"/>'); |
|---|
| 209 |
|
|---|
| 210 |
// endtime |
|---|
| 211 |
$("#bwEndClock").bwTimePicker({ |
|---|
| 212 |
hour24: <xsl:value-of select="/bedework/hour24"/>, |
|---|
| 213 |
attachToId: "calWidgetEndTimeHider", |
|---|
| 214 |
hourIds: ["eventEndDateHour"], |
|---|
| 215 |
minuteIds: ["eventEndDateMinute"], |
|---|
| 216 |
ampmIds: ["eventEndDateAmpm"], |
|---|
| 217 |
hourLabel: "<xsl:value-of select="$bwStr-Cloc-Hour"/>", |
|---|
| 218 |
minuteLabel: "<xsl:value-of select="$bwStr-Cloc-Minute"/>", |
|---|
| 219 |
amLabel: "<xsl:value-of select="$bwStr-Cloc-AM"/>", |
|---|
| 220 |
pmLabel: "<xsl:value-of select="$bwStr-Cloc-PM"/>" |
|---|
| 221 |
}); |
|---|
| 222 |
} |
|---|
| 223 |
</xsl:comment> |
|---|
| 224 |
</script> |
|---|
| 225 |
</xsl:otherwise> |
|---|
| 226 |
</xsl:choose> |
|---|
| 227 |
<script type="text/javascript" src="{$resourcesRoot}/resources/bedeworkEventForm.js"> </script> |
|---|
| 228 |
<script type="text/javascript" src="/bedework-common/javascript/bedework/bedeworkXProperties.js"> </script> |
|---|
| 229 |
<script type="text/javascript" src="/bedework-common/javascript/bedework/bedeworkUtil.js"> </script> |
|---|
| 230 |
</xsl:if> |
|---|
| 231 |
<script type="text/javascript"> |
|---|
| 232 |
<xsl:comment> |
|---|
| 233 |
function focusElement(id) { |
|---|
| 234 |
// focuses element by id |
|---|
| 235 |
document.getElementById(id).focus(); |
|---|
| 236 |
} |
|---|
| 237 |
function initRXDates() { |
|---|
| 238 |
// return string values to be loaded into javascript for rdates |
|---|
| 239 |
<xsl:for-each select="/bedework/formElements/form/rdates/rdate"> |
|---|
| 240 |
bwRdates.update('<xsl:value-of select="date"/>','<xsl:value-of select="time"/>',false,false,false,'<xsl:value-of select="tzid"/>'); |
|---|
| 241 |
</xsl:for-each> |
|---|
| 242 |
// return string values to be loaded into javascript for exdates |
|---|
| 243 |
<xsl:for-each select="/bedework/formElements/form/exdates/rdate"> |
|---|
| 244 |
bwExdates.update('<xsl:value-of select="date"/>','<xsl:value-of select="time"/>',false,false,false,'<xsl:value-of select="tzid"/>'); |
|---|
| 245 |
</xsl:for-each> |
|---|
| 246 |
} |
|---|
| 247 |
function initXProperties() { |
|---|
| 248 |
<xsl:for-each select="/bedework/formElements/form/xproperties/node()[text()]"> |
|---|
| 249 |
bwXProps.init("<xsl:value-of select="name()"/>",[<xsl:for-each select="parameters/node()">["<xsl:value-of select="name()"/>","<xsl:value-of select="node()"/>"]<xsl:if test="position() != last()">,</xsl:if></xsl:for-each>],"<xsl:call-template name="escapeJson"><xsl:with-param name="string"><xsl:value-of select="values/text"/></xsl:with-param></xsl:call-template>"); |
|---|
| 250 |
</xsl:for-each> |
|---|
| 251 |
} |
|---|
| 252 |
</xsl:comment> |
|---|
| 253 |
</script> |
|---|
| 254 |
</xsl:template> |
|---|
| 255 |
|
|---|
| 256 |
<!--==== HEADER TEMPLATES and NAVIGATION ====--> |
|---|
| 257 |
|
|---|
| 258 |
<xsl:template name="header"> |
|---|
| 259 |
<div id="header"> |
|---|
| 260 |
<a href="/bedework/"> |
|---|
| 261 |
<img id="logo" |
|---|
| 262 |
alt="logo" |
|---|
| 263 |
src="{$resourcesRoot}/resources/bedeworkAdminLogo.gif" |
|---|
| 264 |
width="217" |
|---|
| 265 |
height="40" |
|---|
| 266 |
border="0"/> |
|---|
| 267 |
</a> |
|---|
| 268 |
<!-- set the page heading: --> |
|---|
| 269 |
<h1> |
|---|
| 270 |
<xsl:copy-of select="$bwStr-Hedr-BedeworkPubEventSub"/> |
|---|
| 271 |
</h1> |
|---|
| 272 |
</div> |
|---|
| 273 |
<div id="statusBar"> |
|---|
| 274 |
<xsl:copy-of select="$bwStr-Hedr-LoggedInAs"/> |
|---|
| 275 |
<xsl:text> </xsl:text> |
|---|
| 276 |
<strong><xsl:value-of select="/bedework/userid"/></strong> |
|---|
| 277 |
<xsl:text> </xsl:text> |
|---|
| 278 |
<span class="logout"><a href="{$setup}&logout=true"><xsl:copy-of select="$bwStr-Hedr-Logout"/></a></span> |
|---|
| 279 |
</div> |
|---|
| 280 |
</xsl:template> |
|---|
| 281 |
|
|---|
| 282 |
<xsl:template name="messagesAndErrors"> |
|---|
| 283 |
<xsl:if test="/bedework/message"> |
|---|
| 284 |
<ul id="messages"> |
|---|
| 285 |
<xsl:for-each select="/bedework/message"> |
|---|
| 286 |
<li><xsl:apply-templates select="."/></li> |
|---|
| 287 |
</xsl:for-each> |
|---|
| 288 |
</ul> |
|---|
| 289 |
</xsl:if> |
|---|
| 290 |
<xsl:if test="/bedework/error"> |
|---|
| 291 |
<ul id="errors"> |
|---|
| 292 |
<xsl:for-each select="/bedework/error"> |
|---|
| 293 |
<li><xsl:apply-templates select="."/></li> |
|---|
| 294 |
</xsl:for-each> |
|---|
| 295 |
</ul> |
|---|
| 296 |
</xsl:if> |
|---|
| 297 |
</xsl:template> |
|---|
| 298 |
|
|---|
| 299 |
<!--==== MENUTABS ====--> |
|---|
| 300 |
<xsl:template name="menuTabs"> |
|---|
| 301 |
<ul id="menuTabs"> |
|---|
| 302 |
<xsl:choose> |
|---|
| 303 |
<xsl:when test="/bedework/page='home'"> |
|---|
| 304 |
<li class="selected"><xsl:copy-of select="$bwStr-MeTa-Overview"/></li> |
|---|
| 305 |
<li><a href="{$initEvent}"><xsl:copy-of select="$bwStr-MeTa-AddEvent"/></a></li> |
|---|
| 306 |
<li><a href="{$initPendingEvents}&calPath={$submissionsRootEncoded}&listAllEvents=true"><xsl:copy-of select="$bwStr-MeTa-MyPendingEvents"/></a></li> |
|---|
| 307 |
</xsl:when> |
|---|
| 308 |
<xsl:when test="/bedework/page='eventList'"> |
|---|
| 309 |
<li><a href="{$setup}"><xsl:copy-of select="$bwStr-MeTa-Overview"/></a></li> |
|---|
| 310 |
<li><a href="{$initEvent}"><xsl:copy-of select="$bwStr-MeTa-AddEvent"/></a></li> |
|---|
| 311 |
<li class="selected"><xsl:copy-of select="$bwStr-MeTa-MyPendingEvents"/></li> |
|---|
| 312 |
</xsl:when> |
|---|
| 313 |
<xsl:otherwise> |
|---|
| 314 |
<li><a href="{$setup}"><xsl:copy-of select="$bwStr-MeTa-Overview"/></a></li> |
|---|
| 315 |
<li class="selected"><xsl:copy-of select="$bwStr-MeTa-AddEvent"/></li> |
|---|
| 316 |
<li><a href="{$initPendingEvents}&calPath={$submissionsRootEncoded}&listAllEvents=true"><xsl:copy-of select="$bwStr-MeTa-MyPendingEvents"/></a></li> |
|---|
| 317 |
</xsl:otherwise> |
|---|
| 318 |
</xsl:choose> |
|---|
| 319 |
</ul> |
|---|
| 320 |
</xsl:template> |
|---|
| 321 |
|
|---|
| 322 |
<!--==== HOME ====--> |
|---|
| 323 |
<xsl:template name="home"> |
|---|
| 324 |
<div class="navButtons navBox"> |
|---|
| 325 |
<a href="{$initEvent}"><xsl:copy-of select="$bwStr-Home-Start"/> |
|---|
| 326 |
<img alt="previous" |
|---|
| 327 |
src="{$resourcesRoot}/resources/arrowRight.gif" |
|---|
| 328 |
width="13" |
|---|
| 329 |
height="13" |
|---|
| 330 |
border="0"/> |
|---|
| 331 |
</a> |
|---|
| 332 |
</div> |
|---|
| 333 |
<h1><xsl:copy-of select="$bwStr-Home-EnteringEvents"/></h1> |
|---|
| 334 |
<ol id="introduction"> |
|---|
| 335 |
<li> |
|---|
| 336 |
<xsl:copy-of select="$bwStr-Home-BeforeSubmitting"/><xsl:text> </xsl:text><a href="/cal"><xsl:copy-of select="$bwStr-Home-SeeIfItHasBeenEntered"/></a>.<xsl:text> </xsl:text><xsl:copy-of select="$bwStr-Home-ItIsPossible"/> |
|---|
| 337 |
</li> |
|---|
| 338 |
<li> |
|---|
| 339 |
<xsl:copy-of select="$bwStr-Home-MakeYourTitles"/> |
|---|
| 340 |
</li> |
|---|
| 341 |
<li> |
|---|
| 342 |
<xsl:copy-of select="$bwStr-Home-DoNotInclude"/> |
|---|
| 343 |
</li> |
|---|
| 344 |
</ol> |
|---|
| 345 |
</xsl:template> |
|---|
| 346 |
|
|---|
| 347 |
<!--==== ADD EVENT ====--> |
|---|
| 348 |
<xsl:template match="formElements" mode="addEvent"> |
|---|
| 349 |
<xsl:variable name="submitter"> |
|---|
| 350 |
<xsl:choose> |
|---|
| 351 |
<xsl:when test="form/xproperties/node()[name()='X-BEDEWORK-SUBMITTEDBY']"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-SUBMITTEDBY']/values/text"/></xsl:when> |
|---|
| 352 |
<xsl:otherwise><xsl:value-of select="/bedework/userid"/></xsl:otherwise> |
|---|
| 353 |
</xsl:choose> |
|---|
| 354 |
</xsl:variable> |
|---|
| 355 |
<form name="eventForm" method="post" action="{$addEvent}" id="standardForm" onsubmit="return setEventFields(this,{$portalFriendly},'{$submitter}');"> |
|---|
| 356 |
<xsl:apply-templates select="." mode="eventForm"/> |
|---|
| 357 |
</form> |
|---|
| 358 |
</xsl:template> |
|---|
| 359 |
|
|---|
| 360 |
<!--==== EDIT EVENT ====--> |
|---|
| 361 |
<xsl:template match="formElements" mode="editEvent"> |
|---|
| 362 |
<xsl:variable name="submitter"> |
|---|
| 363 |
<xsl:choose> |
|---|
| 364 |
<xsl:when test="form/xproperties/node()[name()='X-BEDEWORK-SUBMITTEDBY']"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-SUBMITTEDBY']/values/text"/></xsl:when> |
|---|
| 365 |
<xsl:otherwise><xsl:value-of select="/bedework/userid"/></xsl:otherwise> |
|---|
| 366 |
</xsl:choose> |
|---|
| 367 |
</xsl:variable> |
|---|
| 368 |
<form name="eventForm" method="post" action="{$updateEvent}" id="standardForm" onsubmit="return setEventFields(this,{$portalFriendly},'{$submitter}');"> |
|---|
| 369 |
<xsl:apply-templates select="." mode="eventForm"/> |
|---|
| 370 |
</form> |
|---|
| 371 |
</xsl:template> |
|---|
| 372 |
|
|---|
| 373 |
|
|---|
| 374 |
<!--==== ADD and EDIT EVENT FORM ====--> |
|---|
| 375 |
<xsl:template match="formElements" mode="eventForm"> |
|---|
| 376 |
<xsl:variable name="calPathEncoded" select="form/calendar/encodedPath"/> |
|---|
| 377 |
<xsl:variable name="calPath" select="form/calendar/path"/> |
|---|
| 378 |
<xsl:variable name="guid" select="guid"/> |
|---|
| 379 |
<xsl:variable name="recurrenceId" select="recurrenceId"/> |
|---|
| 380 |
<!-- comment field to hold the user's suggestions: --> |
|---|
| 381 |
<input type="hidden" name="xbwsubmitcomment" id="bwEventComment" value=""/> |
|---|
| 382 |
|
|---|
| 383 |
<!-- event info for edit event --> |
|---|
| 384 |
<xsl:if test="/bedework/creating != 'true'"> |
|---|
| 385 |
|
|---|
| 386 |
<table class="common" cellspacing="0"> |
|---|
| 387 |
<tr> |
|---|
| 388 |
<th colspan="2" class="commonHeader"> |
|---|
| 389 |
<div id="eventActions"> |
|---|
| 390 |
<xsl:choose> |
|---|
| 391 |
<xsl:when test="recurrenceId != ''"> |
|---|
| 392 |
<img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> |
|---|
| 393 |
<xsl:copy-of select="$bwStr-FoEl-DeleteColon"/> |
|---|
| 394 |
<a href="{$delEvent}&calPath={$calPath}&guid={$guid}" title="delete master (recurring event)"><xsl:copy-of select="$bwStr-FoEl-All"/></a>, |
|---|
| 395 |
<a href="{$delEvent}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="delete instance (recurring event)"><xsl:copy-of select="$bwStr-FoEl-Instance"/>instance</a> |
|---|
| 396 |
</xsl:when> |
|---|
| 397 |
<xsl:otherwise> |
|---|
| 398 |
<a href="{$delEvent}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="delete event"> |
|---|
| 399 |
<img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> |
|---|
| 400 |
<xsl:copy-of select="$bwStr-FoEl-Delete"/> |
|---|
| 401 |
<xsl:if test="form/recurringEntity='true'"> |
|---|
| 402 |
<xsl:copy-of select="$bwStr-FoEl-All"/> |
|---|
| 403 |
</xsl:if> |
|---|
| 404 |
</a> |
|---|
| 405 |
</xsl:otherwise> |
|---|
| 406 |
</xsl:choose> |
|---|
| 407 |
</div> |
|---|
| 408 |
<!-- Display type of event --> |
|---|
| 409 |
<xsl:variable name="entityType"> |
|---|
| 410 |
<xsl:choose> |
|---|
| 411 |
<xsl:when test="entityType = '2'"><xsl:copy-of select="$bwStr-FoEl-TASK"/></xsl:when> |
|---|
| 412 |
<xsl:when test="scheduleMethod = '2'"><xsl:copy-of select="$bwStr-FoEl-Meeting"/></xsl:when> |
|---|
| 413 |
<xsl:otherwise><xsl:copy-of select="$bwStr-FoEl-EVENT"/></xsl:otherwise> |
|---|
| 414 |
</xsl:choose> |
|---|
| 415 |
</xsl:variable> |
|---|
| 416 |
<xsl:if test="form/recurringEntity='true' or recurrenceId != ''"> |
|---|
| 417 |
<xsl:copy-of select="$bwStr-FoEl-Recurring"/> |
|---|
| 418 |
</xsl:if> |
|---|
| 419 |
<xsl:choose> |
|---|
| 420 |
<xsl:when test="form"> |
|---|
| 421 |
<!-- just a placeholder: need to add owner to the jsp --> |
|---|
| 422 |
<xsl:copy-of select="$bwStr-FoEl-Personal"/><xsl:text> </xsl:text><xsl:value-of select="$entityType"/> |
|---|
| 423 |
</xsl:when> |
|---|
| 424 |
<xsl:when test="public = 'true'"> |
|---|
| 425 |
<xsl:copy-of select="$bwStr-FoEl-Public"/><xsl:text> </xsl:text><xsl:value-of select="$entityType"/> |
|---|
| 426 |
</xsl:when> |
|---|
| 427 |
<xsl:otherwise> |
|---|
| 428 |
<xsl:value-of select="$entityType"/> (<xsl:value-of select="calendar/owner"/>) |
|---|
| 429 |
</xsl:otherwise> |
|---|
| 430 |
</xsl:choose> |
|---|
| 431 |
<xsl:if test="form/recurringEntity='true' and recurrenceId = ''"> |
|---|
| 432 |
<xsl:text> </xsl:text> |
|---|
| 433 |
<em><xsl:copy-of select="$bwStr-FoEl-RecurrenceMaster"/></em> |
|---|
| 434 |
</xsl:if> |
|---|
| 435 |
</th> |
|---|
| 436 |
</tr> |
|---|
| 437 |
</table> |
|---|
| 438 |
</xsl:if> |
|---|
| 439 |
|
|---|
| 440 |
<div id="instructions"> |
|---|
| 441 |
<div id="bwHelp-Details"> |
|---|
| 442 |
<div class="navButtons"> |
|---|
| 443 |
<a href="javascript:show('bwEventTab-Location','bwHelp-Location','bwBottomNav-Location');hide('bwEventTab-Details','bwHelp-Details','bwBottomNav-Details');" |
|---|
| 444 |
onclick="return validateStep1();"> |
|---|
| 445 |
<xsl:copy-of select="$bwStr-FoEl-Next"/> |
|---|
| 446 |
<xsl:text> </xsl:text> |
|---|
| 447 |
<img alt="{$bwStr-FoEl-Next}" |
|---|
| 448 |
src="{$resourcesRoot}/resources/arrowRight.gif" |
|---|
| 449 |
width="13" |
|---|
| 450 |
height="13" |
|---|
| 451 |
border="0"/> |
|---|
| 452 |
</a> |
|---|
| 453 |
</div> |
|---|
| 454 |
<xsl:copy-of select="$bwStr-FoEl-Step1"/> |
|---|
| 455 |
</div> |
|---|
| 456 |
<div id="bwHelp-Location" class="invisible"> |
|---|
| 457 |
<div class="navButtons"> |
|---|
| 458 |
<a href="javascript:show('bwEventTab-Details','bwHelp-Details','bwBottomNav-Details'); hide('bwEventTab-Location','bwHelp-Location','bwBottomNav-Location');"> |
|---|
| 459 |
<img alt="{$bwStr-FoEl-Previous}" |
|---|
| 460 |
src="{$resourcesRoot}/resources/arrowLeft.gif" |
|---|
| 461 |
width="13" |
|---|
| 462 |
height="13" |
|---|
| 463 |
border="0"/> |
|---|
| 464 |
<xsl:text> </xsl:text> |
|---|
| 465 |
<xsl:copy-of select="$bwStr-FoEl-Previous"/> |
|---|
| 466 |
</a> | |
|---|
| 467 |
<a href="javascript:show('bwEventTab-Contact','bwHelp-Contact','bwBottomNav-Contact'); hide('bwEventTab-Location','bwHelp-Location','bwBottomNav-Location');" |
|---|
| 468 |
onclick="return validateStep2();"> |
|---|
| 469 |
<xsl:copy-of select="$bwStr-FoEl-Next"/> |
|---|
| 470 |
<xsl:text> </xsl:text> |
|---|
| 471 |
<img alt="{$bwStr-FoEl-Next}" |
|---|
| 472 |
src="{$resourcesRoot}/resources/arrowRight.gif" |
|---|
| 473 |
width="13" |
|---|
| 474 |
height="13" |
|---|
| 475 |
border="0"/> |
|---|
| 476 |
</a> |
|---|
| 477 |
</div> |
|---|
| 478 |
<xsl:copy-of select="$bwStr-FoEl-Step2"/> |
|---|
| 479 |
</div> |
|---|
| 480 |
<div id="bwHelp-Contact" class="invisible"> |
|---|
| 481 |
<div class="navButtons"> |
|---|
| 482 |
<a href="javascript:show('bwEventTab-Location','bwHelp-Location','bwBottomNav-Location'); hide('bwHelp-Contact','bwEventTab-Contact','bwBottomNav-Contact');"> |
|---|
| 483 |
<img alt="{$bwStr-FoEl-Previous}" |
|---|
| 484 |
src="{$resourcesRoot}/resources/arrowLeft.gif" |
|---|
| 485 |
width="13" |
|---|
| 486 |
height="13" |
|---|
| 487 |
border="0"/> |
|---|
| 488 |
<xsl:text> </xsl:text> |
|---|
| 489 |
<xsl:copy-of select="$bwStr-FoEl-Previous"/> |
|---|
| 490 |
</a> | |
|---|
| 491 |
<a href="javascript:show('bwEventTab-Categories','bwHelp-Categories','bwBottomNav-Categories'); hide('bwHelp-Contact','bwEventTab-Contact','bwBottomNav-Contact');" |
|---|
| 492 |
onclick="return validateStep3();"> |
|---|
| 493 |
<xsl:copy-of select="$bwStr-FoEl-Next"/> |
|---|
| 494 |
<xsl:text> </xsl:text> |
|---|
| 495 |
<img alt="{$bwStr-FoEl-Next}" |
|---|
| 496 |
src="{$resourcesRoot}/resources/arrowRight.gif" |
|---|
| 497 |
width="13" |
|---|
| 498 |
height="13" |
|---|
| 499 |
border="0"/> |
|---|
| 500 |
</a> |
|---|
| 501 |
</div> |
|---|
| 502 |
<xsl:copy-of select="$bwStr-FoEl-Step3"/> |
|---|
| 503 |
</div> |
|---|
| 504 |
<div id="bwHelp-Categories" class="invisible"> |
|---|
| 505 |
<!-- this tab is now "topical areas - we will leave the ids named "categories" for now. --> |
|---|
| 506 |
<div class="navButtons"> |
|---|
| 507 |
<a href="javascript:show('bwEventTab-Contact','bwHelp-Contact','bwBottomNav-Contact'); hide('bwHelp-Categories','bwEventTab-Categories','bwBottomNav-Categories');"> |
|---|
| 508 |
<img alt="{$bwStr-FoEl-Previous}" |
|---|
| 509 |
src="{$resourcesRoot}/resources/arrowLeft.gif" |
|---|
| 510 |
width="13" |
|---|
| 511 |
height="13" |
|---|
| 512 |
border="0"/> |
|---|
| 513 |
<xsl:text> </xsl:text> |
|---|
| 514 |
<xsl:copy-of select="$bwStr-FoEl-Previous"/> |
|---|
| 515 |
</a> | |
|---|
| 516 |
<a href="javascript:show('bwHelp-Review','bwEventTab-Review','bwBottomNav-Review'); hide('bwHelp-Categories','bwEventTab-Categories','bwBottomNav-Categories'); "> |
|---|
| 517 |
<xsl:copy-of select="$bwStr-FoEl-Next"/> |
|---|
| 518 |
<xsl:text> </xsl:text> |
|---|
| 519 |
<img alt="{$bwStr-FoEl-Next}" |
|---|
| 520 |
src="{$resourcesRoot}/resources/arrowRight.gif" |
|---|
| 521 |
width="13" |
|---|
| 522 |
height="13" |
|---|
| 523 |
border="0"/> |
|---|
| 524 |
</a> |
|---|
| 525 |
</div> |
|---|
| 526 |
<xsl:copy-of select="$bwStr-FoEl-Step4"/> |
|---|
| 527 |
</div> |
|---|
| 528 |
<div id="bwHelp-Review" class="invisible"> |
|---|
| 529 |
<div class="navButtons"> |
|---|
| 530 |
<a href="javascript:show('bwHelp-Categories','bwEventTab-Categories','bwBottomNav-Categories'); hide('bwHelp-Review','bwEventTab-Review','bwBottomNav-Review'); "> |
|---|
| 531 |
<img alt="{$bwStr-FoEl-Previous}" |
|---|
| 532 |
src="{$resourcesRoot}/resources/arrowLeft.gif" |
|---|
| 533 |
width="13" |
|---|
| 534 |
height="13" |
|---|
| 535 |
border="0"/> |
|---|
| 536 |
<xsl:text> </xsl:text> |
|---|
| 537 |
<xsl:copy-of select="$bwStr-FoEl-Previous"/> |
|---|
| 538 |
</a> |
|---|
| 539 |
<span class="hidden"> |
|---|
| 540 |
<!-- this is here just to take up the appropriate space --> |
|---|
| 541 |
<xsl:text> </xsl:text>|<xsl:text> </xsl:text> |
|---|
| 542 |
<xsl:copy-of select="$bwStr-FoEl-Next"/> |
|---|
| 543 |
<xsl:text> </xsl:text> |
|---|
| 544 |
<img alt="{$bwStr-FoEl-Next}" |
|---|
| 545 |
src="{$resourcesRoot}/resources/arrowRight.gif" |
|---|
| 546 |
width="13" |
|---|
| 547 |
height="13" |
|---|
| 548 |
border="0"/> |
|---|
| 549 |
</span> |
|---|
| 550 |
</div> |
|---|
| 551 |
<xsl:copy-of select="$bwStr-FoEl-Step5"/> |
|---|
| 552 |
</div> |
|---|
| 553 |
</div> |
|---|
| 554 |
|
|---|
| 555 |
<div id="eventFormContent"> |
|---|
| 556 |
<!-- Basic tab --> |
|---|
| 557 |
<!-- ============== --> |
|---|
| 558 |
<!-- this tab is visible by default --> |
|---|
| 559 |
<div id="bwEventTab-Details"> |
|---|
| 560 |
<table cellspacing="0" class="common"> |
|---|
| 561 |
<!-- Calendar --> |
|---|
| 562 |
<!-- ======== --> |
|---|
| 563 |
<xsl:variable name="submissionCalendars"> |
|---|
| 564 |
<xsl:value-of select="count(/bedework/myCalendars//calendar[calType='1'])"/> |
|---|
| 565 |
</xsl:variable> |
|---|
| 566 |
<tr> |
|---|
| 567 |
<xsl:if test="$submissionCalendars = 1"> |
|---|
| 568 |
<xsl:attribute name="class">invisible</xsl:attribute> |
|---|
| 569 |
<!-- hide this row altogether if there is only one calendar; if you want the calendar |
|---|
| 570 |
path displayed, comment out this xsl:if. --> |
|---|
| 571 |
</xsl:if> |
|---|
| 572 |
<td class="fieldname"> |
|---|
| 573 |
<xsl:copy-of select="$bwStr-FoEl-Calendar"/> |
|---|
| 574 |
</td> |
|---|
| 575 |
<td class="fieldval"> |
|---|
| 576 |
<xsl:choose> |
|---|
| 577 |
<xsl:when test="$submissionCalendars = 1"> |
|---|
| 578 |
<!-- there is only 1 writable calendar, just send a hidden field --> |
|---|
| 579 |
<xsl:variable name="newCalPath"><xsl:value-of select="/bedework/myCalendars//calendar[calType='1']/path"/></xsl:variable> |
|---|
| 580 |
<input type="hidden" name="newCalPath" value="{$newCalPath}"/> |
|---|
| 581 |
<span id="bwEventCalDisplay"> |
|---|
| 582 |
<xsl:value-of select="$newCalPath"/> |
|---|
| 583 |
</span> |
|---|
| 584 |
</xsl:when> |
|---|
| 585 |
<xsl:otherwise> |
|---|
| 586 |
<select name="newCalPath" id="bwNewCalPathField"> |
|---|
| 587 |
<xsl:for-each select="/bedework/myCalendars//calendar[calType='1']"> |
|---|
| 588 |
<option> |
|---|
| 589 |
<xsl:attribute name="value"><xsl:value-of select="path"/></xsl:attribute> |
|---|
| 590 |
<xsl:value-of select="substring-after(substring-after(path,/bedework/submissionsRoot/unencoded),'/')"/> |
|---|
| 591 |
</option> |
|---|
| 592 |
</xsl:for-each> |
|---|
| 593 |
</select> |
|---|
| 594 |
</xsl:otherwise> |
|---|
| 595 |
</xsl:choose> |
|---|
| 596 |
</td> |
|---|
| 597 |
</tr> |
|---|
| 598 |
<!-- Summary (title) of event --> |
|---|
| 599 |
<!-- ========================= --> |
|---|
| 600 |
<tr> |
|---|
| 601 |
<td class="fieldname"> |
|---|
| 602 |
<xsl:copy-of select="$bwStr-FoEl-Title"/> |
|---|
| 603 |
</td> |
|---|
| 604 |
<td class="fieldval"> |
|---|
| 605 |
<div id="bwEventTitleNotice" class="invisible"><xsl:copy-of select="$bwStr-FoEl-MustIncludeTitle"/></div> <!-- a holder for validation notes --> |
|---|
| 606 |
<xsl:variable name="title" select="form/title/input/@value"/> |
|---|
| 607 |
<input type="text" name="summary" size="80" value="{$title}" id="bwEventTitle"/> |
|---|
| 608 |
</td> |
|---|
| 609 |
</tr> |
|---|
| 610 |
|
|---|
| 611 |
<!-- Date and Time --> |
|---|
| 612 |
<!-- ============= --> |
|---|
| 613 |
<tr> |
|---|
| 614 |
<td class="fieldname"> |
|---|
| 615 |
<xsl:copy-of select="$bwStr-FoEl-DateAndTime"/> |
|---|
| 616 |
</td> |
|---|
| 617 |
<td class="fieldval"> |
|---|
| 618 |
<!-- Set the timefields class for the first load of the page; |
|---|
| 619 |
subsequent changes will take place using javascript without a |
|---|
| 620 |
page reload. --> |
|---|
| 621 |
<xsl:variable name="timeFieldsClass"> |
|---|
| 622 |
<xsl:choose> |
|---|
| 623 |
<xsl:when test="form/allDay/input/@checked='checked'">invisible</xsl:when> |
|---|
| 624 |
<xsl:otherwise>timeFields</xsl:otherwise> |
|---|
| 625 |
</xsl:choose> |
|---|
| 626 |
</xsl:variable> |
|---|
| 627 |
|
|---|
| 628 |
<!-- All day flag --> |
|---|
| 629 |
<input type="checkbox" name="allDayFlag" id="allDayFlag" onclick="swapAllDayEvent(this)" value="off"> |
|---|
| 630 |
<xsl:if test="form/allDay/input/@checked='checked'"> |
|---|
| 631 |
<xsl:attribute name="checked">checked</xsl:attribute> |
|---|
| 632 |
<xsl:attribute name="value">on</xsl:attribute> |
|---|
| 633 |
</xsl:if> |
|---|
| 634 |
</input> |
|---|
| 635 |
<input type="hidden" name="eventStartDate.dateOnly" value="off" id="allDayStartDateField"> |
|---|
| 636 |
<xsl:if test="form/allDay/input/@checked='checked'"> |
|---|
| 637 |
<xsl:attribute name="value">on</xsl:attribute> |
|---|
| 638 |
</xsl:if> |
|---|
| 639 |
</input> |
|---|
| 640 |
<input type="hidden" name="eventEndDate.dateOnly" value="off" id="allDayEndDateField"> |
|---|
| 641 |
<xsl:if test="form/allDay/input/@checked='checked'"> |
|---|
| 642 |
<xsl:attribute name="value">on</xsl:attribute> |
|---|
| 643 |
</xsl:if> |
|---|
| 644 |
</input> |
|---|
| 645 |
<label for="allDayFlag"> |
|---|
| 646 |
<xsl:copy-of select="$bwStr-FoEl-AllDay"/> |
|---|
| 647 |
</label> |
|---|
| 648 |
|
|---|
| 649 |
<!-- HIDE floating event: no timezone (and not UTC) |
|---|
| 650 |
<xsl:choose> |
|---|
| 651 |
<xsl:when test="form/floating/input/@checked='checked'"> |
|---|
| 652 |
<input type="checkbox" name="floatingFlag" id="floatingFlag" onclick="swapFloatingTime(this)" value="on" checked="checked"/> |
|---|
| 653 |
<input type="hidden" name="eventStartDate.floating" value="true" id="startFloating"/> |
|---|
| 654 |
<input type="hidden" name="eventEndDate.floating" value="true" id="endFloating"/> |
|---|
| 655 |
</xsl:when> |
|---|
| 656 |
<xsl:otherwise> |
|---|
| 657 |
<input type="checkbox" name="floatingFlag" id="floatingFlag" onclick="swapFloatingTime(this)" value="off"/> |
|---|
| 658 |
<input type="hidden" name="eventStartDate.floating" value="false" id="startFloating"/> |
|---|
| 659 |
<input type="hidden" name="eventEndDate.floating" value="false" id="endFloating"/> |
|---|
| 660 |
</xsl:otherwise> |
|---|
| 661 |
</xsl:choose> |
|---|
| 662 |
floating --> |
|---|
| 663 |
|
|---|
| 664 |
<!-- HIDE store time as coordinated universal time (UTC) |
|---|
| 665 |
<xsl:choose> |
|---|
| 666 |
<xsl:when test="form/storeUTC/input/@checked='checked'"> |
|---|
| 667 |
<input type="checkbox" name="storeUTCFlag" id="storeUTCFlag" onclick="swapStoreUTC(this)" value="on" checked="checked"/> |
|---|
| 668 |
<input type="hidden" name="eventStartDate.storeUTC" value="true" id="startStoreUTC"/> |
|---|
| 669 |
<input type="hidden" name="eventEndDate.storeUTC" value="true" id="endStoreUTC"/> |
|---|
| 670 |
</xsl:when> |
|---|
| 671 |
<xsl:otherwise> |
|---|
| 672 |
<input type="checkbox" name="storeUTCFlag" id="storeUTCFlag" onclick="swapStoreUTC(this)" value="off"/> |
|---|
| 673 |
<input type="hidden" name="eventStartDate.storeUTC" value="false" id="startStoreUTC"/> |
|---|
| 674 |
<input type="hidden" name="eventEndDate.storeUTC" value="false" id="endStoreUTC"/> |
|---|
| 675 |
</xsl:otherwise> |
|---|
| 676 |
</xsl:choose> |
|---|
| 677 |
store as UTC--> |
|---|
| 678 |
|
|---|
| 679 |
<br/> |
|---|
| 680 |
<div class="dateStartEndBox"> |
|---|
| 681 |
<strong><xsl:copy-of select="$bwStr-FoEl-Start"/></strong> |
|---|
| 682 |
<div class="dateFields"> |
|---|
| 683 |
<span class="startDateLabel"><xsl:copy-of select="$bwStr-FoEl-Date"/><xsl:text> </xsl:text></span> |
|---|
| 684 |
<xsl:choose> |
|---|
| 685 |
<xsl:when test="$portalFriendly = 'true'"> |
|---|
| 686 |
<xsl:copy-of select="/bedework/formElements/form/start/month/*"/> |
|---|
| 687 |
<xsl:copy-of select="/bedework/formElements/form/start/day/*"/> |
|---|
| 688 |
<xsl:choose> |
|---|
| 689 |
<xsl:when test="/bedework/creating = 'true'"> |
|---|
| 690 |
<xsl:copy-of select="/bedework/formElements/form/start/year/*"/> |
|---|
| 691 |
</xsl:when> |
|---|
| 692 |
<xsl:otherwise> |
|---|
| 693 |
<xsl:copy-of select="/bedework/formElements/form/start/yearText/*"/> |
|---|
| 694 |
</xsl:otherwise> |
|---|
| 695 |
</xsl:choose> |
|---|
| 696 |
<script language="JavaScript" type="text/javascript"> |
|---|
| 697 |
<xsl:comment> |
|---|
| 698 |
startDateDynCalWidget = new dynCalendar('startDateDynCalWidget', <xsl:value-of select="number(/bedework/formElements/form/start/yearText/input/@value)"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(/bedework/formElements/form/start/day/select/option[@selected='selected']/@value)"/>, 'startDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/resources/'); |
|---|
| 699 |
</xsl:comment> |
|---|
| 700 |
</script> |
|---|
| 701 |
</xsl:when> |
|---|
| 702 |
<xsl:otherwise> |
|---|
| 703 |
<input type="text" name="bwEventWidgetStartDate" id="bwEventWidgetStartDate" size="10"/> |
|---|
| 704 |
<script language="JavaScript" type="text/javascript"> |
|---|
| 705 |
<xsl:comment> |
|---|
| 706 |
/*$("#bwEventWidgetStartDate").datepicker({ |
|---|
| 707 |
defaultDate: new Date(<xsl:value-of select="form/start/yearText/input/@value"/>, <xsl:value-of select="number(form/start/month/select/option[@selected = 'selected']/@value) - 1"/>, <xsl:value-of select="form/start/day/select/option[@selected = 'selected']/@value"/>) |
|---|
| 708 |
}).attr("readonly", "readonly"); |
|---|
| 709 |
$("#bwEventWidgetStartDate").val('<xsl:value-of select="substring-before(form/start/rfc3339DateTime,'T')"/>'); |
|---|
| 710 |
*/ |
|---|
| 711 |
</xsl:comment> |
|---|
| 712 |
</script> |
|---|
| 713 |
<input type="hidden" name="eventStartDate.year"> |
|---|
| 714 |
<xsl:attribute name="value"><xsl:value-of select="form/start/yearText/input/@value"/></xsl:attribute> |
|---|
| 715 |
</input> |
|---|
| 716 |
<input type="hidden" name="eventStartDate.month"> |
|---|
| 717 |
<xsl:attribute name="value"><xsl:value-of select="form/start/month/select/option[@selected = 'selected']/@value"/></xsl:attribute> |
|---|
| 718 |
</input> |
|---|
| 719 |
<input type="hidden" name="eventStartDate.day"> |
|---|
| 720 |
<xsl:attribute name="value"><xsl:value-of select="form/start/day/select/option[@selected = 'selected']/@value"/></xsl:attribute> |
|---|
| 721 |
</input> |
|---|
| 722 |
</xsl:otherwise> |
|---|
| 723 |
</xsl:choose> |
|---|
| 724 |
</div> |
|---|
| 725 |
<div class="{$timeFieldsClass}" id="startTimeFields"> |
|---|
| 726 |
<span id="calWidgetStartTimeHider" class="show"> |
|---|
| 727 |
<select name="eventStartDate.hour" id="eventStartDateHour"> |
|---|
| 728 |
<xsl:copy-of select="form/start/hour/select/*"/> |
|---|
| 729 |
</select> |
|---|
| 730 |
<select name="eventStartDate.minute" id="eventStartDateMinute"> |
|---|
| 731 |
<xsl:copy-of select="form/start/minute/select/*"/> |
|---|
| 732 |
</select> |
|---|
| 733 |
<xsl:if test="form/start/ampm"> |
|---|
| 734 |
<select name="eventStartDate.ampm" id="eventStartDateAmpm"> |
|---|
| 735 |
<xsl:copy-of select="form/start/ampm/select/*"/> |
|---|
| 736 |
</select> |
|---|
| 737 |
</xsl:if> |
|---|
| 738 |
<xsl:text> </xsl:text> |
|---|
| 739 |
<img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0" alt="bwClock" id="bwStartClock"/> |
|---|
| 740 |
|
|---|
| 741 |
<select name="eventStartDate.tzid" id="startTzid" class="timezones"> |
|---|
| 742 |
<xsl:if test="form/floating/input/@checked='checked'"><xsl:attribute name="disabled">disabled</xsl:attribute></xsl:if> |
|---|
| 743 |
<option value="-1"><xsl:copy-of select="$bwStr-FoEl-SelectTimezone"/></option> |
|---|
| 744 |
<xsl:variable name="startTzId" select="form/start/tzid"/> |
|---|
| 745 |
<xsl:for-each select="/bedework/timezones/timezone"> |
|---|
| 746 |
<option> |
|---|
| 747 |
<xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> |
|---|
| 748 |
<xsl:if test="$startTzId = id"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> |
|---|
| 749 |
<xsl:value-of select="name"/> |
|---|
| 750 |
</option> |
|---|
| 751 |
</xsl:for-each> |
|---|
| 752 |
</select> |
|---|
| 753 |
</span> |
|---|
| 754 |
</div> |
|---|
| 755 |
</div> |
|---|
| 756 |
<div class="dateStartEndBox"> |
|---|
| 757 |
<strong> |
|---|
| 758 |
<xsl:choose> |
|---|
| 759 |
<xsl:when test="form/entityType = '2'"><xsl:copy-of select="$bwStr-FoEl-Due"/></xsl:when> |
|---|
| 760 |
<xsl:otherwise><xsl:copy-of select="$bwStr-FoEl-End"/></xsl:otherwise> |
|---|
| 761 |
</xsl:choose> |
|---|
| 762 |
</strong> |
|---|
| 763 |
<xsl:choose> |
|---|
| 764 |
<xsl:when test="form/end/type='E'"> |
|---|
| 765 |
<input type="radio" name="eventEndType" id="bwEndDateTimeButton" value="E" checked="checked" onclick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> |
|---|
| 766 |
</xsl:when> |
|---|
| 767 |
<xsl:otherwise> |
|---|
| 768 |
<input type="radio" name="eventEndType" id="bwEndDateTimeButton" value="E" onclick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> |
|---|
| 769 |
</xsl:otherwise> |
|---|
| 770 |
</xsl:choose> |
|---|
| 771 |
<label for="bwEndDateTimeButton"> |
|---|
| 772 |
<xsl:copy-of select="$bwStr-FoEl-Date"/> |
|---|
| 773 |
</label> |
|---|
| 774 |
<xsl:variable name="endDateTimeClass"> |
|---|
| 775 |
<xsl:choose> |
|---|
| 776 |
<xsl:when test="form/end/type='E'">shown</xsl:when> |
|---|
| 777 |
<xsl:otherwise>invisible</xsl:otherwise> |
|---|
| 778 |
</xsl:choose> |
|---|
| 779 |
</xsl:variable> |
|---|
| 780 |
<div class="{$endDateTimeClass}" id="endDateTime"> |
|---|
| 781 |
<div class="dateFields"> |
|---|
| 782 |
<xsl:choose> |
|---|
| 783 |
<xsl:when test="$portalFriendly = 'true'"> |
|---|
| 784 |
<xsl:copy-of select="/bedework/formElements/form/end/dateTime/month/*"/> |
|---|
| 785 |
<xsl:copy-of select="/bedework/formElements/form/end/dateTime/day/*"/> |
|---|
| 786 |
<xsl:choose> |
|---|
| 787 |
<xsl:when test="/bedework/creating = 'true'"> |
|---|
| 788 |
<xsl:copy-of select="/bedework/formElements/form/end/dateTime/year/*"/> |
|---|
| 789 |
</xsl:when> |
|---|
| 790 |
<xsl:otherwise> |
|---|
| 791 |
<xsl:copy-of select="/bedework/formElements/form/end/dateTime/yearText/*"/> |
|---|
| 792 |
</xsl:otherwise> |
|---|
| 793 |
</xsl:choose> |
|---|
| 794 |
<script language="JavaScript" type="text/javascript"> |
|---|
| 795 |
<xsl:comment> |
|---|
| 796 |
endDateDynCalWidget = new dynCalendar('endDateDynCalWidget', <xsl:value-of select="number(/bedework/formElements/form/start/yearText/input/@value)"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(/bedework/formElements/form/start/day/select/option[@selected='selected']/@value)"/>, 'endDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/resources/'); |
|---|
| 797 |
</xsl:comment> |
|---|
| 798 |
</script> |
|---|
| 799 |
</xsl:when> |
|---|
| 800 |
<xsl:otherwise> |
|---|
| 801 |
<input type="text" name="bwEventWidgetEndDate" id="bwEventWidgetEndDate" size="10"/> |
|---|
| 802 |
<script language="JavaScript" type="text/javascript"> |
|---|
| 803 |
<xsl:comment> |
|---|
| 804 |
/*$("#bwEventWidgetEndDate").datepicker({ |
|---|
| 805 |
defaultDate: new Date(<xsl:value-of select="form/end/dateTime/yearText/input/@value"/>, <xsl:value-of select="number(form/end/dateTime/month/select/option[@selected = 'selected']/@value) - 1"/>, <xsl:value-of select="form/end/dateTime/day/select/option[@selected = 'selected']/@value"/>) |
|---|
| 806 |
}).attr("readonly", "readonly"); |
|---|
| 807 |
$("#bwEventWidgetEndDate").val('<xsl:value-of select="substring-before(form/end/rfc3339DateTime,'T')"/>'); |
|---|
| 808 |
*/ |
|---|
| 809 |
</xsl:comment> |
|---|
| 810 |
</script> |
|---|
| 811 |
<input type="hidden" name="eventEndDate.year"> |
|---|
| 812 |
<xsl:attribute name="value"><xsl:value-of select="form/end/dateTime/yearText/input/@value"/></xsl:attribute> |
|---|
| 813 |
</input> |
|---|
| 814 |
<input type="hidden" name="eventEndDate.month"> |
|---|
| 815 |
<xsl:attribute name="value"><xsl:value-of select="form/end/dateTime/month/select/option[@selected = 'selected']/@value"/></xsl:attribute> |
|---|
| 816 |
</input> |
|---|
| 817 |
<input type="hidden" name="eventEndDate.day"> |
|---|
| 818 |
<xsl:attribute name="value"><xsl:value-of select="form/end/dateTime/day/select/option[@selected = 'selected']/@value"/></xsl:attribute> |
|---|
| 819 |
</input> |
|---|
| 820 |
</xsl:otherwise> |
|---|
| 821 |
</xsl:choose> |
|---|
| 822 |
</div> |
|---|
| 823 |
<div class="{$timeFieldsClass}" id="endTimeFields"> |
|---|
| 824 |
<span id="calWidgetEndTimeHider" class="show"> |
|---|
| 825 |
<select name="eventEndDate.hour" id="eventEndDateHour"> |
|---|
| 826 |
<xsl:copy-of select="form/end/dateTime/hour/select/*"/> |
|---|
| 827 |
</select> |
|---|
| 828 |
<select name="eventEndDate.minute" id="eventEndDateMinute"> |
|---|
| 829 |
<xsl:copy-of select="form/end/dateTime/minute/select/*"/> |
|---|
| 830 |
</select> |
|---|
| 831 |
<xsl:if test="form/start/ampm"> |
|---|
| 832 |
<select name="eventEndDate.ampm" id="eventEndDateAmpm"> |
|---|
| 833 |
<xsl:copy-of select="form/end/dateTime/ampm/select/*"/> |
|---|
| 834 |
</select> |
|---|
| 835 |
</xsl:if> |
|---|
| 836 |
<xsl:text> </xsl:text> |
|---|
| 837 |
<img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0" alt="bwClock" id="bwEndClock"/> |
|---|
| 838 |
|
|---|
| 839 |
<select name="eventEndDate.tzid" id="endTzid" class="timezones"> |
|---|
| 840 |
<xsl:if test="form/floating/input/@checked='checked'"><xsl:attribute name="disabled">disabled</xsl:attribute></xsl:if> |
|---|
| 841 |
<option value="-1"><xsl:copy-of select="$bwStr-FoEl-SelectTimezone"/></option> |
|---|
| 842 |
<xsl:variable name="endTzId" select="form/end/dateTime/tzid"/> |
|---|
| 843 |
<xsl:for-each select="/bedework/timezones/timezone"> |
|---|
| 844 |
<option> |
|---|
| 845 |
<xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> |
|---|
| 846 |
<xsl:if test="$endTzId = id"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> |
|---|
| 847 |
<xsl:value-of select="name"/> |
|---|
| 848 |
</option> |
|---|
| 849 |
</xsl:for-each> |
|---|
| 850 |
</select> |
|---|
| 851 |
</span> |
|---|
| 852 |
</div> |
|---|
| 853 |
</div><br/> |
|---|
| 854 |
<div id="clock" class="invisible"> |
|---|
| 855 |
<xsl:call-template name="clock"/> |
|---|
| 856 |
</div> |
|---|
| 857 |
<div class="dateFields"> |
|---|
| 858 |
<xsl:choose> |
|---|
| 859 |
<xsl:when test="form/end/type='D'"> |
|---|
| 860 |
<input type="radio" name="eventEndType" id="bwEndDurationButton" value="D" checked="checked" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> |
|---|
| 861 |
</xsl:when> |
|---|
| 862 |
<xsl:otherwise> |
|---|
| 863 |
<input type="radio" name="eventEndType" id="bwEndDurationButton" value="D" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> |
|---|
| 864 |
</xsl:otherwise> |
|---|
| 865 |
</xsl:choose> |
|---|
| 866 |
<label for="bwEndDurationButton"> |
|---|
| 867 |
<xsl:copy-of select="$bwStr-FoEl-Duration"/> |
|---|
| 868 |
</label> |
|---|
| 869 |
<xsl:variable name="endDurationClass"> |
|---|
| 870 |
<xsl:choose> |
|---|
| 871 |
<xsl:when test="form/end/type='D'">shown</xsl:when> |
|---|
| 872 |
<xsl:otherwise>invisible</xsl:otherwise> |
|---|
| 873 |
</xsl:choose> |
|---|
| 874 |
</xsl:variable> |
|---|
| 875 |
<xsl:variable name="durationHrMinClass"> |
|---|
| 876 |
<xsl:choose> |
|---|
| 877 |
<xsl:when test="form/allDay/input/@checked='checked'">invisible</xsl:when> |
|---|
| 878 |
<xsl:otherwise>shown</xsl:otherwise> |
|---|
| 879 |
</xsl:choose> |
|---|
| 880 |
</xsl:variable> |
|---|
| 881 |
<div class="{$endDurationClass}" id="endDuration"> |
|---|
| 882 |
<xsl:choose> |
|---|
| 883 |
<xsl:when test="form/end/duration/weeks/input/@value = '0'"> |
|---|
| 884 |
<!-- we are using day, hour, minute format --> |
|---|
| 885 |
<!-- must send either no week value or week value of 0 (zero) --> |
|---|
| 886 |
<div class="durationBox"> |
|---|
| 887 |
<input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')" checked="checked"/> |
|---|
| 888 |
<xsl:variable name="daysStr" select="form/end/duration/days/input/@value"/> |
|---|
| 889 |
<input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays"/><xsl:copy-of select="$bwStr-FoEl-Days"/> |
|---|
| 890 |
<span id="durationHrMin" class="{$durationHrMinClass}"> |
|---|
| 891 |
<xsl:variable name="hoursStr" select="form/end/duration/hours/input/@value"/> |
|---|
| 892 |
<input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours"/><xsl:copy-of select="$bwStr-FoEl-Hours"/> |
|---|
| 893 |
<xsl:variable name="minutesStr" select="form/end/duration/minutes/input/@value"/> |
|---|
| 894 |
<input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes"/><xsl:copy-of select="$bwStr-FoEl-Minutes"/> |
|---|
| 895 |
</span> |
|---|
| 896 |
</div> |
|---|
| 897 |
<span class="durationSpacerText"><xsl:copy-of select="$bwStr-FoEl-Or"/></span> |
|---|
| 898 |
<div class="durationBox"> |
|---|
| 899 |
<input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')"/> |
|---|
| 900 |
<xsl:variable name="weeksStr" select="form/end/duration/weeks/input/@value"/> |
|---|
| 901 |
<input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks" disabled="disabled"/><xsl:copy-of select="$bwStr-FoEl-Weeks"/> |
|---|
| 902 |
</div> |
|---|
| 903 |
</xsl:when> |
|---|
| 904 |
<xsl:otherwise> |
|---|
| 905 |
<!-- we are using week format --> |
|---|
| 906 |
<div class="durationBox"> |
|---|
| 907 |
<input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')"/> |
|---|
| 908 |
<xsl:variable name="daysStr" select="form/end/duration/days/input/@value"/> |
|---|
| 909 |
<input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays" disabled="disabled"/><xsl:copy-of select="$bwStr-FoEl-Days"/> |
|---|
| 910 |
<span id="durationHrMin" class="{$durationHrMinClass}"> |
|---|
| 911 |
<xsl:variable name="hoursStr" select="form/end/duration/hours/input/@value"/> |
|---|
| 912 |
<input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours" disabled="disabled"/><xsl:copy-of select="$bwStr-FoEl-Hours"/> |
|---|
| 913 |
<xsl:variable name="minutesStr" select="form/end/duration/minutes/input/@value"/> |
|---|
| 914 |
<input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes" disabled="disabled"/><xsl:copy-of select="$bwStr-FoEl-Minutes"/> |
|---|
| 915 |
</span> |
|---|
| 916 |
</div> |
|---|
| 917 |
<span class="durationSpacerText"><xsl:copy-of select="$bwStr-FoEl-Or"/></span> |
|---|
| 918 |
<div class="durationBox"> |
|---|
| 919 |
<input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')" checked="checked"/> |
|---|
| 920 |
<xsl:variable name="weeksStr" select="form/end/duration/weeks/input/@value"/> |
|---|
| 921 |
<input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks"/><xsl:copy-of select="$bwStr-FoEl-Weeks"/> |
|---|
| 922 |
</div> |
|---|
| 923 |
</xsl:otherwise> |
|---|
| 924 |
</xsl:choose> |
|---|
| 925 |
</div> |
|---|
| 926 |
</div><br/> |
|---|
| 927 |
<div class="dateFields" id="noDuration"> |
|---|
| 928 |
<xsl:choose> |
|---|
| 929 |
<xsl:when test="form/end/type='N'"> |
|---|
| 930 |
<input type="radio" name="eventEndType" id="bwEndNoneButton" value="N" checked="checked" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> |
|---|
| 931 |
</xsl:when> |
|---|
| 932 |
<xsl:otherwise> |
|---|
| 933 |
<input type="radio" name="eventEndType" id="bwEndNoneButton" value="N" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> |
|---|
| 934 |
</xsl:otherwise> |
|---|
| 935 |
</xsl:choose> |
|---|
| 936 |
<label for="bwEndNoneButton"> |
|---|
| 937 |
<xsl:copy-of select="$bwStr-FoEl-This"/><xsl:text> </xsl:text> |
|---|
| 938 |
<xsl:choose> |
|---|
| 939 |
<xsl:when test="form/entityType = '2'"><xsl:copy-of select="$bwStr-FoEl-Task"/></xsl:when> |
|---|
| 940 |
<xsl:otherwise><xsl:copy-of select="$bwStr-FoEl-Event"/></xsl:otherwise> |
|---|
| 941 |
</xsl:choose> |
|---|
| 942 |
<xsl:text> </xsl:text> |
|---|
| 943 |
<xsl:copy-of select="$bwStr-FoEl-HasNoDurationEndDate"/> |
|---|
| 944 |
</label> |
|---|
| 945 |
</div> |
|---|
| 946 |
</div> |
|---|
| 947 |
</td> |
|---|
| 948 |
</tr> |
|---|
| 949 |
|
|---|
| 950 |
<!-- Description --> |
|---|
| 951 |
<tr> |
|---|
| 952 |
<td class="fieldname"><xsl:copy-of select="$bwStr-FoEl-Description"/></td> |
|---|
| 953 |
<td class="fieldval"> |
|---|
| 954 |
<div id="bwEventDescNotice" class="invisible"><xsl:copy-of select="$bwStr-FoEl-MustIncludeDescription"/></div> <!-- a holder for validation notes --> |
|---|
| 955 |
<xsl:choose> |
|---|
| 956 |
<xsl:when test="normalize-space(form/desc/textarea) = ''"> |
|---|
| 957 |
<textarea name="description" cols="60" rows="4" id="bwEventDesc"> |
|---|
| 958 |
<xsl:text> </xsl:text> |
|---|
| 959 |
</textarea> |
|---|
| 960 |
<!-- keep this space to avoid browser |
|---|
| 961 |
rendering errors when the text area is empty --> |
|---|
| 962 |
</xsl:when> |
|---|
| 963 |
<xsl:otherwise> |
|---|
| 964 |
<textarea name="description" cols="60" rows="4" id="bwEventDesc"> |
|---|
| 965 |
<xsl:value-of select="form/desc/textarea"/> |
|---|
| 966 |
</textarea> |
|---|
| 967 |
</xsl:otherwise> |
|---|
| 968 |
</xsl:choose> |
|---|
| 969 |
</td> |
|---|
| 970 |
</tr> |
|---|
| 971 |
<!-- Status --> |
|---|
| 972 |
<!-- <tr> |
|---|
| 973 |
<td class="fieldname"> |
|---|
| 974 |
<xsl:copy-of select="$bwStr-FoEl-Status"/> |
|---|
| 975 |
</td> |
|---|
| 976 |
<td class="fieldval"> |
|---|
| 977 |
<input type="radio" name="eventStatus" value="CONFIRMED"> |
|---|
| 978 |
<xsl:if test="form/status = 'CONFIRMED' or /bedework/creating = 'true' or form/status = ''"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> |
|---|
| 979 |
</input> |
|---|
| 980 |
<xsl:copy-of select="$bwStr-FoEl-Confirmed"/> |
|---|
| 981 |
<input type="radio" name="eventStatus" value="TENTATIVE"> |
|---|
| 982 |
<xsl:if test="form/status = 'TENTATIVE'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> |
|---|
| 983 |
</input> |
|---|
| 984 |
<xsl:copy-of select="$bwStr-FoEl-Tentative"/> |
|---|
| 985 |
<input type="radio" name="eventStatus" value="CANCELLED"> |
|---|
| 986 |
<xsl:if test="form/status = 'CANCELLED'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> |
|---|
| 987 |
</input> |
|---|
| 988 |
<xsl:copy-of select="$bwStr-FoEl-Canceled"/> |
|---|
| 989 |
</td> |
|---|
| 990 |
</tr> --> |
|---|
| 991 |
<!-- Cost --> |
|---|
| 992 |
<tr> |
|---|
| 993 |
<td class="fieldname"><em><xsl:copy-of select="$bwStr-FoEl-Cost"/></em></td> |
|---|
| 994 |
<td class="fieldval"> |
|---|
| 995 |
<input type="text" name="eventCost" size="30" value=""> |
|---|
| 996 |
<xsl:attribute name="value"><xsl:value-of select="form/cost/input/@value"/></xsl:attribute> |
|---|
| 997 |
</input> |
|---|
| 998 |
<span class="note"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-FoEl-CostOptional"/></span> |
|---|
| 999 |
</td> |
|---|
| 1000 |
</tr> |
|---|
| 1001 |
<!-- Link (url associated with event) --> |
|---|
| 1002 |
<tr> |
|---|
| 1003 |
<td class="fieldname"><em><xsl:copy-of select="$bwStr-FoEl-EventURL"/></em></td> |
|---|
| 1004 |
<td class="fieldval"> |
|---|
| 1005 |
<input type="text" name="eventLink" size="30" value=""> |
|---|
| 1006 |
<xsl:attribute name="value"><xsl:value-of select="form/link/input/@value"/></xsl:attribute> |
|---|
| 1007 |
</input> |
|---|
| 1008 |
<span class="note"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-FoEl-EventURLOptional"/></span> |
|---|
| 1009 |
</td> |
|---|
| 1010 |
</tr> |
|---|
| 1011 |
<!-- Image Url --> |
|---|
| 1012 |
<tr> |
|---|
| 1013 |
<td class="fieldname"><em><xsl:copy-of select="$bwStr-FoEl-ImageURL"/></em></td> |
|---|
| 1014 |
<td class="fieldval"> |
|---|
| 1015 |
<input type="text" name="xBwImageHolder" size="30" value=""> |
|---|
| 1016 |
<xsl:attribute name="value"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-IMAGE']/values/text" disable-output-escaping="yes"/></xsl:attribute> |
|---|
| 1017 |
</input> |
|---|
| 1018 |
<xsl:text> </xsl:text> |
|---|
| 1019 |
<span class="note"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-FoEl-ImageURLOptional"/></span> |
|---|
| 1020 |
</td> |
|---|
| 1021 |
</tr> |
|---|
| 1022 |
</table> |
|---|
| 1023 |
</div> |
|---|
| 1024 |
|
|---|
| 1025 |
<!-- Location tab --> |
|---|
| 1026 |
<!-- ============== --> |
|---|
| 1027 |
<div id="bwEventTab-Location" class="invisible"> |
|---|
| 1028 |
<div id="bwLocationUidNotice" class="invisible"><xsl:copy-of select="$bwStr-FoEl-MustSelectLocation"/></div> |
|---|
| 1029 |
<div class="mainForm"> |
|---|
| 1030 |
<span id="eventFormLocationList"> |
|---|
| 1031 |
<select name="locationUid" class="bigSelect" id="bwLocationUid"> |
|---|
| 1032 |
<option value=""><xsl:copy-of select="$bwStr-FoEl-SelectExistingLocation"/></option> |
|---|
| 1033 |
<xsl:copy-of select="form/location/locationmenu/select/*"/> |
|---|
| 1034 |
</select> |
|---|
| 1035 |
</span> |
|---|
| 1036 |
</div> |
|---|
| 1037 |
<p class="subFormMessage"> |
|---|
| 1038 |
<xsl:copy-of select="$bwStr-FoEl-DidntFindLocation"/> |
|---|
| 1039 |
</p> |
|---|
| 1040 |
<div class="subForm"> |
|---|
| 1041 |
<p> |
|---|
| 1042 |
<label for="commentLocationAddress"><xsl:copy-of select="$bwStr-FoEl-Address"/><xsl:text> </xsl:text></label> |
|---|
| 1043 |
<input type="text" name="commentLocationAddress" id="bwCommentLocationAddress"> |
|---|
| 1044 |
<xsl:attribute name="value"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-LOCATION']/values/text" disable-output-escaping="yes"/></xsl:attribute> |
|---|
| 1045 |
</input> |
|---|
| 1046 |
</p> |
|---|
| 1047 |
<p> |
|---|
| 1048 |
<label for="commentLocationSubaddress"><em><xsl:copy-of select="$bwStr-FoEl-SubAddress"/></em> </label> |
|---|
| 1049 |
<input type="text" name="commentLocationSubaddress" id="commentLocationSubaddress"> |
|---|
| 1050 |
<xsl:attribute name="value"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-LOCATION']/parameters/node()[name()='X-BEDEWORK-PARAM-SUBADDRESS']" disable-output-escaping="yes"/></xsl:attribute> |
|---|
| 1051 |
</input> |
|---|
| 1052 |
<span class="note"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-FoEl-Optional"/></span> |
|---|
| 1053 |
</p> |
|---|
| 1054 |
<p> |
|---|
| 1055 |
<label for="commentLocationURL"><em><xsl:copy-of select="$bwStr-FoEl-URL"/></em> </label> |
|---|
| 1056 |
<input type="text" name="commentLocationURL" id="commentLocationURL"> |
|---|
| 1057 |
<xsl:attribute name="value"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-LOCATION']/parameters/node()[name()='X-BEDEWORK-PARAM-URL']" disable-output-escaping="yes"/></xsl:attribute> |
|---|
| 1058 |
</input> |
|---|
| 1059 |
<span class="note"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-FoEl-Optional"/></span> |
|---|
| 1060 |
</p> |
|---|
| 1061 |
</div> |
|---|
| 1062 |
</div> |
|---|
| 1063 |
|
|---|
| 1064 |
<!-- Contact tab --> |
|---|
| 1065 |
<!-- ============== --> |
|---|
| 1066 |
<div id="bwEventTab-Contact" class="invisible"> |
|---|
| 1067 |
<div id="bwContactUidNotice" class="invisible"><xsl:copy-of select="$bwStr-FoEl-MustSelectContact"/></div> |
|---|
| 1068 |
<div class="mainForm"> |
|---|
| 1069 |
<select name="contactUid" id="bwContactUid" class="bigSelect"> |
|---|
| 1070 |
<option value=""> |
|---|
| 1071 |
<xsl:copy-of select="$bwStr-FoEl-SelectExistingContact"/> |
|---|
| 1072 |
</option> |
|---|
| 1073 |
<xsl:copy-of select="form/contact/all/select/*"/> |
|---|
| 1074 |
</select> |
|---|
| 1075 |
</div> |
|---|
| 1076 |
<p class="subFormMessage"> |
|---|
| 1077 |
<xsl:copy-of select="$bwStr-FoEl-DidntFindContact"/> |
|---|
| 1078 |
</p> |
|---|
| 1079 |
<div class="subForm"> |
|---|
| 1080 |
<p> |
|---|
| 1081 |
<label for="commentContactName"><xsl:copy-of select="$bwStr-FoEl-OrganizationName"/><xsl:text> </xsl:text> </label> |
|---|
| 1082 |
<input type="text" name="commentContactName" id="bwCommentContactName" size="40"> |
|---|
| 1083 |
<xsl:attribute name="value"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-CONTACT']/values/text" disable-output-escaping="yes"/></xsl:attribute> |
|---|
| 1084 |
</input> |
|---|
| 1085 |
<span class="note"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-FoEl-PleaseLimitContacts"/></span> |
|---|
| 1086 |
</p> |
|---|
| 1087 |
<p> |
|---|
| 1088 |
<label for="commentContactPhone"><em><xsl:copy-of select="$bwStr-FoEl-Phone"/></em> </label> |
|---|
| 1089 |
<input type="text" name="commentContactPhone"> |
|---|
| 1090 |
<xsl:attribute name="value"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-CONTACT']/parameters/node()[name()='X-BEDEWORK-PARAM-PHONE']" disable-output-escaping="yes"/></xsl:attribute> |
|---|
| 1091 |
</input> |
|---|
| 1092 |
<span class="note"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-FoEl-Optional"/></span> |
|---|
| 1093 |
</p> |
|---|
| 1094 |
<p> |
|---|
| 1095 |
<label for="commentContactURL"><em><xsl:copy-of select="$bwStr-FoEl-URL"/></em> </label> |
|---|
| 1096 |
<input type="text" name="commentContactURL"> |
|---|
| 1097 |
<xsl:attribute name="value"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-CONTACT']/parameters/node()[name()='X-BEDEWORK-PARAM-URL']" disable-output-escaping="yes"/></xsl:attribute> |
|---|
| 1098 |
</input> |
|---|
| 1099 |
<span class="note"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-FoEl-Optional"/></span> |
|---|
| 1100 |
</p> |
|---|
| 1101 |
<p> |
|---|
| 1102 |
<label for="commentContactEmail"><em><xsl:copy-of select="$bwStr-FoEl-Email"/></em> </label> |
|---|
| 1103 |
<input type="text" name="commentContactEmail"> |
|---|
| 1104 |
<xsl:attribute name="value"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-CONTACT']/parameters/node()[name()='X-BEDEWORK-PARAM-EMAIL']" disable-output-escaping="yes"/></xsl:attribute> |
|---|
| 1105 |
</input> |
|---|
| 1106 |
<span class="note"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-FoEl-Optional"/></span> |
|---|
| 1107 |
</p> |
|---|
| 1108 |
</div> |
|---|
| 1109 |
</div> |
|---|
| 1110 |
|
|---|
| 1111 |
<!-- Topical areas tab --> |
|---|
| 1112 |
<!-- ================= --> |
|---|
| 1113 |
<div id="bwEventTab-Categories" class="invisible"> |
|---|
| 1114 |
<!-- Topical area --> |
|---|
| 1115 |
<!-- These are the subscriptions (aliases) where the events should show up. |
|---|
| 1116 |
By selecting one or more of these, appropriate categories will be set on the event --> |
|---|
| 1117 |
<ul class="aliasTree"> |
|---|
| 1118 |
<!-- hard coding the "aliases" name is not best, but will do for now --> |
|---|
| 1119 |
<xsl:apply-templates select="form/calendars/calendar/calendar[name='aliases']" mode="showEventFormAliases"> |
|---|
| 1120 |
<xsl:with-param name="root">true</xsl:with-param> |
|---|
| 1121 |
</xsl:apply-templates> |
|---|
| 1122 |
</ul> |
|---|
| 1123 |
<p class="subFormMessage"> |
|---|
| 1124 |
<xsl:copy-of select="$bwStr-FoEl-MissingTopicalArea"/> |
|---|
| 1125 |
</p> |
|---|
| 1126 |
<div class="subForm"> |
|---|
| 1127 |
<p> |
|---|
| 1128 |
<label for="commentCategories"><xsl:copy-of select="$bwStr-FoEl-TypeOfEvent"/><xsl:text> </xsl:text></label> |
|---|
| 1129 |
<input type="text" name="commentCategories" size="80"> |
|---|
| 1130 |
<xsl:attribute name="value"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-CATEGORIES']/values/text" disable-output-escaping="yes"/></xsl:attribute> |
|---|
| 1131 |
</input> |
|---|
| 1132 |
</p> |
|---|
| 1133 |
</div> |
|---|
| 1134 |
<!-- xsl:variable name="catCount" select="count(form/categories/all/category)"/> |
|---|
| 1135 |
<xsl:choose> |
|---|
| 1136 |
<xsl:when test="not(form/categories/all/category)"> |
|---|
| 1137 |
no categories defined |
|---|
| 1138 |
</xsl:when> |
|---|
| 1139 |
<xsl:otherwise> |
|---|
| 1140 |
<table cellpadding="0" id="allCategoryCheckboxes"> |
|---|
| 1141 |
<tr> |
|---|
| 1142 |
<td> |
|---|
| 1143 |
<xsl:for-each select="form/categories/all/category[position() <= ceiling($catCount div 2)]"> |
|---|
| 1144 |
<input type="checkbox" name="catUid"> |
|---|
| 1145 |
<xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> |
|---|
| 1146 |
<xsl:if test="uid = ../../current//category/uid"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> |
|---|
| 1147 |
<xsl:value-of select="value"/> |
|---|
| 1148 |
</input><br/> |
|---|
| 1149 |
</xsl:for-each> |
|---|
| 1150 |
</td> |
|---|
| 1151 |
<td> |
|---|
| 1152 |
<xsl:for-each select="form/categories/all/category[position() > ceiling($catCount div 2)]"> |
|---|
| 1153 |
<input type="checkbox" name="catUid"> |
|---|
| 1154 |
<xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> |
|---|
| 1155 |
<xsl:if test="uid = ../../current//category/uid"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> |
|---|
| 1156 |
<xsl:value-of select="value"/> |
|---|
| 1157 |
</input><br/> |
|---|
| 1158 |
</xsl:for-each> |
|---|
| 1159 |
</td> |
|---|
| 1160 |
</tr> |
|---|
| 1161 |
</table> |
|---|
| 1162 |
</xsl:otherwise> |
|---|
| 1163 |
</xsl:choose> |
|---|
| 1164 |
<p class="subFormMessage"> |
|---|
| 1165 |
Didn't find the category you want? Suggest a new one: |
|---|
| 1166 |
</p> |
|---|
| 1167 |
<div class="subForm"> |
|---|
| 1168 |
<p> |
|---|
| 1169 |
<label for="commentCategories">Category suggestion: </label> |
|---|
| 1170 |
<input type="text" name="commentCategories" size="30"> |
|---|
| 1171 |
<xsl:attribute name="value"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-CATEGORIES']/values/text" disable-output-escaping="yes"/></xsl:attribute> |
|---|
| 1172 |
</input> |
|---|
| 1173 |
</p> |
|---|
| 1174 |
</div--> |
|---|
| 1175 |
</div> |
|---|
| 1176 |
|
|---|
| 1177 |
<!-- Review tab --> |
|---|
| 1178 |
<!-- ============== --> |
|---|
| 1179 |
<div id="bwEventTab-Review" class="invisible"> |
|---|
| 1180 |
<!-- <table id="bwEventSubmitReview" class="common"> |
|---|
| 1181 |
<tr> |
|---|
| 1182 |
<th colspan="2">Event Details</th> |
|---|
| 1183 |
</tr>--> |
|---|
| 1184 |
<!-- the form elements will be inserted here --> |
|---|
| 1185 |
<!-- </table>--> |
|---|
| 1186 |
|
|---|
| 1187 |
<div id="bwCommentNotes"> |
|---|
| 1188 |
<!-- holders for validation notes --> |
|---|
| 1189 |
<div id="xBwEmailHolderNotice" class="invisible"><xsl:copy-of select="$bwStr-FoEl-MustIncludeEmail"/></div> |
|---|
| 1190 |
<div id="xBwEmailHolderInvalidNotice" class="invisible"><xsl:copy-of select="$bwStr-FoEl-InvalidEmailAddress"/></div> |
|---|
| 1191 |
<p> |
|---|
| 1192 |
<label for="xBwEmailHolder"><xsl:copy-of select="$bwStr-FoEl-EnterEmailAddress"/><xsl:text> </xsl:text></label><br/> |
|---|
| 1193 |
<input type="text" name="xBwEmailHolder" id="xBwEmailHolder" size="80"> |
|---|
| 1194 |
<xsl:attribute name="value"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-SUBMITTER-EMAIL']/values/text"/></xsl:attribute> |
|---|
| 1195 |
</input> |
|---|
| 1196 |
</p> |
|---|
| 1197 |
|
|---|
| 1198 |
<p> |
|---|
| 1199 |
<xsl:copy-of select="$bwStr-FoEl-FinalNotes"/><br/> |
|---|
| 1200 |
<!-- note: don't remove the #160 from the textarea or browsers will see it as a closed tag when empty --> |
|---|
| 1201 |
<textarea name="commentNotes" cols="60" rows="4"><!-- |
|---|
| 1202 |
--><xsl:value-of select="normalize-space(form/xproperties/node()[name()='X-BEDEWORK-SUBMIT-COMMENT']/values/text)" disable-output-escaping="yes"/><!-- |
|---|
| 1203 |
--><xsl:if test="normalize-space(form/xproperties/node()[name()='X-BEDEWORK-SUBMIT-COMMENT']/values/text) = ''"><xsl:text> </xsl:text></xsl:if><!-- |
|---|
| 1204 |
--></textarea> |
|---|
| 1205 |
</p> |
|---|
| 1206 |
</div> |
|---|
| 1207 |
<div class="eventSubmitButtons"> |
|---|
| 1208 |
<input name="submit" class="submit" type="submit" value="{$bwStr-FoEl-SubmitForApproval}"/> |
|---|
| 1209 |
<input name="cancelled" type="submit" value="{$bwStr-FoEl-Cancel}"/> |
|---|
| 1210 |
</div> |
|---|
| 1211 |
</div> |
|---|
| 1212 |
</div> |
|---|
| 1213 |
|
|---|
| 1214 |
<div id="bwBottomNav"> |
|---|
| 1215 |
<div id="bwBottomNav-Details"> |
|---|
| 1216 |
<div class="navButtons"> |
|---|
| 1217 |
<a href="javascript:show('bwEventTab-Location','bwHelp-Location','bwBottomNav-Location'); hide('bwEventTab-Details','bwHelp-Details','bwBottomNav-Details');" |
|---|
| 1218 |
onclick="return validateStep1();"> |
|---|
| 1219 |
<xsl:copy-of select="$bwStr-FoEl-Next"/> |
|---|
| 1220 |
<xsl:text> </xsl:text> |
|---|
| 1221 |
<img alt="{$bwStr-FoEl-Next}" |
|---|
| 1222 |
src="{$resourcesRoot}/resources/arrowRight.gif" |
|---|
| 1223 |
width="13" |
|---|
| 1224 |
height="13" |
|---|
| 1225 |
border="0"/> |
|---|
| 1226 |
</a> |
|---|
| 1227 |
</div> |
|---|
| 1228 |
</div> |
|---|
| 1229 |
<div id="bwBottomNav-Location" class="invisible"> |
|---|
| 1230 |
<div class="navButtons"> |
|---|
| 1231 |
<a href="javascript:show('bwEventTab-Details','bwHelp-Details','bwBottomNav-Details'); hide('bwEventTab-Location','bwHelp-Location','bwBottomNav-Location');"> |
|---|
| 1232 |
<img alt="{$bwStr-FoEl-Previous}" |
|---|
| 1233 |
src="{$resourcesRoot}/resources/arrowLeft.gif" |
|---|
| 1234 |
width="13" |
|---|
| 1235 |
height="13" |
|---|
| 1236 |
border="0"/> |
|---|
| 1237 |
<xsl:text> </xsl:text> |
|---|
| 1238 |
<xsl:copy-of select="$bwStr-FoEl-Previous"/> |
|---|
| 1239 |
</a> | |
|---|
| 1240 |
<a href="javascript:show('bwEventTab-Contact','bwHelp-Contact','bwBottomNav-Contact'); hide('bwEventTab-Location','bwHelp-Location','bwBottomNav-Location');" |
|---|
| 1241 |
onclick="return validateStep2();"> |
|---|
| 1242 |
<xsl:copy-of select="$bwStr-FoEl-Next"/> |
|---|
| 1243 |
<xsl:text> </xsl:text> |
|---|
| 1244 |
<img alt="{$bwStr-FoEl-Next}" |
|---|
| 1245 |
src="{$resourcesRoot}/resources/arrowRight.gif" |
|---|
| 1246 |
width="13" |
|---|
| 1247 |
height="13" |
|---|
| 1248 |
border="0"/> |
|---|
| 1249 |
</a> |
|---|
| 1250 |
</div> |
|---|
| 1251 |
</div> |
|---|
| 1252 |
<div id="bwBottomNav-Contact" class="invisible"> |
|---|
| 1253 |
<div class="navButtons"> |
|---|
| 1254 |
<a href="javascript:show('bwEventTab-Location','bwHelp-Location','bwBottomNav-Location'); hide('bwHelp-Contact','bwEventTab-Contact','bwBottomNav-Contact');"> |
|---|
| 1255 |
<img alt="{$bwStr-FoEl-Previous}" |
|---|
| 1256 |
src="{$resourcesRoot}/resources/arrowLeft.gif" |
|---|
| 1257 |
width="13" |
|---|
| 1258 |
height="13" |
|---|
| 1259 |
border="0"/> |
|---|
| 1260 |
<xsl:text> </xsl:text> |
|---|
| 1261 |
<xsl:copy-of select="$bwStr-FoEl-Previous"/> |
|---|
| 1262 |
</a> | |
|---|
| 1263 |
<a href="javascript:show('bwEventTab-Categories','bwHelp-Categories','bwBottomNav-Categories'); hide('bwHelp-Contact','bwEventTab-Contact','bwBottomNav-Contact');" |
|---|
| 1264 |
onclick="return validateStep3();"> |
|---|
| 1265 |
<xsl:copy-of select="$bwStr-FoEl-Next"/> |
|---|
| 1266 |
<xsl:text> </xsl:text> |
|---|
| 1267 |
<img alt="{$bwStr-FoEl-Next}" |
|---|
| 1268 |
src="{$resourcesRoot}/resources/arrowRight.gif" |
|---|
| 1269 |
width="13" |
|---|
| 1270 |
height="13" |
|---|
| 1271 |
border="0"/> |
|---|
| 1272 |
</a> |
|---|
| 1273 |
</div> |
|---|
| 1274 |
</div> |
|---|
| 1275 |
<div id="bwBottomNav-Categories" class="invisible"> |
|---|
| 1276 |
<div class="navButtons"> |
|---|
| 1277 |
<a href="javascript:show('bwEventTab-Contact','bwHelp-Contact','bwBottomNav-Contact'); hide('bwHelp-Categories','bwEventTab-Categories','bwBottomNav-Categories');"> |
|---|
| 1278 |
<img alt="{$bwStr-FoEl-Previous}" |
|---|
| 1279 |
src="{$resourcesRoot}/resources/arrowLeft.gif" |
|---|
| 1280 |
width="13" |
|---|
| 1281 |
height="13" |
|---|
| 1282 |
border="0"/> |
|---|
| 1283 |
<xsl:text> </xsl:text> |
|---|
| 1284 |
<xsl:copy-of select="$bwStr-FoEl-Previous"/> |
|---|
| 1285 |
</a> | |
|---|
| 1286 |
<a href="javascript:show('bwHelp-Review','bwEventTab-Review','bwBottomNav-Review'); hide('bwHelp-Categories','bwEventTab-Categories','bwBottomNav-Categories');"> |
|---|
| 1287 |
<!-- displayReview('standardForm','bwEventSubmitReview',1) --> |
|---|
| 1288 |
<xsl:copy-of select="$bwStr-FoEl-Next"/> |
|---|
| 1289 |
<xsl:text> </xsl:text> |
|---|
| 1290 |
<img alt="{$bwStr-FoEl-Next}" |
|---|
| 1291 |
src="{$resourcesRoot}/resources/arrowRight.gif" |
|---|
| 1292 |
width="13" |
|---|
| 1293 |
height="13" |
|---|
| 1294 |
border="0"/> |
|---|
| 1295 |
</a> |
|---|
| 1296 |
</div> |
|---|
| 1297 |
</div> |
|---|
| 1298 |
<div id="bwBottomNav-Review" class="invisible"> |
|---|
| 1299 |
<div class="navButtons"> |
|---|
| 1300 |
<a href="javascript:show('bwHelp-Categories','bwEventTab-Categories','bwBottomNav-Categories'); hide('bwHelp-Review','bwEventTab-Review','bwBottomNav-Review'); "> |
|---|
| 1301 |
<img alt="{$bwStr-FoEl-Previous}" |
|---|
| 1302 |
src="{$resourcesRoot}/resources/arrowLeft.gif" |
|---|
| 1303 |
width="13" |
|---|
| 1304 |
height="13" |
|---|
| 1305 |
border="0"/> |
|---|
| 1306 |
<xsl:text> </xsl:text> |
|---|
| 1307 |
<xsl:copy-of select="$bwStr-FoEl-Previous"/> |
|---|
| 1308 |
</a> |
|---|
| 1309 |
<span class="hidden"> |
|---|
| 1310 |
<xsl:text> </xsl:text>|<xsl:text> </xsl:text> |
|---|
| 1311 |
<xsl:copy-of select="$bwStr-FoEl-Next"/> |
|---|
| 1312 |
<xsl:text> </xsl:text> |
|---|
| 1313 |
<img alt="{$bwStr-FoEl-Next}" |
|---|
| 1314 |
src="{$resourcesRoot}/resources/arrowRight.gif" |
|---|
| 1315 |
width="13" |
|---|
| 1316 |
height="13" |
|---|
| 1317 |
border="0"/> |
|---|
| 1318 |
</span> |
|---|
| 1319 |
</div> |
|---|
| 1320 |
</div> |
|---|
| 1321 |
</div> |
|---|
| 1322 |
</xsl:template> |
|---|
| 1323 |
|
|---|
| 1324 |
<xsl:template match="calendar" mode="showEventFormAliases"> |
|---|
| 1325 |
<xsl:param name="root">false</xsl:param> |
|---|
| 1326 |
<li> |
|---|
| 1327 |
<xsl:if test="$root != 'true'"> |
|---|
| 1328 |
<!-- hide the root calendar. --> |
|---|
| 1329 |
<xsl:choose> |
|---|
| 1330 |
<xsl:when test="calType = '7' or calType = '8'"> |
|---|
| 1331 |
<!-- we've hit an unresolvable alias; stop descending --> |
|---|
| 1332 |
<input type="checkbox" name="forDiplayOnly" disabled="disabled"/> |
|---|
| 1333 |
<em><xsl:value-of select="summary"/>?</em> |
|---|
| 1334 |
</xsl:when> |
|---|
| 1335 |
<xsl:when test="calType = '0'"> |
|---|
| 1336 |
<!-- no direct selecting of folders or folder aliases: we only want users to select the |
|---|
| 1337 |
underlying calendar aliases --> |
|---|
| 1338 |
<img src="{$resourcesRoot}/resources/catIcon.gif" width="13" height="13" alt="folder" class="folderForAliasTree" border="0"/> |
|---|
| 1339 |
<xsl:value-of select="summary"/> |
|---|
| 1340 |
</xsl:when> |
|---|
| 1341 |
<xsl:otherwise> |
|---|
| 1342 |
<xsl:variable name="virtualPath"><xsl:for-each select="ancestor-or-self::calendar/name">/<xsl:value-of select="."/></xsl:for-each></xsl:variable> |
|---|
| 1343 |
<xsl:variable name="displayName" select="summary"/> |
|---|
| 1344 |
<input type="checkbox" name="alias" id="{generate-id(path)}" onclick="toggleBedeworkXProperty('X-BEDEWORK-SUBMIT-ALIAS','{$displayName}','{$virtualPath}',this.checked)"> |
|---|
| 1345 |
<xsl:attribute name="value"><xsl:value-of select="$virtualPath"/></xsl:attribute> |
|---|
| 1346 |
<xsl:if test="$virtualPath = /bedework/formElements/form/xproperties//X-BEDEWORK-SUBMIT-ALIAS/values/text"><xsl:attribute name="checked"><xsl:value-of select="checked"/></xsl:attribute></xsl:if> |
|---|
| 1347 |
</input> |
|---|
| 1348 |
<label for="{generate-id(path)}"> |
|---|
| 1349 |
<xsl:choose> |
|---|
| 1350 |
<xsl:when test="$virtualPath = /bedework/formElements/form/xproperties//X-BEDEWORK-SUBMIT-ALIAS/values/text"> |
|---|
| 1351 |
<strong><xsl:value-of select="summary"/></strong> |
|---|
| 1352 |
</xsl:when> |
|---|
| 1353 |
<xsl:otherwise> |
|---|
| 1354 |
<xsl:value-of select="summary"/> |
|---|
| 1355 |
</xsl:otherwise> |
|---|
| 1356 |
</xsl:choose> |
|---|
| 1357 |
</label> |
|---|
| 1358 |
</xsl:otherwise> |
|---|
| 1359 |
</xsl:choose> |
|---|
| 1360 |
</xsl:if> |
|---|
| 1361 |
|
|---|
| 1362 |
<xsl:if test="calendar"> |
|---|
| 1363 |
<ul> |
|---|
| 1364 |
<xsl:apply-templates select="calendar" mode="showEventFormAliases"/> |
|---|
| 1365 |
</ul> |
|---|
| 1366 |
</xsl:if> |
|---|
| 1367 |
</li> |
|---|
| 1368 |
</xsl:template> |
|---|
| 1369 |
|
|---|
| 1370 |
<xsl:template match="val" mode="weekMonthYearNumbers"> |
|---|
| 1371 |
<xsl:if test="position() != 1 and position() = last()"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-WMYN-Next"/><xsl:text> </xsl:text></xsl:if> |
|---|
| 1372 |
<xsl:value-of select="."/><xsl:choose> |
|---|
| 1373 |
<xsl:when test="substring(., string-length(.)-1, 2) = '11' or |
|---|
| 1374 |
substring(., string-length(.)-1, 2) = '12' or |
|---|
| 1375 |
substring(., string-length(.)-1, 2) = '13'">th</xsl:when> |
|---|
| 1376 |
<xsl:when test="substring(., string-length(.), 1) = '1'">st</xsl:when> |
|---|
| 1377 |
<xsl:when test="substring(., string-length(.), 1) = '2'">nd</xsl:when> |
|---|
| 1378 |
<xsl:when test="substring(., string-length(.), 1) = '3'">rd</xsl:when> |
|---|
| 1379 |
<xsl:otherwise>th</xsl:otherwise> |
|---|
| 1380 |
</xsl:choose> |
|---|
| 1381 |
<xsl:if test="position() != last()">, </xsl:if> |
|---|
| 1382 |
</xsl:template> |
|---|
| 1383 |
|
|---|
| 1384 |
<xsl:template name="byDayChkBoxList"> |
|---|
| 1385 |
<xsl:param name="name"/> |
|---|
| 1386 |
<xsl:for-each select="/bedework/shortdaynames/val"> |
|---|
| 1387 |
<xsl:variable name="pos" select="position()"/> |
|---|
| 1388 |
<input type="checkbox"> |
|---|
| 1389 |
<xsl:attribute name="value"><xsl:value-of select="/bedework/recurdayvals/val[position() = $pos]"/></xsl:attribute> |
|---|
| 1390 |
<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute> |
|---|
| 1391 |
</input> |
|---|
| 1392 |
<xsl:value-of select="."/> |
|---|
| 1393 |
</xsl:for-each> |
|---|
| 1394 |
</xsl:template> |
|---|
| 1395 |
|
|---|
| 1396 |
<xsl:template name="buildCheckboxList"> |
|---|
| 1397 |
<xsl:param name="current"/> |
|---|
| 1398 |
<xsl:param name="end"/> |
|---|
| 1399 |
<xsl:param name="name"/> |
|---|
| 1400 |
<xsl:param name="splitter">10</xsl:param> |
|---|
| 1401 |
<span class="chkBoxListItem"> |
|---|
| 1402 |
<input type="checkbox"> |
|---|
| 1403 |
<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute> |
|---|
| 1404 |
<xsl:attribute name="value"><xsl:value-of select="$current"/></xsl:attribute> |
|---|
| 1405 |
</input> |
|---|
| 1406 |
<xsl:value-of select="$current"/> |
|---|
| 1407 |
</span> |
|---|
| 1408 |
<xsl:if test="$current mod $splitter = 0"><br/></xsl:if> |
|---|
| 1409 |
<xsl:if test="$current = $end"><br/></xsl:if> |
|---|
| 1410 |
<xsl:if test="$current < $end"> |
|---|
| 1411 |
<xsl:call-template name="buildCheckboxList"> |
|---|
| 1412 |
<xsl:with-param name="current"><xsl:value-of select="$current + 1"/></xsl:with-param> |
|---|
| 1413 |
<xsl:with-param name="end"><xsl:value-of select="$end"/></xsl:with-param> |
|---|
| 1414 |
<xsl:with-param name="name"><xsl:value-of select="$name"/></xsl:with-param> |
|---|
| 1415 |
</xsl:call-template> |
|---|
| 1416 |
</xsl:if> |
|---|
| 1417 |
</xsl:template> |
|---|
| 1418 |
|
|---|
| 1419 |
<xsl:template name="recurrenceDayPosOptions"> |
|---|
| 1420 |
<option value="0"><xsl:copy-of select="$bwStr-RDPO-None"/></option> |
|---|
| 1421 |
<option value="1"><xsl:copy-of select="$bwStr-RDPO-TheFirst"/></option> |
|---|
| 1422 |
<option value="2"><xsl:copy-of select="$bwStr-RDPO-TheSecond"/></option> |
|---|
| 1423 |
<option value="3"><xsl:copy-of select="$bwStr-RDPO-TheThird"/></option> |
|---|
| 1424 |
<option value="4"><xsl:copy-of select="$bwStr-RDPO-TheFourth"/></option> |
|---|
| 1425 |
<option value="5"><xsl:copy-of select="$bwStr-RDPO-TheFifth"/></option> |
|---|
| 1426 |
<option value="-1"><xsl:copy-of select="$bwStr-RDPO-TheLast"/></option> |
|---|
| 1427 |
<option value=""><xsl:copy-of select="$bwStr-RDPO-Every"/></option> |
|---|
| 1428 |
</xsl:template> |
|---|
| 1429 |
|
|---|
| 1430 |
<xsl:template name="buildRecurFields"> |
|---|
| 1431 |
<xsl:param name="current"/> |
|---|
| 1432 |
<xsl:param name="total"/> |
|---|
| 1433 |
<xsl:param name="name"/> |
|---|
| 1434 |
<div class="invisible"> |
|---|
| 1435 |
<xsl:attribute name="id"><xsl:value-of select="$name"/>RecurFields<xsl:value-of select="$current"/></xsl:attribute> |
|---|
| 1436 |
<xsl:copy-of select="$bwStr-BReF-And"/> |
|---|
| 1437 |
<select width="12em"> |
|---|
| 1438 |
<xsl:attribute name="name">by<xsl:value-of select="$name"/>posPos<xsl:value-of select="$current"/></xsl:attribute> |
|---|
| 1439 |
<xsl:if test="$current != $total"> |
|---|
| 1440 |
<xsl:attribute name="onchange">changeClass('<xsl:value-of select="$name"/>RecurFields<xsl:value-of select="$current+1"/>','shown')</xsl:attribute> |
|---|
| 1441 |
</xsl:if> |
|---|
| 1442 |
<xsl:call-template name="recurrenceDayPosOptions"/> |
|---|
| 1443 |
</select> |
|---|
| 1444 |
<xsl:call-template name="byDayChkBoxList"/> |
|---|
| 1445 |
</div> |
|---|
| 1446 |
<xsl:if test="$current < $total"> |
|---|
| 1447 |
<xsl:call-template name="buildRecurFields"> |
|---|
| 1448 |
<xsl:with-param name="current"><xsl:value-of select="$current+1"/></xsl:with-param> |
|---|
| 1449 |
<xsl:with-param name="total"><xsl:value-of select="$total"/></xsl:with-param> |
|---|
| 1450 |
<xsl:with-param name="name"><xsl:value-of select="$name"/></xsl:with-param> |
|---|
| 1451 |
</xsl:call-template> |
|---|
| 1452 |
</xsl:if> |
|---|
| 1453 |
</xsl:template> |
|---|
| 1454 |
|
|---|
| 1455 |
<xsl:template name="buildNumberOptions"> |
|---|
| 1456 |
<xsl:param name="current"/> |
|---|
| 1457 |
<xsl:param name="total"/> |
|---|
| 1458 |
<option value="{$current}"><xsl:value-of select="$current"/></option> |
|---|
| 1459 |
<xsl:if test="$current < $total"> |
|---|
| 1460 |
<xsl:call-template name="buildNumberOptions"> |
|---|
| 1461 |
<xsl:with-param name="current"><xsl:value-of select="$current+1"/></xsl:with-param> |
|---|
| 1462 |
<xsl:with-param name="total"><xsl:value-of select="$total"/></xsl:with-param> |
|---|
| 1463 |
</xsl:call-template> |
|---|
| 1464 |
</xsl:if> |
|---|
| 1465 |
</xsl:template> |
|---|
| 1466 |
|
|---|
| 1467 |
<xsl:template name="clock"> |
|---|
| 1468 |
<div id="bwClock"> |
|---|
| 1469 |
<!-- Bedework 24-Hour Clock time selection widget |
|---|
| 1470 |
used with resources/bwClock.js and resources/bwClock.css --> |
|---|
| 1471 |
<xsl:variable name="hour24" select="/bedework/hour24"/><!-- true or false --> |
|---|
| 1472 |
<div id="bwClockClock"> |
|---|
| 1473 |
<img id="clockMap" src="{$resourcesRoot}/resources/clockMap.gif" width="368" height="368" border="0" alt="bwClock" usemap="#bwClockMap" /> |
|---|
| 1474 |
</div> |
|---|
| 1475 |
<div id="bwClockCover"> |
|---|
| 1476 |
  |
|---|
| 1477 |
<!-- this is a special effect div used simply to cover the pixelated edge |
|---|
| 1478 |
where the clock meets the clock box title --> |
|---|
| 1479 |
</div> |
|---|
| 1480 |
<div id="bwClockBox"> |
|---|
| 1481 |
<h2> |
|---|
| 1482 |
<xsl:copy-of select="$bwStr-Cloc-Bedework24HourClock"/> |
|---|
| 1483 |
</h2> |
|---|
| 1484 |
<div id="bwClockDateTypeIndicator"> |
|---|
| 1485 |
<xsl:copy-of select="$bwStr-Cloc-Type"/> |
|---|
| 1486 |
</div> |
|---|
| 1487 |
<div id="bwClockTime"> |
|---|
| 1488 |
<xsl:copy-of select="$bwStr-Cloc-SelectTime"/> |
|---|
| 1489 |
</div> |
|---|
| 1490 |
<div id="bwClockSwitch"> |
|---|
| 1491 |
<xsl:copy-of select="$bwStr-Cloc-Switch"/> |
|---|
| 1492 |
</div> |
|---|
| 1493 |
<div id="bwClockCloseText"> |
|---|
| 1494 |
<xsl:copy-of select="$bwStr-Cloc-Close"/> |
|---|
| 1495 |
</div> |
|---|
| 1496 |
<div id="bwClockCloseButton"> |
|---|
| 1497 |
<a href="javascript:bwClockClose();">X</a> |
|---|
| 1498 |
</div> |
|---|
| 1499 |
</div> |
|---|
| 1500 |
<map name="bwClockMap" id="bwClockMap"> |
|---|
| 1501 |
<area shape="rect" alt="close clock" title="close clock" coords="160,167, 200,200" href="javascript:bwClockClose()"/> |
|---|
| 1502 |
<area shape="poly" alt="minute 00:55" title="minute 00:55" coords="156,164, 169,155, 156,107, 123,128" href="javascript:bwClockUpdateDateTimeForm('minute','55')" /> |
|---|
| 1503 |
<area shape="poly" alt="minute 00:50" title="minute 00:50" coords="150,175, 156,164, 123,128, 103,161" href="javascript:bwClockUpdateDateTimeForm('minute','50')" /> |
|---|
| 1504 |
<area shape="poly" alt="minute 00:45" title="minute 00:45" coords="150,191, 150,175, 103,161, 103,206" href="javascript:bwClockUpdateDateTimeForm('minute','45')" /> |
|---|
| 1505 |
<area shape="poly" alt="minute 00:40" title="minute 00:40" coords="158,208, 150,191, 105,206, 123,237" href="javascript:bwClockUpdateDateTimeForm('minute','40')" /> |
|---|
| 1506 |
<area shape="poly" alt="minute 00:35" title="minute 00:35" coords="171,218, 158,208, 123,238, 158,261" href="javascript:bwClockUpdateDateTimeForm('minute','35')" /> |
|---|
| 1507 |
<area shape="poly" alt="minute 00:30" title="minute 00:30" coords="193,218, 172,218, 158,263, 209,263" href="javascript:bwClockUpdateDateTimeForm('minute','30')" /> |
|---|
| 1508 |
<area shape="poly" alt="minute 00:25" title="minute 00:25" coords="209,210, 193,218, 209,261, 241,240" href="javascript:bwClockUpdateDateTimeForm('minute','25')" /> |
|---|
| 1509 |
<area shape="poly" alt="minute 00:20" title="minute 00:20" coords="216,196, 209,210, 241,240, 261,206" href="javascript:bwClockUpdateDateTimeForm('minute','20')" /> |
|---|
| 1510 |
<area shape="poly" alt="minute 00:15" title="minute 00:15" coords="216,178, 216,196, 261,206, 261,159" href="javascript:bwClockUpdateDateTimeForm('minute','15')" /> |
|---|
| 1511 |
<area shape="poly" alt="minute 00:10" title="minute 00:10" coords="209,164, 216,178, 261,159, 240,126" href="javascript:bwClockUpdateDateTimeForm('minute','10')" /> |
|---|
| 1512 |
<area shape="poly" alt="minute 00:05" title="minute 00:05" coords="196,155, 209,164, 238,126, 206,107" href="javascript:bwClockUpdateDateTimeForm('minute','5')" /> |
|---|
| 1513 |
<area shape="poly" alt="minute 00:00" title="minute 00:00" coords="169,155, 196,155, 206,105, 156,105" href="javascript:bwClockUpdateDateTimeForm('minute','0')" /> |
|---|
| 1514 |
<area shape="poly" alt="11 PM, 2300 hour" title="11 PM, 2300 hour" coords="150,102, 172,96, 158,1, 114,14" href="javascript:bwClockUpdateDateTimeForm('hour','23',{$hour24})" /> |
|---|
| 1515 |
<area shape="poly" alt="10 PM, 2200 hour" title="10 PM, 2200 hour" coords="131,114, 150,102, 114,14, 74,36" href="javascript:bwClockUpdateDateTimeForm('hour','22',{$hour24})" /> |
|---|
| 1516 |
<area shape="poly" alt="9 PM, 2100 hour" title="9 PM, 2100 hour" coords="111,132, 131,114, 74,36, 40,69" href="javascript:bwClockUpdateDateTimeForm('hour','21',{$hour24})" /> |
|---|
| 1517 |
<area shape="poly" alt="8 PM, 2000 hour" title="8 PM, 2000 hour" coords="101,149, 111,132, 40,69, 15,113" href="javascript:bwClockUpdateDateTimeForm('hour','20',{$hour24})" /> |
|---|
| 1518 |
<area shape="poly" alt="7 PM, 1900 hour" title="7 PM, 1900 hour" coords="95,170, 101,149, 15,113, 1,159" href="javascript:bwClockUpdateDateTimeForm('hour','19',{$hour24})" /> |
|---|
| 1519 |
<area shape="poly" alt="6 PM, 1800 hour" title="6 PM, 1800 hour" coords="95,196, 95,170, 0,159, 0,204" href="javascript:bwClockUpdateDateTimeForm('hour','18',{$hour24})" /> |
|---|
| 1520 |
<area shape="poly" alt="5 PM, 1700 hour" title="5 PM, 1700 hour" coords="103,225, 95,196, 1,205, 16,256" href="javascript:bwClockUpdateDateTimeForm('hour','17',{$hour24})" /> |
|---|
| 1521 |
<area shape="poly" alt="4 PM, 1600 hour" title="4 PM, 1600 hour" coords="116,245, 103,225, 16,256, 41,298" href="javascript:bwClockUpdateDateTimeForm('hour','16',{$hour24})" /> |
|---|
| 1522 |
<area shape="poly" alt="3 PM, 1500 hour" title="3 PM, 1500 hour" coords="134,259, 117,245, 41,298, 76,332" href="javascript:bwClockUpdateDateTimeForm('hour','15',{$hour24})" /> |
|---|
| 1523 |
<area shape="poly" alt="2 PM, 1400 hour" title="2 PM, 1400 hour" coords="150,268, 134,259, 76,333, 121,355" href="javascript:bwClockUpdateDateTimeForm('hour','14',{$hour24})" /> |
|---|
| 1524 |
<area shape="poly" alt="1 PM, 1300 hour" title="1 PM, 1300 hour" coords="169,273, 150,268, 120,356, 165,365" href="javascript:bwClockUpdateDateTimeForm('hour','13',{$hour24})" /> |
|---|
| 1525 |
<area shape="poly" alt="Noon, 1200 hour" title="Noon, 1200 hour" coords="193,273, 169,273, 165,365, 210,364" href="javascript:bwClockUpdateDateTimeForm('hour','12',{$hour24})" /> |
|---|
| 1526 |
<area shape="poly" alt="11 AM, 1100 hour" title="11 AM, 1100 hour" coords="214,270, 193,273, 210,363, 252,352" href="javascript:bwClockUpdateDateTimeForm('hour','11',{$hour24})" /> |
|---|
| 1527 |
<area shape="poly" alt="10 AM, 1000 hour" title="10 AM, 1000 hour" coords="232,259, 214,270, 252,352, 291,330" href="javascript:bwClockUpdateDateTimeForm('hour','10',{$hour24})" /> |
|---|
| 1528 |
<area shape="poly" alt="9 AM, 0900 hour" title="9 AM, 0900 hour" coords="251,240, 232,258, 291,330, 323,301" href="javascript:bwClockUpdateDateTimeForm('hour','9',{$hour24})" /> |
|---|
| 1529 |
<area shape="poly" alt="8 AM, 0800 hour" title="8 AM, 0800 hour" coords="263,219, 251,239, 323,301, 349,261" href="javascript:bwClockUpdateDateTimeForm('hour','8',{$hour24})" /> |
|---|
| 1530 |
<area shape="poly" alt="7 AM, 0700 hour" title="7 AM, 0700 hour" coords="269,194, 263,219, 349,261, 363,212" href="javascript:bwClockUpdateDateTimeForm('hour','7',{$hour24})" /> |
|---|
| 1531 |
<area shape="poly" alt="6 AM, 0600 hour" title="6 AM, 0600 hour" coords="269,172, 269,193, 363,212, 363,155" href="javascript:bwClockUpdateDateTimeForm('hour','6',{$hour24})" /> |
|---|
| 1532 |
<area shape="poly" alt="5 AM, 0500 hour" title="5 AM, 0500 hour" coords="263,150, 269,172, 363,155, 351,109" href="javascript:bwClockUpdateDateTimeForm('hour','5',{$hour24})" /> |
|---|
| 1533 |
<area shape="poly" alt="4 AM, 0400 hour" title="4 AM, 0400 hour" coords="251,130, 263,150, 351,109, 325,68" href="javascript:bwClockUpdateDateTimeForm('hour','4',{$hour24})" /> |
|---|
| 1534 |
<area shape="poly" alt="3 AM, 0300 hour" title="3 AM, 0300 hour" coords="234,112, 251,130, 325,67, 295,37" href="javascript:bwClockUpdateDateTimeForm('hour','3',{$hour24})" /> |
|---|
| 1535 |
<area shape="poly" alt="2 AM, 0200 hour" title="2 AM, 0200 hour" coords="221,102, 234,112, 295,37, 247,11" href="javascript:bwClockUpdateDateTimeForm('hour','2',{$hour24})" /> |
|---|
| 1536 |
<area shape="poly" alt="1 AM, 0100 hour" title="1 AM, 0100 hour" coords="196,96, 221,102, 247,10, 209,-1, 201,61, 206,64, 205,74, 199,75" href="javascript:bwClockUpdateDateTimeForm('hour','1',{$hour24})" /> |
|---|
| 1537 |
<area shape="poly" alt="Midnight, 0000 hour" title="Midnight, 0000 hour" coords="172,96, 169,74, 161,73, 161,65, 168,63, 158,-1, 209,-1, 201,61, 200,62, 206,64, 205,74, 198,75, 196,96, 183,95" href="javascript:bwClockUpdateDateTimeForm('hour','0',{$hour24})" /> |
|---|
| 1538 |
</map> |
|---|
| 1539 |
</div> |
|---|
| 1540 |
</xsl:template> |
|---|
| 1541 |
|
|---|
| 1542 |
<!--++++++++++++++++++ Events ++++++++++++++++++++--> |
|---|
| 1543 |
<xsl:template name="eventList"> |
|---|
| 1544 |
<h1><xsl:copy-of select="$bwStr-EvLs-PendingEvents"/></h1> |
|---|
| 1545 |
<p> |
|---|
| 1546 |
<xsl:copy-of select="$bwStr-EvLs-EventsBelowWaiting"/> |
|---|
| 1547 |
</p> |
|---|
| 1548 |
<xsl:call-template name="eventListCommon"/> |
|---|
| 1549 |
</xsl:template> |
|---|
| 1550 |
|
|---|
| 1551 |
<xsl:template name="eventListCommon"> |
|---|
| 1552 |
<table id="commonListTable"> |
|---|
| 1553 |
<tr> |
|---|
| 1554 |
<th><xsl:copy-of select="$bwStr-EvLC-Title"/></th> |
|---|
| 1555 |
<th><xsl:copy-of select="$bwStr-EvLC-ClaimedBy"/></th> |
|---|
| 1556 |
<th><xsl:copy-of select="$bwStr-EvLC-Start"/></th> |
|---|
| 1557 |
<th><xsl:copy-of select="$bwStr-EvLC-End"/></th> |
|---|
| 1558 |
<th><xsl:copy-of select="$bwStr-EvLC-TopicalAreas"/></th> |
|---|
| 1559 |
<th><xsl:copy-of select="$bwStr-EvLC-Description"/></th> |
|---|
| 1560 |
</tr> |
|---|
| 1561 |
|
|---|
| 1562 |
<xsl:for-each select="/bedework/events/event"> |
|---|
| 1563 |
<xsl:variable name="calPath" select="calendar/encodedPath"/> |
|---|
| 1564 |
<xsl:variable name="guid" select="guid"/> |
|---|
| 1565 |
<xsl:variable name="recurrenceId" select="recurrenceId"/> |
|---|
| 1566 |
<tr> |
|---|
| 1567 |
<td> |
|---|
| 1568 |
<a href="{$editEvent}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> |
|---|
| 1569 |
<xsl:choose> |
|---|
| 1570 |
<xsl:when test="summary != ''"> |
|---|
| 1571 |
<xsl:value-of select="summary"/> |
|---|
| 1572 |
</xsl:when> |
|---|
| 1573 |
<xsl:otherwise> |
|---|
| 1574 |
<em><xsl:copy-of select="$bwStr-EvLC-NoTitle"/></em> |
|---|
| 1575 |
</xsl:otherwise> |
|---|
| 1576 |
</xsl:choose> |
|---|
| 1577 |
</a> |
|---|
| 1578 |
</td> |
|---|
| 1579 |
<xsl:choose> |
|---|
| 1580 |
<xsl:when test="xproperties/X-BEDEWORK-SUBMISSION-CLAIMANT"> |
|---|
| 1581 |
<td> |
|---|
| 1582 |
<xsl:value-of select="xproperties/X-BEDEWORK-SUBMISSION-CLAIMANT/values/text"/> |
|---|
| 1583 |
<xsl:text> </xsl:text> |
|---|
| 1584 |
(<xsl:value-of select="xproperties/X-BEDEWORK-SUBMISSION-CLAIMANT/parameters/X-BEDEWORK-SUBMISSION-CLAIMANT-USER"/>) |
|---|
| 1585 |
</td> |
|---|
| 1586 |
</xsl:when> |
|---|
| 1587 |
<xsl:otherwise> |
|---|
| 1588 |
<td class="unclaimed"><xsl:copy-of select="$bwStr-EvLC-Unclaimed"/></td> |
|---|
| 1589 |
</xsl:otherwise> |
|---|
| 1590 |
</xsl:choose> |
|---|
| 1591 |
<td class="date"> |
|---|
| 1592 |
<xsl:value-of select="start/shortdate"/> |
|---|
| 1593 |
<xsl:text> </xsl:text> |
|---|
| 1594 |
<xsl:value-of select="start/time"/> |
|---|
| 1595 |
</td> |
|---|
| 1596 |
<td class="date"> |
|---|
| 1597 |
<xsl:value-of select="end/shortdate"/> |
|---|
| 1598 |
<xsl:text> </xsl:text> |
|---|
| 1599 |
<xsl:value-of select="end/time"/> |
|---|
| 1600 |
</td> |
|---|
| 1601 |
<td> |
|---|
| 1602 |
<xsl:for-each select="xproperties/X-BEDEWORK-SUBMIT-ALIAS"> |
|---|
| 1603 |
<xsl:value-of select="parameters/X-BEDEWORK-PARAM-DISPLAYNAME"/><br/> |
|---|
| 1604 |
</xsl:for-each> |
|---|
| 1605 |
</td> |
|---|
| 1606 |
<td> |
|---|
| 1607 |
<xsl:value-of select="description"/> |
|---|
| 1608 |
<xsl:if test="recurring = 'true' or recurrenceId != ''"> |
|---|
| 1609 |
<div class="recurrenceEditLinks"> |
|---|
| 1610 |
<xsl:copy-of select="$bwStr-EvLC-RecurringEvent"/> |
|---|
| 1611 |
<xsl:copy-of select="$bwStr-EvLC-Edit"/> |
|---|
| 1612 |
<a href="{$editEvent}&calPath={$calPath}&guid={$guid}"> |
|---|
| 1613 |
<xsl:copy-of select="$bwStr-EvLC-Master"/> |
|---|
| 1614 |
</a> | |
|---|
| 1615 |
<a href="{$editEvent}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> |
|---|
| 1616 |
<xsl:copy-of select="$bwStr-EvLC-Instance"/> |
|---|
| 1617 |
</a> |
|---|
| 1618 |
</div> |
|---|
| 1619 |
</xsl:if> |
|---|
| 1620 |
</td> |
|---|
| 1621 |
</tr> |
|---|
| 1622 |
</xsl:for-each> |
|---|
| 1623 |
</table> |
|---|
| 1624 |
</xsl:template> |
|---|
| 1625 |
|
|---|
| 1626 |
<!--==== UPLOAD ====--> |
|---|
| 1627 |
<xsl:template name="upload"> |
|---|
| 1628 |
<!-- The name "eventForm" is referenced by several javascript functions. Do not |
|---|
| 1629 |
change it without modifying bedework.js --> |
|---|
| 1630 |
<form name="eventForm" method="post" action="{$upload}" id="standardForm" enctype="multipart/form-data"> |
|---|
| 1631 |
<h2><xsl:copy-of select="$bwStr-Upld-UploadICalFile"/></h2> |
|---|
| 1632 |
<table class="common" cellspacing="0"> |
|---|
| 1633 |
<tr> |
|---|
| 1634 |
<td class="fieldname"> |
|---|
| 1635 |
<xsl:copy-of select="$bwStr-Upld-Filename"/> |
|---|
| 1636 |
</td> |
|---|
| 1637 |
<td align="left"> |
|---|
| 1638 |
<input type="file" name="uploadFile" size="60" /> |
|---|
| 1639 |
</td> |
|---|
| 1640 |
</tr> |
|---|
| 1641 |
<tr> |
|---|
| 1642 |
<td class="fieldname padMeTop"> |
|---|
| 1643 |
<xsl:copy-of select="$bwStr-Upld-IntoCalendar"/> |
|---|
| 1644 |
</td> |
|---|
| 1645 |
<td align="left" class="padMeTop"> |
|---|
| 1646 |
<input type="hidden" name="newCalPath" id="bwNewCalPathField" value=""/> |
|---|
| 1647 |
<span id="bwEventCalDisplay"> |
|---|
| 1648 |
<em><xsl:copy-of select="$bwStr-Upld-DefaultCalendar"/></em> |
|---|
| 1649 |
</span> |
|---|
| 1650 |
</td> |
|---|
| 1651 |
</tr> |
|---|
| 1652 |
<tr> |
|---|
| 1653 |
<td class="fieldname padMeTop"> |
|---|
| 1654 |
<xsl:copy-of select="$bwStr-Upld-AffectsFreeBusy"/> |
|---|
| 1655 |
</td> |
|---|
| 1656 |
<td align="left" class="padMeTop"> |
|---|
| 1657 |
<input type="radio" value="" name="transparency" checked="checked"/><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-Upld-AcceptEventsSettings"/><br/> |
|---|
| 1658 |
<input type="radio" value="OPAQUE" name="transparency"/><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-Upld-Opaque"/><xsl:text> </xsl:text><span class="note"><xsl:copy-of select="$bwStr-Upld-Yes"/></span><br/> |
|---|
| 1659 |
<input type="radio" value="TRANSPARENT" name="transparency"/><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-Upld-No"/><xsl:text> </xsl:text><span class="note"><xsl:copy-of select="$bwStr-Upld-Transparent"/></span><br/> |
|---|
| 1660 |
</td> |
|---|
| 1661 |
</tr> |
|---|
| 1662 |
<tr> |
|---|
| 1663 |
<td class="fieldname padMeTop"> |
|---|
| 1664 |
<xsl:copy-of select="$bwStr-Upld-Status"/> |
|---|
| 1665 |
</td> |
|---|
| 1666 |
<td align="left" class="padMeTop"> |
|---|
| 1667 |
<input type="radio" value="" name="status" checked="checked"/><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-Upld-AcceptEventsStatus"/><br/> |
|---|
| 1668 |
<input type="radio" value="CONFIRMED" name="status"/><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-Upld-Confirmed"/><br/> |
|---|
| 1669 |
<input type="radio" value="TENTATIVE" name="status"/><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-Upld-Tentative"/><br/> |
|---|
| 1670 |
<input type="radio" value="CANCELLED" name="status"/><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-Upld-Canceled"/><br/> |
|---|
| 1671 |
</td> |
|---|
| 1672 |
</tr> |
|---|
| 1673 |
</table> |
|---|
| 1674 |
<table border="0" id="submitTable"> |
|---|
| 1675 |
<tr> |
|---|
| 1676 |
<td> |
|---|
| 1677 |
<input name="submit" type="submit" value="{$bwStr-Upld-Continue}"/> |
|---|
| 1678 |
<input name="cancelled" type="submit" value="{$bwStr-Upld-Cancel}"/> |
|---|
| 1679 |
</td> |
|---|
| 1680 |
</tr> |
|---|
| 1681 |
</table> |
|---|
| 1682 |
</form> |
|---|
| 1683 |
</xsl:template> |
|---|
| 1684 |
|
|---|
| 1685 |
<!--==== UTILITY TEMPLATES ====--> |
|---|
| 1686 |
|
|---|
| 1687 |
<!-- time formatter (should be extended as needed) --> |
|---|
| 1688 |
<xsl:template name="timeFormatter"> |
|---|
| 1689 |
<xsl:param name="timeString"/><!-- required --> |
|---|
| 1690 |
<xsl:param name="showMinutes">yes</xsl:param> |
|---|
| 1691 |
<xsl:param name="showAmPm">yes</xsl:param> |
|---|
| 1692 |
<xsl:param name="hour24">no</xsl:param> |
|---|
| 1693 |
<xsl:variable name="hour" select="number(substring($timeString,1,2))"/> |
|---|
| 1694 |
<xsl:variable name="minutes" select="substring($timeString,3,2)"/> |
|---|
| 1695 |
<xsl:variable name="AmPm"> |
|---|
| 1696 |
<xsl:choose> |
|---|
| 1697 |
<xsl:when test="$hour < 12"><xsl:copy-of select="$bwStr-TiFo-AM"/></xsl:when> |
|---|
| 1698 |
<xsl:otherwise><xsl:copy-of select="$bwStr-TiFo-PM"/></xsl:otherwise> |
|---|
| 1699 |
</xsl:choose> |
|---|
| 1700 |
</xsl:variable> |
|---|
| 1701 |
<xsl:choose> |
|---|
| 1702 |
<xsl:when test="hour24 = 'yes'"> |
|---|
| 1703 |
<xsl:value-of select="$hour"/><!-- |
|---|
| 1704 |
--><xsl:if test="$showMinutes = 'yes'">:<xsl:value-of select="$minutes"/></xsl:if> |
|---|
| 1705 |
</xsl:when> |
|---|
| 1706 |
<xsl:otherwise> |
|---|
| 1707 |
<xsl:choose> |
|---|
| 1708 |
<xsl:when test="$hour = 0">12</xsl:when> |
|---|
| 1709 |
<xsl:when test="$hour < 13"><xsl:value-of select="$hour"/></xsl:when> |
|---|
| 1710 |
<xsl:otherwise><xsl:value-of select="$hour - 12"/></xsl:otherwise> |
|---|
| 1711 |
</xsl:choose><!-- |
|---|
| 1712 |
--><xsl:if test="$showMinutes = 'yes'">:<xsl:value-of select="$minutes"/></xsl:if> |
|---|
| 1713 |
<xsl:if test="$showAmPm = 'yes'"> |
|---|
| 1714 |
<xsl:text> </xsl:text> |
|---|
| 1715 |
<xsl:value-of select="$AmPm"/> |
|---|
| 1716 |
</xsl:if> |
|---|
| 1717 |
</xsl:otherwise> |
|---|
| 1718 |
</xsl:choose> |
|---|
| 1719 |
</xsl:template> |
|---|
| 1720 |
|
|---|
| 1721 |
<!--==== FOOTER ====--> |
|---|
| 1722 |
<xsl:template name="footer"> |
|---|
| 1723 |
<div id="footer"> |
|---|
| 1724 |
<xsl:copy-of select="$bwStr-Foot-BasedOnThe"/><xsl:text> </xsl:text><a href="http://www.jasig.org/bedework"><xsl:copy-of select="$bwStr-Foot-BedeworkCalendarSystem"/></a> |
|---|
| 1725 |
</div> |
|---|
| 1726 |
<div id="subfoot"> |
|---|
| 1727 |
<a href="http://www.jasig.org/bedework"><xsl:copy-of select="$bwStr-Foot-BedeworkWebsite"/></a> | |
|---|
| 1728 |
<a href="?noxslt=yes"><xsl:copy-of select="$bwStr-Foot-ShowXML"/></a> | |
|---|
| 1729 |
<a href="?refreshXslt=yes"><xsl:copy-of select="$bwStr-Foot-RefreshXSLT"/></a> |
|---|
| 1730 |
</div> |
|---|
| 1731 |
</xsl:template> |
|---|
| 1732 |
|
|---|
| 1733 |
</xsl:stylesheet> |
|---|