Changeset 1594

Show
Ignore:
Timestamp:
10/29/07 10:22:24
Author:
johnsa
Message:

websubmit: preparing the stylesheets, building the UI framework

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.css

    r1592 r1594  
    11#bedework { 
    2   /* this is the main wrapper div used to encapsulate all Bedework CSS; we  
    3      will prepend each selector below with this ID - this helps encapsulate  
    4      the css for use in portal environments (though it does imply that only  
     2  /* this is the main wrapper div used to encapsulate all Bedework CSS; we 
     3     will prepend each selector below with this ID - this helps encapsulate 
     4     the css for use in portal environments (though it does imply that only 
    55     one instance should be running on a portal page) */ 
    66  font-family : Arial, Helvetica, sans-serif; 
     
    99  color : black; 
    1010  padding: 0.75em 1em 0em 1em; 
    11   margin: 0;  
     11  margin: 0; 
    1212} 
    1313/* Generic selectors*/ 
     
    1616  padding: 0.2em 0.2em 0.2em 0.5em; 
    1717  font-size: 1.3em; 
    18   border-bottom: 1px solid #ccc; 
    19   /*border-top: 1px solid #ccc;*/ 
    2018} 
    2119#bedework #bodyBlock h2 { 
     
    3129  text-decoration: none; 
    3230} 
    33 #bedework h2.bwStatusConfirmed, 
    34 #bedework h2.common { 
    35   background-color: #eee; 
    36   color: black; 
    37 } 
    38 #bedework h2.bwStatusCancelled { 
    39   background-color: #eee; 
    40   color: black; 
    41 } 
    42 #bedework h2.bwStatusTentative { 
    43   background: #eee url('../../resources/tentativeLines.gif') top !important; 
    44   color: black; 
    45 } 
    4631#bedework .formButtons { 
    4732  float: right; 
     
    7964/* Header IDs and classes */ 
    8065#bedework #headBar { 
     66  position: relative; 
    8167  text-align: right; 
    8268  vertical-align: bottom; 
     
    8773} 
    8874#bedework #logo { 
    89   float: left; 
     75  position: absolute; 
     76  left: 0; 
     77  bottom: 0; 
    9078  padding: 0 0 2px 5px; 
    9179  margin: 0; 
     80} 
     81#bedework #headBar #title { 
     82  position: absolute; 
     83  right: 0; 
     84  bottom: 0; 
    9285} 
    9386#bedework #headBar h2 { 
     
    9992  border: none; 
    10093} 
    101 #bedework #logoTable #schoolLinksCell a:link, 
    102 #bedework #logoTable #schoolLinksCell a:visited, 
    103 #bedework #logoTable #schoolLinksCell a:active { 
    104   background-color: transparent; 
    105   color: #999; 
    106   text-decoration: none; 
    107 
    108 #bedework #logoTable #schoolLinksCell a:hover { 
     94#bedework #headBar .logout { 
     95  padding-left: 0.5em; 
     96  font-size: 0.8em; 
     97
     98#bedework #headBar p { 
     99  margin: 0; 
     100  padding: 0; 
     101
     102#bedework #menuTabs { 
     103  margin: 1em 0 0 0; 
     104  padding: 0; 
     105  border-bottom: 2px solid #999; 
     106
     107#bedework #menuTabs li { 
     108  display: inline; 
     109  list-style: none; 
     110  margin: 0 2px 0 0; 
     111  padding: 0 1em; 
     112  text-align: center; 
     113  border-top: 2px solid #999; 
     114  border-left: 2px solid #999; 
     115  border-right: 2px solid #999; 
     116  color: black; 
    109117  background-color: #eee; 
    110   color: #333; 
    111   text-decoration: none; 
    112 
    113 #bedework #curDateRangeTable { 
    114   width: 100%; 
    115   height: 26px; 
    116   background: #233979 url(../../resources/glassFill-02.gif) repeat-x bottom; 
    117   color : #eee; 
    118   margin: 0em; 
    119   font-weight : bold; 
    120   text-align : center; 
    121   white-space: nowrap; 
    122 
    123 #bedework #curDateRangeTable td { 
    124   padding-top: 5px; 
    125   padding-bottom: 1px; 
    126   padding-left: 0.5em; 
    127   padding-right: 0.5em; 
    128   vertical-align: middle; 
    129 
    130 #bedework #curDateRangeTable td.sideBarOpenCloseIcon { 
    131   background: url(../../resources/glassFill-02-leftBorder.gif) no-repeat top left; 
    132   color: inherit; 
    133   width: 200px; 
    134 
    135 #bedework #curDateRangeTable td.date { 
    136   font-weight : bold; 
    137   text-align : center; 
    138   white-space: nowrap; 
    139 
    140 #bedework #curDateRangeTable td.rssPrint { 
    141   background: url(../../resources/glassFill-02-rightBorder.gif) no-repeat top right; 
    142   color: inherit; 
    143   width: 200px; 
    144   font-weight : bold; 
    145   text-align : right; 
    146   white-space: nowrap; 
    147   vertical-align: middle; 
    148 
    149 #bedework #curDateRangeTable td.rssPrint img { 
    150   position: relative; 
    151   top: 3px; 
    152 
    153 #bedework #curDateRangeTable td.rssPrint a:link, 
    154 #bedework #curDateRangeTable td.rssPrint a:active, 
    155 #bedework #curDateRangeTable td.rssPrint a:visited { 
    156   font-size: 10px; 
    157   color: #eee; 
    158   background-color: transparent; 
    159   font-family: Arial, Helvetica, sans-serif; 
    160   padding: 0; 
    161   text-decoration: none; 
    162   margin-right: 0.5em; 
    163   position: relative; 
    164   top: -3px; 
    165 
    166 #bedework #curDateRangeTable td.rssPrint a:hover { 
    167   color: #663; 
     118  font-size: 0.9em; 
     119
     120#bedework #menuTabs li.selected { 
     121  border-bottom: 2px solid #fff; 
     122  color: black; 
    168123  background-color: #fff; 
    169124} 
    170 #bedework #curDateRangeTable td.rssPrint a.rss:link, 
    171 #bedework #curDateRangeTable td.rssPrint a.rss:active, 
    172 #bedework #curDateRangeTable td.rssPrint a.rss:visited { 
    173   font-size: 10px; 
    174   font-weight: bold; 
    175   color: #444; 
    176   background-color: #ddd; 
    177   font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; 
    178   padding: 0px 1px 0px 1px; 
    179   text-decoration: none; 
    180   margin-right: 0.5em; 
    181   margin-left: 2px; 
    182   position: relative; 
    183   top: -3px; 
    184   border: solid 1px #666; 
    185 
    186 #bedework #curDateRangeTable td.rssPrint a.rss:hover { 
    187   color: #900; 
    188   background-color: #fff; 
    189 
    190 #bedework #bodyBlock { 
    191   width: 100%; 
    192   margin: 0; 
    193   padding: 0; 
    194 
    195 #bedework #bodyBlock td#sideBar { 
    196   width: 200px; 
    197   font-size: 0.8em; 
    198   color: black; 
    199   background: white url(../../resources/sideBarGrayGrad.gif) repeat-y right; 
    200   border-left: 2px solid #333; 
    201   border-right: 1px solid #333; 
    202   border-bottom: 2px solid #aaa; 
    203   border-top: 24px solid #333; 
    204   vertical-align: top; 
    205   white-space: nowrap; 
    206   margin: 0; 
    207   padding: 0; 
    208 
    209 #bedework #bodyBlock td#sideBar h3 { 
    210   color: #eee; 
    211   background: #4164AE url(../../resources/sideBarBlueGrad.gif) repeat-y right; 
    212   font-weight: normal; 
    213   margin: 0; 
    214   padding: 2px 4px; 
    215 
    216 #bedework #bodyBlock td#sideBar h3 a:link, 
    217 #bedework #bodyBlock td#sideBar h3 a:active, 
    218 #bedework #bodyBlock td#sideBar h3 a:visited { 
    219   float: right; 
    220   font-size: 0.8em; 
    221   color: #eee; 
    222   background: transparent; 
    223   text-decoration: none; 
    224 
    225 #bedework #bodyBlock td#sideBar h3 a:hover { 
    226   color: #ff3; 
    227   background: transparent; 
    228   text-decoration: none; 
    229 
    230 #bedework #bodyBlock td#sideBarClosed { 
    231   width: 1px; 
    232   border-left: 1px solid #333; 
    233   border-bottom: 2px solid #aaa; 
    234   padding: 0; 
    235   color: black; 
    236   background-color: #333; 
    237 
    238 #bedework #bodyBlock td#sideBar a:link, 
    239 #bedework #bodyBlock td#sideBar a:active, 
    240 #bedework #bodyBlock td#sideBar a:visited { 
    241   text-decoration: none; 
    242 
    243 #bedework #bodyBlock td#sideBar a:hover { 
    244   color: black; 
    245   background-color: #ff3; 
    246 
    247 #bedework #sideBarOpenCloseIcon { 
    248   float: left; 
    249   margin: 3px 0; 
    250   vertical-align: middle; 
    251 
    252 #bedework #bodyBlock td#sideBar #sideBarMenu li { 
    253   padding-bottom: 0.5em; 
    254 
    255 #bedework #myViews li { 
    256   list-style: none; 
    257 
    258 #bedework #myViews li.selected { 
    259   list-style-image: url(../../resources/glassFill-icon-view.gif); 
    260   font-weight: bold; 
    261 
    262 #bedework #bodyBlock td#bodyContent { 
    263   border-right: 2px solid #333; 
    264   border-bottom: 2px solid #aaa; 
    265   vertical-align: top; 
    266   padding: 0; 
    267   margin: 0; 
    268 
    269 #bedework #utilBarTable { 
    270   margin: 0; 
    271   padding: 0; 
    272   background-color : #eee; 
    273   color: black; 
    274   font-size: 0.9em; 
    275   border-bottom: 1px solid #999; 
    276 
    277 #bedework #utilBarTable .leftCell { 
    278   margin: 0; 
    279   padding: 0; 
    280   padding: 0.2em 0 0.2em 0.2em; 
    281   white-space: nowrap; 
    282 
    283 #bedework #utilBarTable .leftCell img { 
    284   display: inline; 
    285   margin-right: 2px; 
    286   vertical-align: middle; 
    287 
    288 #bedework #utilBarTable .rightCell { 
    289   margin: 0; 
    290   padding: 0.1em 0.2em 0 0; 
    291   text-align: right; 
    292   white-space: nowrap; 
    293 
    294 #bedework #utilBarTable form, 
    295 #bedework #searchPageForm { 
    296   display: inline; 
    297   margin: 0px 0px 1px 0px; 
    298   padding: 0em; 
    299   white-space: nowrap; 
    300 
    301 #bedework #searchPageForm { 
    302   float: right; 
    303 
    304 #bedework #utilBarTable input { 
    305   font-size: 0.7em; 
    306 
    307 #bedework #utilBarTable img { 
    308   vertical-align: middle; 
    309   margin: 0; 
    310   padding: 0; 
     125#bedework #bodyContent { 
     126  margin: 0; 
     127  padding:  2em; 
     128  border-left: 2px solid #999; 
     129  border-right: 2px solid #999; 
    311130} 
    312131#bedework .bwActionIcons { 
    313132  position: absolute; 
    314133  white-space: nowrap; 
    315   border: 1px solid #333
     134  border: 2px solid #999
    316135  background-color: #eee; 
    317136  color: black; 
     
    326145} 
    327146#bedework .bwActionIcons a:link, 
    328 #bedework .bwActionIcons a:active,  
     147#bedework .bwActionIcons a:active, 
    329148#bedework .bwActionIcons a:visited { 
    330149  display: block; 
     
    339158  background-color: transparent; 
    340159} 
    341 #bedework #searchTable { 
    342   width: 100%; 
    343   font-size: 0.9em; 
    344   margin: 0px; 
    345   padding: 0px; 
    346   border-bottom: 2px solid #aaa; 
    347   border-left: 2px solid #aaa; 
    348   border-right: 2px solid #aaa; 
    349 } 
    350 #bedework #searchTable th { 
    351   padding-left: 0.5em; 
    352   padding-right: 0.5em; 
    353   padding-top: 2px; 
    354   padding-bottom: 2px; 
    355   text-align: left; 
    356   background: #e5e5e5; 
    357   color: #000; 
    358   font-weight: normal; 
    359 } 
    360 #bedework #searchTable td { 
    361   vertical-align: top; 
    362   padding: 4px; 
    363 } 
    364 #bedework #searchTable tr.fieldNames td { 
    365   background: #eee; 
    366   border-bottom: 1px solid #ccc; 
    367 } 
    368 #bedework #searchTable td.relevance { 
    369   white-space: nowrap; 
    370 } 
    371 #bedework #searchTable .searchRelevance { 
    372   background-color: #2c5f89; 
    373   color: black; 
    374 } 
    375 #bedework #searchFilter { 
    376   float: right; 
    377   font-size: 10pt; 
    378   font-weight: normal; 
    379   margin-top: 5px; 
    380 } 
    381 #bedework #tabsTable { 
    382   margin: 0; 
    383   padding: 0; 
    384   text-align: center; 
    385   vertical-align: bottom; 
    386   background-color: #333; 
    387   color: #eee; 
    388   font-size: 0.8em; 
    389 } 
    390 #bedework #tabsTable td { 
    391   padding: 4px 0 0 0; 
    392   white-space: nowrap; 
    393 } 
    394 #bedework #tabsTable img { 
    395   display: inline; 
    396 } 
    397 #bedework #tabsTable a { 
    398   background-color: inherit; 
    399   color: #ccc; 
    400 } 
    401 #bedework #tabsTable td.rightCell { 
    402   width: 100%; 
    403   background : url(../../resources/std-tab-space.gif); 
    404   padding-right: 0.5em; 
    405   text-align: right; 
    406 } 
    407 #bedework #tabsTable .logout { 
    408   padding-left: 0.5em; 
    409   font-size: 0.8em; 
    410 } 
    411 #bedework #navigationBarTable { 
    412   font-size: 0.8em; 
    413   margin: 0em; 
    414   padding: 0em; 
    415   vertical-align: top; 
    416   border-bottom: 1px solid Gray; 
    417 } 
    418 #bedework #navigationBarTable a { 
    419   text-decoration: none; 
    420   white-space: nowrap; 
    421 } 
    422 #bedework #navigationBarTable td { 
    423   vertical-align: top; 
    424 } 
    425 #bedework #navigationBarTable form { 
    426   display: inline; 
    427   margin-bottom: 0em; 
    428 } 
    429 #bedework #navigationBarTable table { 
    430   display: inline; 
    431   margin-bottom: 0em; 
    432 } 
    433 #bedework #navigationBarTable td.todayButton { 
    434   padding: 1em 1em 0 1em; 
    435 } 
    436 #bedework #navigationBarTable td.gotoForm { 
    437   padding: 1em 0.5em 0 0; 
    438 } 
    439 #bedework #navigationBarTable td.leftCell { 
    440   text-align: left; 
    441   white-space: nowrap; 
    442   padding-left: 0.5em; 
    443   font-size: 1.3em; 
    444   font-weight: bold; 
    445   padding: 0.75em 0em 0.75em 1em; 
    446   width: 100%; 
    447   vertical-align: middle; 
    448 } 
    449 #bedework #navigationBarTable td.leftCell .prevImg { 
    450   margin: 0; 
    451   padding: 0; 
    452   vertical-align: middle; 
    453 } 
    454 #bedework #navigationBarTable td.leftCell .nextImg { 
    455   margin: 0 0.5em 0 0.2em; 
    456   padding: 0; 
    457   vertical-align: middle; 
    458 } 
    459 #bedework #navigationBarTable td.rightCell { 
    460   text-align: right; 
    461   padding: 1em 0.5em 0em 0em; 
    462 } 
    463 #bedework #navigationBarTable td.rightCell select { 
    464   padding-right: 0em; 
    465   margin: 0em; 
    466   width: 10em; 
    467 } 
    468 #bedework #navigationBarTable .calLinks { 
    469   white-space: nowrap; 
    470 } 
    471160#bedework #messages, 
    472161#bedework #errors { 
     
    474163  margin: 0em; 
    475164  padding: 0.3em 0 0.3em 1em; 
    476   border-left : 2px solid #333
    477   border-right : 2px solid #333
     165  border-left : 2px solid #999
     166  border-right : 2px solid #999
    478167  border-bottom: 1px solid Gray; 
    479168  color: black; 
     
    488177  margin: 0; 
    489178  padding: 2px 0; 
    490 }/* 
    491 make no distinction in this stylesheet - yellow is good for both errors and 
    492 messages. 
    493 #bedework #messages { 
    494   color: black; 
    495   background: #d8e118 url(../../resources/glassFill-message.gif) repeat-x bottom; 
    496 
    497 #bedework #errors { 
    498   color: black; 
    499   background: #FF8B86 url(../../resources/glassFill-error.gif) repeat-x bottom; 
    500 }*/ 
     179
     180#bedework #eventFormTabs { 
     181
    501182#bedework ul.submenu { 
    502   margin: 0 0 1em 0; 
    503   padding: 0; 
    504   font-size: 0.8em; 
    505   color: black; 
    506   background-color: #eee; 
    507   border-bottom: 1px solid #666; 
    508   border-top: 1px solid #999; 
     183  margin: 0; 
     184  padding: 0; 
     185  font-size: 0.8em; 
     186  border-bottom: 1px solid #ccc; 
    509187} 
    510188#bedework ul.submenu li { 
    511189  display: inline; 
    512   margin: 0
     190  margin: 0 2px 0 0
    513191  padding: 0 1em 0 1em; 
    514   border-right: 1px solid #999; 
     192  border-left: 1px solid #ccc; 
     193  border-right: 1px solid #ccc; 
     194  border-top: 1px solid #ccc; 
    515195  color: black; 
    516196  background-color: #ddd; 
     
    586266  margin: 0px; 
    587267  padding: 0px; 
    588 
    589 #bedework table.dottedBorder { 
    590   border: 1px dotted #ccc; 
     268  border-left: 1px solid #ccc; 
     269  border-right: 1px solid #ccc; 
     270  border-bottom: 1px solid #ccc; 
    591271} 
    592272#bedework table.common th { 
     
    659339  vertical-align: top; 
    660340  padding: 0.5em 0.5em 0.2em 0.5em; 
    661   color: black; 
    662   background-color: #eee; 
    663341  white-space: nowrap; 
    664342} 
     
    699377} 
    700378#bedework #refreshEventAction { 
    701   padding-left: 1em;   
     379  padding-left: 1em; 
    702380} 
    703381#bedework table.common td.allField { 
     
    996674#bedework table.widget tr.subHead td { 
    997675  background-color: #eee; 
    998   color: black;   
     676  color: black; 
    999677} 
    1000678#bedework table.widget td { 
     
    1100778  background-color: #2B4795; 
    1101779  color: #eee; 
    1102   border: 1px solid #333
     780  border: 2px solid #999
    1103781} 
    1104782#bedework #monthCalendarTable td { 
     
    1195873  color: black; 
    1196874  padding: 4px; 
    1197   border: 1px solid #333
     875  border: 2px solid #999
    1198876} 
    1199877#bedework #monthCalendarTable a:hover span.eventTipReverse { 
     
    1206884  color: black; 
    1207885  padding: 4px; 
    1208   border: 1px solid #333
     886  border: 2px solid #999
    1209887} 
    1210888#bedework #monthCalendarTable a:hover span.eventTipStatusCancelled { 
     
    14821160  list-style-image: url(../../resources/calIcon-sm.gif); 
    14831161} 
    1484 #bedework  li.trash { 
    1485   list-style-image: url(../../resources/trashIcon.gif); 
    1486 } 
    1487 #bedework  li.inbox { 
    1488   list-style-image: url(../../resources/inboxIcon.gif); 
    1489 } 
    1490 #bedework  li.outbox { 
    1491   list-style-image: url(../../resources/outboxIcon.gif); 
    1492 } 
    1493 #bedework  li.deleted { 
    1494   list-style-image: url(../../resources/calIconDeleted-sm.gif); 
    1495 } 
    1496 #bedework  li.selected { 
    1497   list-style-image: url(../../resources/glassFill-icon-view.gif); 
    1498   font-weight: bold; 
    1499 } 
    15001162#bedework .calendarTree a:link, 
    15011163#bedework .calendarTree a:active, 
     
    15461208  margin: 1em; 
    15471209  padding: 0.5em; 
    1548   border: 1px solid #333
     1210  border: 2px solid #999
    15491211  color: black; 
    15501212  background-color: #fee; 
     
    16321294} 
    16331295#freeBusyPage #freeBusyKey { 
    1634   margin-left: 2em;  
     1296  margin-left: 2em; 
    16351297} 
    16361298#freeBusyKey td { 
     
    16791341  color: black; 
    16801342  padding: 4px; 
    1681   border: 1px solid #333
     1343  border: 2px solid #999
    16821344} 
    16831345#freeBusy #timezonesDropDown { 
     
    16911353#bedework #sharingBox { 
    16921354  margin: 0; 
    1693   border-top: 1px solid #333
     1355  border-top: 2px solid #999
    16941356  padding: 1em 1em 2em 1em; 
    16951357} 
     
    17921454  color: #333; 
    17931455  background-color: #eee; 
    1794   border-bottom: 2px solid #333
    1795   border-left: 2px solid #333
    1796   border-right: 2px solid #333
     1456  border-bottom: 2px solid #999
     1457  border-left: 2px solid #999
     1458  border-right: 2px solid #999
    17971459  white-space: nowrap; 
    17981460} 
     
    18351497} 
    18361498/*   LINKS    */ 
    1837 #bedework a:link,  
     1499#bedework a:link, 
    18381500#bedework a:active { 
    18391501  color: #00a; 
  • trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.xsl

    r1593 r1594  
    103103          <xsl:call-template name="headBar"/> 
    104104          <xsl:call-template name="messagesAndErrors"/> 
    105             <div id="bodyContent"> 
    106               <xsl:choose> 
    107                 <xsl:when test="/bedework/page='editEvent'"> 
    108                   <xsl:apply-templates select="/bedework/formElements" mode="editEvent"/> 
    109                 </xsl:when> 
    110                 <xsl:when test="/bedework/page='upload'"> 
    111                   <xsl:call-template name="upload" /> 
    112                 </xsl:when> 
    113                 <xsl:otherwise> 
    114                   <!-- add event --> 
    115                   <xsl:apply-templates select="/bedework/formElements" mode="addEvent"/> 
    116                 </xsl:otherwise> 
    117               </xsl:choose> 
    118             </div> 
     105          <xsl:call-template name="menuTabs"/> 
     106          <div id="bodyContent"> 
     107            <xsl:choose> 
     108              <xsl:when test="/bedework/page='addEvent'"> 
     109                <xsl:apply-templates select="/bedework/formElements" mode="addEvent"/> 
     110              </xsl:when> 
     111              <xsl:when test="/bedework/page='editEvent'"> 
     112                <xsl:apply-templates select="/bedework/formElements" mode="editEvent"/> 
     113              </xsl:when> 
     114              <xsl:when test="/bedework/page='upload'"> 
     115                <xsl:call-template name="upload" /> 
     116              </xsl:when> 
     117              <xsl:otherwise> 
     118                <!-- home / entrance screen --> 
     119                <xsl:call-template name="home"/> 
     120              </xsl:otherwise> 
     121            </xsl:choose> 
     122          </div> 
    119123          <!-- footer --> 
    120124          <xsl:call-template name="footer"/> 
     
    179183        <img src="{$resourcesRoot}/resources/bedeworkLogo.gif" width="292" height="75" border="0" alt="Bedework"/> 
    180184      </a> 
    181       <h2>Submit an Event</h2> 
     185      <div id="title"> 
     186        <h2>Public Event Submission</h2> 
     187        <p> 
     188          logged in as 
     189          <xsl:text> </xsl:text> 
     190          <strong><xsl:value-of select="/bedework/userid"/></strong> 
     191          <xsl:text> </xsl:text> 
     192          <span class="logout"><a href="{$setup}&amp;logout=true">logout</a></span> 
     193        </p> 
     194      </div> 
    182195    </div> 
     196  </xsl:template> 
     197 
     198  <!--==== MENUTABS ====--> 
     199  <xsl:template name="menuTabs"> 
     200    <ul id="menuTabs"> 
     201      <xsl:choose> 
     202        <xsl:when test="/bedework/page='home'"> 
     203          <li class="selected">Overview</li> 
     204          <li><a href="{$initEvent}">Add Event</a></li> 
     205          <li><a href="">My Pending Events</a></li> 
     206        </xsl:when> 
     207        <xsl:when test="/bedework/page='eventList'"> 
     208          <li><a href="{$setup}">Overview</a></li> 
     209          <li><a href="{$initEvent}">Add Event</a></li> 
     210          <li class="selected">My Pending Events</li> 
     211        </xsl:when> 
     212        <xsl:otherwise> 
     213          <li><a href="{$setup}">Overview</a></li> 
     214          <li class="selected">Add Event</li> 
     215          <li><a href="">My Pending Events</a></li> 
     216        </xsl:otherwise> 
     217      </xsl:choose> 
     218    </ul> 
     219  </xsl:template> 
     220 
     221  <!--==== HOME ====--> 
     222  <xsl:template name="home"> 
     223    Descriptive information here 
    183224  </xsl:template> 
    184225 
    185226  <!--==== ADD EVENT ====--> 
    186227  <xsl:template match="formElements" mode="addEvent"> 
    187   <!-- The name "eventForm" is referenced by several javascript functions. Do not 
    188     change it without modifying bedework.js --> 
    189228    <form name="eventForm" method="post" action="{$addEvent}" id="standardForm" onsubmit="setEventFields(this)"> 
    190229      <h2> 
    191         <span class="formButtons"> 
    192           <input name="submit" type="submit" value="save"/> 
    193           <input name="cancelled" type="submit" value="cancel"/> 
    194         </span> 
    195         <xsl:choose> 
    196           <xsl:when test="form/entityType = '2'">Add Task</xsl:when> 
    197           <xsl:when test="form/scheduleMethod = '2'">Add Meeting</xsl:when> 
    198           <xsl:otherwise>Add Event</xsl:otherwise> 
    199         </xsl:choose> 
     230        Add Event 
    200231      </h2> 
    201232      <xsl:apply-templates select="." mode="eventForm"/> 
     
    205236  <!--==== EDIT EVENT ====--> 
    206237  <xsl:template match="formElements" mode="editEvent"> 
    207     <!-- The name "eventForm" is referenced by several javascript functions. Do not 
    208     change it without modifying bedework.js --> 
    209238    <form name="eventForm" method="post" action="{$updateEvent}" id="standardForm" onsubmit="setEventFields(this)"> 
    210239      <h2> 
    211         <span class="formButtons"> 
    212           <input name="submit" type="submit" value="save"/> 
    213           <input name="cancelled" type="submit" value="cancel"/> 
    214         </span> 
    215         <xsl:choose> 
    216           <xsl:when test="form/entityType = '2'">Edit Task</xsl:when> 
    217           <xsl:when test="form/scheduleMethod = '2'">Edit Meeting</xsl:when> 
    218           <xsl:otherwise>Edit Event</xsl:otherwise> 
    219         </xsl:choose> 
     240        Edit Event 
    220241      </h2> 
    221242      <xsl:apply-templates select="." mode="eventForm"/> 
     
    292313      <ul id="eventFormTabs" class="submenu"> 
    293314        <li class="selected"> 
    294           <a href="javascript:setTab('eventFormTabs',0); show('bwEventTab-Basic'); hide('bwEventTab-Details','bwEventTab-Recurrence','bwEventTab-Access','bwEventTab-Scheduling');"> 
     315          <a href="javascript:setTab('eventFormTabs',0); show('bwEventTab-Basic'); hide('bwEventTab-Details','bwEventTab-Location','bwEventTab-Categories','bwEventTab-Contact');"> 
    295316            basic 
    296317          </a> 
    297318        </li> 
    298319        <li> 
    299           <a href="javascript:setTab('eventFormTabs',1); show('bwEventTab-Details'); hide('bwEventTab-Basic','bwEventTab-Recurrence','bwEventTab-Access','bwEventTab-Scheduling');"> 
     320          <a href="javascript:setTab('eventFormTabs',1); show('bwEventTab-Details'); hide('bwEventTab-Basic','bwEventTab-Location','bwEventTab-Categories','bwEventTab-Contact');"> 
    300321            details 
    301322          </a> 
    302323        </li> 
    303324        <li> 
    304           <a href="javascript:setTab('eventFormTabs',2); show('bwEventTab-Recurrence'); hide('bwEventTab-Details','bwEventTab-Basic','bwEventTab-Access','bwEventTab-Scheduling');"> 
    305             recurrence 
     325          <a href="javascript:setTab('eventFormTabs',2); show('bwEventTab-Location'); hide('bwEventTab-Details','bwEventTab-Basic','bwEventTab-Categories','bwEventTab-Contact');"> 
     326            location 
    306327          </a> 
    307328        </li> 
    308329        <li> 
    309           <a href="javascript:setTab('eventFormTabs',3); show('bwEventTab-Scheduling'); hide('bwEventTab-Basic','bwEventTab-Details','bwEventTab-Recurrence','bwEventTab-Access');"> 
    310             scheduling 
     330          <a href="javascript:setTab('eventFormTabs',3); show('bwEventTab-Contact'); hide('bwEventTab-Basic','bwEventTab-Details','bwEventTab-Location','bwEventTab-Categories');"> 
     331            contact 
    311332          </a> 
    312333        </li> 
    313334        <li> 
    314           <a href="javascript:setTab('eventFormTabs',4); show('bwEventTab-Access'); hide('bwEventTab-Details','bwEventTab-Basic','bwEventTab-Recurrence','bwEventTab-Scheduling');"> 
    315             acces
     335          <a href="javascript:setTab('eventFormTabs',4); show('bwEventTab-Categories'); hide('bwEventTab-Details','bwEventTab-Basic','bwEventTab-Location','bwEventTab-Contact');"> 
     336            categorie
    316337          </a> 
    317338        </li> 
     
    322343    <!-- this tab is visible by default --> 
    323344    <div id="bwEventTab-Basic"> 
    324       <table cellspacing="0" class="common dottedBorder"> 
    325         <!--  Calendar in which to place event  --> 
     345      <!--  For now, hard code the path to the submissions calendar --> 
     346      <input type="hidden" name="newCalPath" value="/public/unbrowseable/submissions/submissions"/> 
     347      <table cellspacing="0" class="common"> 
     348        <!--  and hide calendar selection code; 
    326349        <tr> 
    327350          <td class="fieldname"> 
     
    329352          </td> 
    330353          <td class="fieldval"> 
    331             <!-- the string "user/" should not be hard coded; fix this --> 
     354            // the string "user/" should not be hard coded; fix this 
    332355            <xsl:variable name="userPath">user/<xsl:value-of select="/bedework/userid"/></xsl:variable> 
    333356            <xsl:variable name="writableCalendars"> 
     
    341364            <xsl:choose> 
    342365              <xsl:when test="$writableCalendars = 1"> 
    343                 <!-- there is only 1 writable calendar, so find it by looking down both trees at once --> 
     366                // there is only 1 writable calendar, so find it by looking down both trees at once 
    344367                <xsl:variable name="newCalPath"><xsl:value-of select="/bedework/myCalendars//calendar[calType = '1' and 
    345368                         currentAccess/current-user-privilege-set/privilege/write-content]/path"/><xsl:value-of select="/bedework/mySubscriptions//calendar[calType = '1' and 
     
    377400                  </xsl:choose> 
    378401                  <xsl:text> </xsl:text> 
    379                   <!-- this final text element is required to avoid an empty 
    380                        span element which is improperly rendered in the browser --> 
     402                  // this final text element is required to avoid an empty 
     403                       span element which is improperly rendered in the browser 
    381404                </span> 
    382405 
     
    385408          </td> 
    386409        </tr> 
     410        --> 
    387411        <!--  Summary (title) of event  --> 
    388412        <tr> 
     
    428452            all day 
    429453 
    430             <!-- floating event: no timezone (and not UTC) --> 
     454            <!-- HIDE floating event: no timezone (and not UTC) 
    431455            <xsl:choose> 
    432456              <xsl:when test="form/floating/input/@checked='checked'"> 
     
    441465              </xsl:otherwise> 
    442466            </xsl:choose> 
    443             floating 
    444  
    445             <!-- store time as coordinated universal time (UTC) --> 
     467            floating --> 
     468 
     469            <!-- HIDE store time as coordinated universal time (UTC) 
    446470            <xsl:choose> 
    447471              <xsl:when test="form/storeUTC/input/@checked='checked'"> 
     
    456480              </xsl:otherwise> 
    457481            </xsl:choose> 
    458             store as UTC 
     482            store as UTC--> 
    459483 
    460484            <br/> 
     
    713737 
    714738        <!--  Transparency  --> 
     739        <!--  HIDE 
    715740        <tr> 
    716741          <td class="fieldname padMeTop"> 
     
    732757            no <span class="note">(transparent: event status does not affect your free/busy)</span><br/> 
    733758          </td> 
    734         </tr> 
     759        </tr> --> 
    735760 
    736761        <!--  Category  --> 
     
    778803    <!-- ============== --> 
    779804    <div id="bwEventTab-Details" class="invisible"> 
    780       <table cellspacing="0" class="common dottedBorder"> 
     805      <table cellspacing="0" class="common"> 
    781806        <!--  Location  --> 
    782807        <tr> 
     
    866891 
    867892 
    868     <!-- Recurrence tab --> 
     893    <!-- Location tab --> 
    869894    <!-- ============== --> 
    870     <div id="bwEventTab-Recurrence" class="invisible"> 
    871       <xsl:choose> 
    872         <xsl:when test="recurrenceId != ''"> 
    873           <!-- recurrence instances can not themselves recur, 
    874                so provide access to master event --> 
    875           <em>This event is a recurrence instance.</em><br/> 
    876           <a href="{$editEvent}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}" title="edit master (recurring event)">edit master event</a> 
    877         </xsl:when> 
    878         <xsl:otherwise> 
    879           <!-- has recurrenceId, so is master --> 
    880  
    881           <div id="recurringSwitch"> 
    882             <!-- set or remove "recurring" and show or hide all recurrence fields: --> 
    883             <input type="radio" name="recurring" value="true" onclick="swapRecurrence(this)"> 
    884               <xsl:if test="form/recurringEntity = 'true'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 
    885             </input> event recurs 
    886             <input type="radio" name="recurring" value="false" onclick="swapRecurrence(this)"> 
    887               <xsl:if test="form/recurringEntity = 'false'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 
    888             </input> event does not recur 
    889           </div> 
    890  
    891           <!-- wrapper for all recurrence fields (rrules and rdates): --> 
    892           <div id="recurrenceFields" class="invisible"> 
    893             <xsl:if test="form/recurringEntity = 'true'"><xsl:attribute name="class">visible</xsl:attribute></xsl:if> 
    894  
    895             <h4>Recurrence Rules</h4> 
    896             <!-- show or hide rrules fields when editing: --> 
    897             <xsl:if test="form/recurrence"> 
    898               <input type="checkbox" name="rrulesFlag" onclick="swapRrules(this)" value="on"/> 
    899               <span id="rrulesSwitch"> 
    900                 change recurrence rules 
    901               </span> 
    902             </xsl:if> 
    903             <span id="rrulesUiSwitch"> 
    904               <xsl:if test="form/recurrence"> 
    905                 <xsl:attribute name="class">invisible</xsl:attribute> 
    906               </xsl:if> 
    907               <input type="checkbox" name="rrulesUiSwitch" value="advanced" onchange="swapVisible(this,'advancedRrules')"/> 
    908               show advanced recurrence rules 
    909             </span> 
    910  
    911             <xsl:if test="form/recurrence"> 
    912               <!-- Output descriptive recurrence rules information.  Probably not 
    913                    complete yet. Replace all strings so can be 
    914                    more easily internationalized. --> 
    915               <div id="recurrenceInfo"> 
    916                 Every 
    917                 <xsl:choose> 
    918                   <xsl:when test="form/recurrence/interval &gt; 1"> 
    919                     <xsl:value-of select="form/recurrence/interval"/> 
    920                   </xsl:when> 
    921                 </xsl:choose> 
    922                 <xsl:text> </xsl:text> 
    923                 <xsl:choose> 
    924                   <xsl:when test="form/recurrence/freq = 'HOURLY'">hour</xsl:when> 
    925                   <xsl:when test="form/recurrence/freq = 'DAILY'">day</xsl:when> 
    926                   <xsl:when test="form/recurrence/freq = 'WEEKLY'">week</xsl:when> 
    927                   <xsl:when test="form/recurrence/freq = 'MONTHLY'">month</xsl:when> 
    928                   <xsl:when test="form/recurrence/freq = 'YEARLY'">year</xsl:when> 
    929                 </xsl:choose><xsl:if test="form/recurrence/interval &gt; 1">s</xsl:if> 
    930                 <xsl:text> </xsl:text> 
    931  
    932                 <xsl:if test="form/recurrence/byday"> 
    933                   <xsl:for-each select="form/recurrence/byday/pos"> 
    934                     <xsl:if test="position() != 1"> and </xsl:if> 
    935                     on 
    936                     <xsl:choose> 
    937                       <xsl:when test="@val='1'"> 
    938                         the first 
    939                       </xsl:when> 
    940                       <xsl:when test="@val='2'"> 
    941                         the second 
    942                       </xsl:when> 
    943                       <xsl:when test="@val='3'"> 
    944                         the third 
    945                       </xsl:when> 
    946                       <xsl:when test="@val='4'"> 
    947                         the fourth 
    948                       </xsl:when> 
    949                       <xsl:when test="@val='5'"> 
    950                         the fifth 
    951                       </xsl:when> 
    952                       <xsl:when test="@val='-1'"> 
    953                         the last 
    954                       </xsl:when> 
    955                       <!-- don't output "every" --> 
    956                       <!--<xsl:otherwise> 
    957                         every 
    958                       </xsl:otherwise>--> 
    959                     </xsl:choose> 
    960                     <xsl:for-each select="day"> 
    961                       <xsl:if test="position() != 1 and position() = last()"> and </xsl:if> 
    962                       <xsl:variable name="dayVal" select="."/> 
    963                       <xsl:variable name="dayPos"> 
    964                         <xsl:for-each select="/bedework/recurdayvals/val"> 
    965                           <xsl:if test="node() = $dayVal"><xsl:value-of select="position()"/></xsl:if> 
    966                         </xsl:for-each> 
    967                       </xsl:variable> 
    968                       <xsl:value-of select="/bedework/shortdaynames/val[position() = $dayPos]"/> 
    969                       <xsl:if test="position() != last()">, </xsl:if> 
    970                     </xsl:for-each> 
    971                   </xsl:for-each> 
    972                 </xsl:if> 
    973  
    974                 <xsl:if test="form/recurrence/bymonth"> 
    975                   in 
    976                   <xsl:for-each select="form/recurrence/bymonth/val"> 
    977                     <xsl:if test="position() != 1 and position() = last()"> and </xsl:if> 
    978                     <xsl:variable name="monthNum" select="number(.)"/> 
    979                     <xsl:value-of select="/bedework/monthlabels/val[position() = $monthNum]"/> 
    980                     <xsl:if test="position() != last()">, </xsl:if> 
    981                   </xsl:for-each> 
    982                 </xsl:if> 
    983  
    984                 <xsl:if test="form/recurrence/bymonthday"> 
    985                   on the 
    986                   <xsl:apply-templates select="form/recurrence/bymonthday/val" mode="weekMonthYearNumbers"/> 
    987                   day<xsl:if test="form/recurrence/bymonthday/val[position()=2]">s</xsl:if> of the month 
    988                 </xsl:if> 
    989  
    990                 <xsl:if test="form/recurrence/byyearday"> 
    991                   on the 
    992                   <xsl:apply-templates select="form/recurrence/byyearday/val" mode="weekMonthYearNumbers"/> 
    993                   day<xsl:if test="form/recurrence/byyearday/val[position()=2]">s</xsl:if> of the year 
    994                 </xsl:if> 
    995  
    996                 <xsl:if test="form/recurrence/byweekno"> 
    997                   in the 
    998                   <xsl:apply-templates select="form/recurrence/byweekno/val" mode="weekMonthYearNumbers"/> 
    999                   week<xsl:if test="form/recurrence/byweekno/val[position()=2]">s</xsl:if> of the year 
    1000                 </xsl:if> 
    1001  
    1002                 repeating 
    1003                 <xsl:choose> 
    1004                   <xsl:when test="form/recurrence/count = '-1'">forever</xsl:when> 
    1005                   <xsl:when test="form/recurrence/until"> 
    1006                     until <xsl:value-of select="substring(form/recurrence/until,1,4)"/>-<xsl:value-of select="substring(form/recurrence/until,5,2)"/>-<xsl:value-of select="substring(form/recurrence/until,7,2)"/> 
    1007                   </xsl:when> 
    1008                   <xsl:otherwise> 
    1009                     <xsl:value-of select="form/recurrence/count"/> 
    1010                     time<xsl:if test="form/recurrence/count &gt; 1">s</xsl:if> 
    1011                   </xsl:otherwise> 
    1012                 </xsl:choose> 
    1013               </div> 
    1014             </xsl:if> 
    1015  
    1016             <!-- set these dynamically when form is submitted --> 
    1017             <input type="hidden" name="interval" value=""/> 
    1018             <input type="hidden" name="count" value=""/> 
    1019             <input type="hidden" name="until" value=""/> 
    1020             <input type="hidden" name="byday" value=""/> 
    1021             <input type="hidden" name="bymonthday" value=""/> 
    1022             <input type="hidden" name="bymonth" value=""/> 
    1023             <input type="hidden" name="byweekno" value=""/> 
    1024             <input type="hidden" name="byyearday" value=""/> 
    1025             <input type="hidden" name="wkst" value=""/> 
    1026             <input type="hidden" name="setpos" value=""/> 
    1027  
    1028             <!-- wrapper for rrules: --> 
    1029             <table id="rrulesTable" cellspacing="0"> 
    1030               <xsl:if test="form/recurrence"> 
    1031                 <xsl:attribute name="class">invisible</xsl:attribute> 
    1032               </xsl:if> 
    1033               <tr> 
    1034                 <td id="recurrenceFrequency" rowspan="2"> 
    1035                   <em>Frequency:</em><br/> 
    1036                   <input type="radio" name="freq" value="NONE" onclick="showRrules(this.value)" checked="checked"/>none<br/> 
    1037                   <!--<input type="radio" name="freq" value="HOURLY" onclick="showRrules(this.value)"/>hourly<br/>--> 
    1038                   <input type="radio" name="freq" value="DAILY" onclick="showRrules(this.value)"/>daily<br/> 
    1039                   <input type="radio" name="freq" value="WEEKLY" onclick="showRrules(this.value)"/>weekly<br/> 
    1040                   <input type="radio" name="freq" value="MONTHLY" onclick="showRrules(this.value)"/>monthly<br/> 
    1041                   <input type="radio" name="freq" value="YEARLY" onclick="showRrules(this.value)"/>yearly 
    1042                 </td> 
    1043                 <!-- recurrence count, until, forever --> 
    1044                 <td id="recurrenceUntil"> 
    1045                   <div id="noneRecurrenceRules"> 
    1046                     no recurrence rules 
    1047                   </div> 
    1048                   <div id="recurrenceUntilRules" class="invisible"> 
    1049                     <em>Repeat:</em> 
    1050                     <p> 
    1051                       <input type="radio" name="recurCountUntil" value="forever"> 
    1052                         <xsl:if test="not(form/recurring) or form/recurring/count = '-1'"> 
    1053                           <xsl:attribute name="checked">checked</xsl:attribute> 
    1054                         </xsl:if> 
    1055                       </input> 
    1056                       forever 
    1057                       <input type="radio" name="recurCountUntil" value="count" id="recurCount"> 
    1058                         <xsl:if test="form/recurring/count != '-1'"> 
    1059                           <xsl:attribute name="checked">checked</xsl:attribute> 
    1060                         </xsl:if> 
    1061                       </input> 
    1062                       <input type="text" value="1" size="2" name="countHolder"  onfocus="selectRecurCountUntil('recurCount')"> 
    1063                         <xsl:if test="form/recurring/count and form/recurring/count != '-1'"> 
    1064                           <xsl:attribute name="value"><xsl:value-of select="form/recurring/count"/></xsl:attribute> 
    1065                         </xsl:if> 
    1066                       </input> 
    1067                       time(s) 
    1068                       <input type="radio" name="recurCountUntil" value="until" id="recurUntil"> 
    1069                         <xsl:if test="form/recurring/until"> 
    1070                           <xsl:attribute name="checked">checked</xsl:attribute> 
    1071                         </xsl:if> 
    1072                       </input> 
    1073                       until 
    1074                       <span id="untilHolder"> 
    1075                         <span dojoType="dropdowndatepicker" formatLength="medium" value="today" saveFormat="yyyyMMdd" id="bwEventWidgetUntilDate" iconURL="{$resourcesRoot}/resources/calIcon.gif"> 
    1076                           <xsl:attribute name="value"><xsl:value-of select="form/start/rfc3339DateTime"/></xsl:attribute> 
    1077                           <xsl:text> </xsl:text> 
    1078                         </span> 
    1079                       </span> 
    1080                     </p> 
    1081                   </div> 
    1082                 </td> 
    1083               </tr> 
    1084               <tr> 
    1085                 <td id="advancedRrules" class="invisible"> 
    1086                   <!-- hourly --> 
    1087                   <div id="hourlyRecurrenceRules" class="invisible"> 
    1088                     <p> 
    1089                       <em>Interval:</em> 
    1090                       every 
    1091                       <input type="text" name="hourlyInterval" size="2" value="1"> 
    1092                         <xsl:if test="form/recurrence/interval"> 
    1093                           <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> 
    1094                         </xsl:if> 
    1095                       </input> 
    1096                       hour(s) 
    1097                     </p> 
    1098                   </div> 
    1099                   <!-- daily --> 
    1100                   <div id="dailyRecurrenceRules" class="invisible"> 
    1101                     <p> 
    1102                       <em>Interval:</em> 
    1103                       every 
    1104                       <input type="text" name="dailyInterval" size="2" value="1"> 
    1105                         <xsl:if test="form/recurrence/interval"> 
    1106                           <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> 
    1107                         </xsl:if> 
    1108                       </input> 
    1109                       day(s) 
    1110                     </p> 
    1111                     <p> 
    1112                       <input type="checkbox" name="swapDayMonthCheckBoxList" value="" onclick="swapVisible(this,'dayMonthCheckBoxList')"/> 
    1113                       in these months: 
    1114                       <div id="dayMonthCheckBoxList" class="invisible"> 
    1115                         <xsl:for-each select="/bedework/monthlabels/val"> 
    1116                           <xsl:variable name="pos"><xsl:value-of select="position()"/></xsl:variable> 
    1117                           <span class="chkBoxListItem"> 
    1118                             <input type="checkbox" name="dayMonths"> 
    1119                               <xsl:attribute name="value"><xsl:value-of select="/bedework/monthvalues/val[position() = $pos]"/></xsl:attribute> 
    1120                             </input> 
    1121                             <xsl:value-of select="."/> 
    1122                           </span> 
    1123                           <xsl:if test="$pos mod 6 = 0"><br/></xsl:if> 
    1124                         </xsl:for-each> 
    1125                       </div> 
    1126                     </p> 
    1127                     <!--<p> 
    1128                       <input type="checkbox" name="swapDaySetPos" value="" onclick="swapVisible(this,'daySetPos')"/> 
    1129                       limit to: 
    1130                       <div id="daySetPos" class="invisible"> 
    1131                       </div> 
    1132                     </p>--> 
    1133                   </div> 
    1134                   <!-- weekly --> 
    1135                   <div id="weeklyRecurrenceRules" class="invisible"> 
    1136                     <p> 
    1137                       <em>Interval:</em> 
    1138                       every 
    1139                       <input type="text" name="weeklyInterval" size="2" value="1"> 
    1140                         <xsl:if test="form/recurrence/interval"> 
    1141                           <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> 
    1142                         </xsl:if> 
    1143                       </input> 
    1144                       week(s) on: 
    1145                     </p> 
    1146                     <p> 
    1147                       <div id="weekRecurFields"> 
    1148                         <xsl:call-template name="byDayChkBoxList"> 
    1149                           <xsl:with-param name="name">byDayWeek</xsl:with-param> 
    1150                         </xsl:call-template> 
    1151                       </div> 
    1152                     </p> 
    1153                     <p class="weekRecurLinks"> 
    1154                       <a href="javascript:recurSelectWeekdays('weekRecurFields')">select weekdays</a> | 
    1155                       <a href="javascript:recurSelectWeekends('weekRecurFields')">select weekends</a> 
    1156                     </p> 
    1157                     <p> 
    1158                       Week start: 
    1159                       <select name="weekWkst"> 
    1160                         <xsl:for-each select="/bedework/shortdaynames/val"> 
    1161                           <xsl:variable name="pos" select="position()"/> 
    1162                           <option> 
    1163                             <xsl:attribute name="value"><xsl:value-of select="/bedework/recurdayvals/val[position() = $pos]"/></xsl:attribute> 
    1164                             <xsl:value-of select="."/> 
    1165                           </option> 
    1166                         </xsl:for-each> 
    1167                       </select> 
    1168                     </p> 
    1169                   </div> 
    1170                   <!-- monthly --> 
    1171                   <div id="monthlyRecurrenceRules" class="invisible"> 
    1172                     <p> 
    1173                       <em>Interval:</em> 
    1174                       every 
    1175                       <input type="text" name="monthlyInterval" size="2" value="1"> 
    1176                         <xsl:if test="form/recurrence/interval"> 
    1177                           <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> 
    1178                         </xsl:if> 
    1179                       </input> 
    1180                       month(s) 
    1181                     </p> 
    1182                     <div id="monthRecurFields"> 
    1183                       <div id="monthRecurFields1"> 
    1184                         on 
    1185                         <select name="bymonthposPos1" width="7em" onchange="changeClass('monthRecurFields2','shown')"> 
    1186                           <xsl:call-template name="recurrenceDayPosOptions"/> 
    1187                         </select> 
    1188                         <xsl:call-template name="byDayChkBoxList"/> 
    1189                       </div> 
    1190                       <xsl:call-template name="buildRecurFields"> 
    1191                         <xsl:with-param name="current">2</xsl:with-param> 
    1192                         <xsl:with-param name="total">10</xsl:with-param> 
    1193                         <xsl:with-param name="name">month</xsl:with-param> 
    1194                       </xsl:call-template> 
    1195                     </div> 
    1196                     <p> 
    1197                       <input type="checkbox" name="swapMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'monthDaysCheckBoxList')"/> 
    1198                       on these days:<br/> 
    1199                       <div id="monthDaysCheckBoxList" class="invisible"> 
    1200                         <xsl:call-template name="buildCheckboxList"> 
    1201                           <xsl:with-param name="current">1</xsl:with-param> 
    1202                           <xsl:with-param name="end">31</xsl:with-param> 
    1203                           <xsl:with-param name="name">monthDayBoxes</xsl:with-param> 
    1204                         </xsl:call-template> 
    1205                       </div> 
    1206                     </p> 
    1207                   </div> 
    1208                   <!-- yearly --> 
    1209                   <div id="yearlyRecurrenceRules" class="invisible"> 
    1210                     <p> 
    1211                       <em>Interval:</em> 
    1212                       every 
    1213                       <input type="text" name="yearlyInterval" size="2" value="1"> 
    1214                         <xsl:if test="form/recurrence/interval"> 
    1215                           <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> 
    1216                         </xsl:if> 
    1217                       </input> 
    1218                       years(s) 
    1219                     </p> 
    1220                     <div id="yearRecurFields"> 
    1221                       <div id="yearRecurFields1"> 
    1222                         on 
    1223                         <select name="byyearposPos1" width="7em" onchange="changeClass('yearRecurFields2','shown')"> 
    1224                           <xsl:call-template name="recurrenceDayPosOptions"/> 
    1225                         </select> 
    1226                         <xsl:call-template name="byDayChkBoxList"/> 
    1227                       </div> 
    1228                       <xsl:call-template name="buildRecurFields"> 
    1229                         <xsl:with-param name="current">2</xsl:with-param> 
    1230                         <xsl:with-param name="total">10</xsl:with-param> 
    1231                         <xsl:with-param name="name">year</xsl:with-param> 
    1232                       </xsl:call-template> 
    1233                     </div> 
    1234                     <p> 
    1235                       <input type="checkbox" name="swapYearMonthCheckBoxList" value="" onclick="swapVisible(this,'yearMonthCheckBoxList')"/> 
    1236                       in these months: 
    1237                       <div id="yearMonthCheckBoxList" class="invisible"> 
    1238                         <xsl:for-each select="/bedework/monthlabels/val"> 
    1239                           <xsl:variable name="pos"><xsl:value-of select="position()"/></xsl:variable> 
    1240                           <span class="chkBoxListItem"> 
    1241                             <input type="checkbox" name="yearMonths"> 
    1242                               <xsl:attribute name="value"><xsl:value-of select="/bedework/monthvalues/val[position() = $pos]"/></xsl:attribute> 
    1243                             </input> 
    1244                             <xsl:value-of select="."/> 
    1245                           </span> 
    1246                           <xsl:if test="$pos mod 6 = 0"><br/></xsl:if> 
    1247                         </xsl:for-each> 
    1248                       </div> 
    1249                     </p> 
    1250                     <p> 
    1251                       <input type="checkbox" name="swapYearMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'yearMonthDaysCheckBoxList')"/> 
    1252                       on these days of the month:<br/> 
    1253                       <div id="yearMonthDaysCheckBoxList" class="invisible"> 
    1254                         <xsl:call-template name="buildCheckboxList"> 
    1255                           <xsl:with-param name="current">1</xsl:with-param> 
    1256                           <xsl:with-param name="end">31</xsl:with-param> 
    1257                           <xsl:with-param name="name">yearMonthDayBoxes</xsl:with-param> 
    1258                         </xsl:call-template> 
    1259                       </div> 
    1260                     </p> 
    1261                     <p> 
    1262                       <input type="checkbox" name="swapYearWeeksCheckBoxList" value="" onclick="swapVisible(this,'yearWeeksCheckBoxList')"/> 
    1263                       in these weeks of the year:<br/> 
    1264                       <div id="yearWeeksCheckBoxList" class="invisible"> 
    1265                         <xsl:call-template name="buildCheckboxList"> 
    1266                           <xsl:with-param name="current">1</xsl:with-param> 
    1267                           <xsl:with-param name="end">53</xsl:with-param> 
    1268                           <xsl:with-param name="name">yearWeekBoxes</xsl:with-param> 
    1269                         </xsl:call-template> 
    1270                       </div> 
    1271                     </p> 
    1272                     <p> 
    1273                       <input type="checkbox" name="swapYearDaysCheckBoxList" value="" onclick="swapVisible(this,'yearDaysCheckBoxList')"/> 
    1274                       on these days of the year:<br/> 
    1275                       <div id="yearDaysCheckBoxList" class="invisible"> 
    1276                         <xsl:call-template name="buildCheckboxList"> 
    1277                           <xsl:with-param name="current">1</xsl:with-param> 
    1278                           <xsl:with-param name="end">366</xsl:with-param> 
    1279                           <xsl:with-param name="name">yearDayBoxes</xsl:with-param> 
    1280                         </xsl:call-template> 
    1281                       </div> 
    1282                     </p> 
    1283                     <p> 
    1284                       Week start: 
    1285                       <select name="yearWkst"> 
    1286                         <xsl:for-each select="/bedework/shortdaynames/val"> 
    1287                           <xsl:variable name="pos" select="position()"/> 
    1288                           <option> 
    1289                             <xsl:attribute name="value"><xsl:value-of select="/bedework/recurdayvals/val[position() = $pos]"/></xsl:attribute> 
    1290                             <xsl:value-of select="."/> 
    1291                           </option> 
    1292                         </xsl:for-each> 
    1293                       </select> 
    1294                     </p> 
    1295                   </div> 
    1296                 </td> 
    1297               </tr> 
    1298             </table> 
    1299  
    1300             <h4> 
    1301               Recurrence and Exception Dates 
    1302             </h4> 
    1303             <div id="raContent"> 
    1304               <div class="dateStartEndBox" id="rdatesFormFields"> 
    1305                 <!-- dateonly event: this is temporary - should be determined by the main event --> 
    1306                 <input type="checkbox" name="dateOnly" id="rdateDateOnly" onclick="swapRdateAllDay(this)" value="true"/> 
    1307                 all day 
    1308                 <!-- floating event: no timezone (and not UTC) --> 
    1309                 <input type="checkbox" name="floating" id="rdateFloating" onclick="swapRdateFloatingTime(this)" value="true"/> 
    1310                 floating 
    1311                 <!-- store time as coordinated universal time (UTC) --> 
    1312                 <input type="checkbox" name="storeUTC" id="rdateStoreUTC" onclick="swapRdateStoreUTC(this)" value="true"/> 
    1313                 store as UTC<br/> 
    1314                 <div class="dateFields"> 
    1315                   <input name="eventRdate.date" 
    1316                          dojoType="dropdowndatepicker" 
    1317                          formatLength="medium" 
    1318                          value="today" 
    1319                          saveFormat="yyyyMMdd" 
    1320                          id="bwEventWidgeRdate" 
    1321                          iconURL="{$resourcesRoot}/resources/calIcon.gif"/> 
    1322                 </div> 
    1323                 <div id="rdateTimeFields" class="timeFields"> 
    1324                  <select name="eventRdate.hour"> 
    1325                     <option value="00">00</option> 
    1326                     <option value="01">01</option> 
    1327                     <option value="02">02</option> 
    1328                     <option value="03">03</option> 
    1329                     <option value="04">04</option> 
    1330                     <option value="05">05</option> 
    1331                     <option value="06">06</option> 
    1332                     <option value="07">07</option> 
    1333                     <option value="08">08</option> 
    1334                     <option value="09">09</option> 
    1335                     <option value="10">10</option> 
    1336                     <option value="11">11</option> 
    1337                     <option value="12" selected="selected">12</option> 
    1338                     <option value="13">13</option> 
    1339                     <option value="14">14</option> 
    1340                     <option value="15">15</option> 
    1341                     <option value="16">16</option> 
    1342                     <option value="17">17</option> 
    1343                     <option value="18">18</option> 
    1344                     <option value="19">19</option> 
    1345                     <option value="20">20</option> 
    1346                     <option value="21">21</option> 
    1347                     <option value="22">22</option> 
    1348                     <option value="23">23</option> 
    1349                   </select> 
    1350                   <select name="eventRdate.minute"> 
    1351                     <option value="00" selected="selected">00</option> 
    1352                     <option value="05">05</option> 
    1353                     <option value="10">10</option> 
    1354                     <option value="15">15</option> 
    1355                     <option value="20">20</option> 
    1356                     <option value="25">25</option> 
    1357                     <option value="30">30</option> 
    1358                     <option value="35">35</option> 
    1359                     <option value="40">40</option> 
    1360                     <option value="45">45</option> 
    1361                     <option value="50">50</option> 
    1362                     <option value="55">55</option> 
    1363                   </select> 
    1364                  <xsl:text> </xsl:text> 
    1365  
    1366                   <select name="tzid" id="rdateTzid" class="timezones"> 
    1367                     <xsl:if test="form/floating/input/@checked='checked'"><xsl:attribute name="disabled">disabled</xsl:attribute></xsl:if> 
    1368                     <option value="">select timezone...</option> 
    1369                     <xsl:variable name="rdateTzId" select="/bedework/now/defaultTzid"/> 
    1370                     <xsl:for-each select="/bedework/timezones/timezone"> 
    1371                       <option> 
    1372                         <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> 
    1373                         <xsl:if test="$rdateTzId = id"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> 
    1374                         <xsl:value-of select="name"/> 
    1375                       </option> 
    1376                     </xsl:for-each> 
    1377                   </select> 
    1378                 </div> 
    1379                 <xsl:text> </xsl:text> 
    1380                 <!--bwRdates.update() accepts: date, time, allDay, floating, utc, tzid--> 
    1381                 <input type="button" name="rdate" value="add recurrence" onclick="bwRdates.update(this.form['eventRdate.date'].value,this.form['eventRdate.hour'].value + this.form['eventRdate.minute'].value,false,false,false,this.form.tzid.value)"/> 
    1382                 <input type="button" name="exdate" value="add exception" onclick="bwExdates.update(this.form['eventRdate.date'].value,this.form['eventRdate.hour'].value + this.form['eventRdate.minute'].value,false,false,false,this.form.tzid.value)"/> 
    1383  
    1384                 <input type="hidden" name="rdates" value="" id="bwRdatesField" /> 
    1385                 <!-- if there are no recurrence dates, the following table will show --> 
    1386                 <table cellspacing="0" class="invisible" id="bwCurrentRdatesNone"> 
    1387                   <tr><th>Recurrence Dates</th></tr> 
    1388                   <tr><td>No recurrence dates</td></tr> 
    1389                 </table> 
    1390  
    1391                 <!-- if there are recurrence dates, the following table will show --> 
    1392                 <table cellspacing="0" class="invisible" id="bwCurrentRdates"> 
    1393                   <tr> 
    1394                     <th colspan="4">Recurrence Dates</th> 
    1395                   </tr> 
    1396                   <tr class="colNames"> 
    1397                     <td>Date</td> 
    1398                     <td>Time</td> 
    1399                     <td>TZid</td> 
    1400                     <td></td> 
    1401                   </tr> 
    1402                 </table> 
    1403  
    1404                 <input type="hidden" name="exdates" value="" id="bwExdatesField" /> 
    1405                 <!-- if there are no exception dates, the following table will show --> 
    1406                 <table cellspacing="0" class="invisible" id="bwCurrentExdatesNone"> 
    1407                   <tr><th>Exception Dates</th></tr> 
    1408                   <tr><td>No exception dates</td></tr> 
    1409                 </table> 
    1410  
    1411                 <!-- if there are exception dates, the following table will show --> 
    1412                 <table cellspacing="0" class="invisible" id="bwCurrentExdates"> 
    1413                   <tr> 
    1414                     <th colspan="4">Exception Dates</th> 
    1415                   </tr> 
    1416                   <tr class="colNames"> 
    1417                     <td>Date</td> 
    1418                     <td>Time</td> 
    1419                     <td>TZid</td> 
    1420                     <td></td> 
    1421                   </tr> 
    1422                 </table> 
    1423                 <p> 
    1424                   Exception dates may also be created by deleting an instance 
    1425                   of a recurring event. 
    1426                 </p> 
    1427               </div> 
    1428             </div> 
    1429           </div> 
    1430         </xsl:otherwise> 
    1431       </xsl:choose> 
     895    <div id="bwEventTab-Location" class="invisible"> 
     896      move locs here 
    1432897    </div> 
    1433898 
     899    <!-- Contact tab --> 
     900    <!-- ============== --> 
     901    <div id="bwEventTab-Contact" class="invisible"> 
     902      move contacts here 
     903    </div> 
     904 
     905    <!-- Categories tab --> 
     906    <!-- ============== --> 
     907    <div id="bwEventTab-Categories" class="invisible"> 
     908      move cats here 
     909    </div> 
     910 
    1434911    <div class="eventSubmitButtons"> 
    1435       <xsl:choose> 
    1436         <xsl:when test="form/scheduleMethod = '2'"> 
    1437           <input name="submit" type="submit" value="save"/> 
    1438           <input name="submitAndSend" type="submit" value="save &amp; send invitations"/> 
    1439         </xsl:when> 
    1440         <xsl:otherwise> 
    1441           <input name="submit" type="submit" value="save"/> 
    1442         </xsl:otherwise> 
    1443       </xsl:choose> 
     912      <input name="submit" type="submit" value="submit for approval"/> 
    1444913      <input name="cancelled" type="submit" value="cancel"/> 
    1445914    </div>