Changeset 1997
- Timestamp:
- 12/29/08 17:09:01
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webadmin/webapp/resources/default/default/default.css
r1852 r1997 1001 1001 text-align: center; 1002 1002 } 1003 .strong { 1004 font-weight: bold; 1005 } 1003 1006 .smaller { 1004 1007 font-size: 0.8em; trunk/deployment/webadmin/webapp/resources/default/default/default.xsl
r1995 r1997 504 504 border="0"/> 505 505 </a> 506 <!-- set the page heading: -->507 506 <h1> 508 <xsl:choose> 509 <xsl:when test="/bedework/page='modEvent' or /bedework/page='eventList' or /bedework/page='displayEvent'"> 510 Manage Events 511 </xsl:when> 512 <xsl:when test="/bedework/page='contactList' or /bedework/page='modContact' or /bedework/page='deleteContactConfirm'"> 513 Manage Contacts 514 </xsl:when> 515 <xsl:when test="/bedework/page='locationList' or /bedework/page='modLocation' or /bedework/page='deleteLocationConfirm'"> 516 Manage Locations 517 </xsl:when> 518 <xsl:when test="/bedework/page='calendarList' or /bedework/page='modCalendar' or /bedework/page='calendarReferenced' or /bedework/page='deleteCalendarConfirm'"> 519 Manage Calendars 520 </xsl:when> 521 <xsl:when test="/bedework/page='calendarDescriptions' or /bedework/page='displayCalendar'"> 522 Public Calendars 523 </xsl:when> 524 <xsl:when test="/bedework/page='subscriptions' or /bedework/page='modSubscription'"> 525 Manage Subscriptions 526 </xsl:when> 527 <xsl:when test="/bedework/page='views' or /bedework/page='modView'"> 528 Manage Views 529 </xsl:when> 530 <xsl:when test="/bedework/page='modSyspars'"> 531 Manage System Preferences 532 </xsl:when> 533 <xsl:when test="/bedework/page='authUserList' or /bedework/page='modAuthUser'"> 534 Manage Administrative Roles 535 </xsl:when> 536 <xsl:when test="/bedework/page='chooseGroup'"> 537 Choose Administrative Group 538 </xsl:when> 539 <xsl:when test="/bedework/page='adminGroupList' or /bedework/page='modAdminGroup' or /bedework/page='modAdminGroup' or /bedework/page='modAdminGroupMembers'"> 540 Manage Administrative Groups 541 </xsl:when> 542 <xsl:when test="/bedework/page='noGroup'"> 543 No Administrative Group 544 </xsl:when> 545 <xsl:when test="/bedework/page='uploadTimezones'"> 546 Manage Time Zones 547 </xsl:when> 548 <xsl:when test="/bedework/page='noAccess'"> 549 Access Denied 550 </xsl:when> 551 <xsl:when test="/bedework/page='error'"> 552 Error 553 </xsl:when> 554 <xsl:otherwise> 555 Bedework Public Events Administration 556 </xsl:otherwise> 557 </xsl:choose> 507 Bedework Public Events Administration 558 508 </h1> 559 509 </div> … … 562 512 <tr> 563 513 <td class="leftCell"> 514 <xsl:if test="/bedework/currentCalSuite/name"> 515 Calendar Suite: 516 <span class="status"> 517 <xsl:value-of select="/bedework/currentCalSuite/name"/> 518 </span> 519 <xsl:text> </xsl:text> 520 </xsl:if> 521 <!-- 564 522 <a href="{$setup}">Home</a> 565 523 <a href="{$publicCal}" target="calendar">Launch Calendar</a> 566 <a href="{$logout}" id="bwLogoutButton">Log Out</a>524 --> 567 525 </td> 568 526 <xsl:if test="/bedework/userInfo/user"> 569 527 <td class="rightCell"> 570 <xsl:if test="/bedework/ currentCalSuite/name">571 Calendar Suite:528 <xsl:if test="/bedework/userInfo/group"> 529 Group: 572 530 <span class="status"> 573 <xsl:value-of select="/bedework/ currentCalSuite/name"/>531 <xsl:value-of select="/bedework/userInfo/group"/> 574 532 </span> 575   533 <xsl:text> </xsl:text> 534 <a href="{$admingroup-switch}" class="fieldInfo">change</a> 535 <xsl:text> </xsl:text> 576 536 </xsl:if> 577 537 Logged in as: … … 579 539 <xsl:value-of select="/bedework/userInfo/currentUser"/> 580 540 </span> 581   582 <xsl:if test="/bedework/userInfo/group"> 583 Group: 584 <span class="status"> 585 <xsl:value-of select="/bedework/userInfo/group"/> 586 </span> 587 </xsl:if> 541 <xsl:text> </xsl:text> 542 <a href="{$logout}" id="bwLogoutButton" class="fieldInfo">log out</a> 588 543 </td> 589 544 </xsl:if> … … 605 560 <a href="{$initPendingTab}&calPath={$submissionsRootEncoded}&listAllEvents=true">Pending Events</a> 606 561 </li> 607 <xsl:if test="/bedework/currentCalSuite/currentAccess/current-user-privilege-set/privilege/write or /bedework/userInfo/superUser='true'"> 608 <li> 609 <xsl:if test="/bedework/tab = 'calsuite'"> 610 <xsl:attribute name="class">selected</xsl:attribute> 611 </xsl:if> 612 <a href="{$showCalsuiteTab}">Calendar Suite</a> 613 </li> 562 <xsl:if test="/bedework/currentCalSuite/group = /bedework/userInfo/group"> 563 <xsl:if test="/bedework/currentCalSuite/currentAccess/current-user-privilege-set/privilege/write or /bedework/userInfo/superUser = 'true'"> 564 <li> 565 <xsl:if test="/bedework/tab = 'calsuite'"> 566 <xsl:attribute name="class">selected</xsl:attribute> 567 </xsl:if> 568 <a href="{$showCalsuiteTab}">Calendar Suite</a> 569 </li> 570 </xsl:if> 614 571 </xsl:if> 615 572 <xsl:if test="/bedework/userInfo/superUser='true'"> … … 807 764 <xsl:if test="/bedework/currentCalSuite/currentAccess/current-user-privilege-set/privilege/write or /bedework/userInfo/superUser='true'"> 808 765 <h2> 809 Manage C urrent Calendar Suite766 Manage Calendar Suite 810 767 </h2> 768 811 769 <div id="calSuiteTitle"> 812 770 Calendar Suite: 813 771 <strong><xsl:value-of select="/bedework/currentCalSuite/name"/></strong> 772 <xsl:text> </xsl:text> 773 Group: 774 <strong><xsl:value-of select="/bedework/currentCalSuite/group"/></strong> 814 775 <xsl:text> </xsl:text> 815 776 <a href="{$admingroup-switch}" class="fieldInfo">change</a> … … 840 801 <h2>Manage Users & Groups</h2> 841 802 <ul class="adminMenu"> 842 <xsl:if test="/bedework/userInfo/userMaintOK='true'"> 803 <!-- deprecated (for now, likely permanent) --> 804 <!-- xsl:if test="/bedework/userInfo/userMaintOK='true'"> 843 805 <li> 844 806 <a href="{$authuser-initUpdate}"> … … 846 808 </a> 847 809 </li> 848 </xsl:if >810 </xsl:if--> 849 811 <xsl:if test="/bedework/userInfo/adminGroupMaintOk='true'"> 850 812 <li> … … 876 838 <xsl:if test="/bedework/userInfo/superUser='true'"> 877 839 <h2>Manage System</h2> 878 <ul class="adminMenu ">840 <ul class="adminMenu strong"> 879 841 <li> 880 842 <a href="{$calendar-fetch}"> … … 888 850 </li> 889 851 <li> 852 <a href="{$event-initUpload}"> 853 Upload iCAL file 854 </a> 855 </li> 856 </ul> 857 <ul class="adminMenu"> 858 <li> 890 859 <a href="{$filter-showAddForm}"> 891 860 Manage CalDAV filters 892 </a>893 </li>894 <li>895 <a href="{$event-initUpload}">896 Upload iCAL file897 861 </a> 898 862 </li> … … 932 896 <!--++++++++++++++++++ Events ++++++++++++++++++++--> 933 897 <xsl:template name="eventList"> 934 <h2> EditEvents</h2>898 <h2>Manage Events</h2> 935 899 <p> 936 900 Select the event that you would like to update: … … 2831 2795 <!--+++++++++++++++ Contacts ++++++++++++++++++++--> 2832 2796 <xsl:template name="contactList"> 2833 <h2> EditContacts</h2>2797 <h2>Manage Contacts</h2> 2834 2798 <p> 2835 2799 Select the contact you would like to update: … … 2973 2937 <!--+++++++++++++++ Locations ++++++++++++++++++++--> 2974 2938 <xsl:template name="locationList"> 2975 <h2> EditLocations</h2>2939 <h2>Manage Locations</h2> 2976 2940 <p> 2977 2941 Select the location that you would like to update: … … 3108 3072 <!--+++++++++++++++ Categories ++++++++++++++++++++--> 3109 3073 <xsl:template name="categoryList"> 3110 <h2> EditCategories</h2>3074 <h2>Manage Categories</h2> 3111 3075 <p> 3112 3076 Select the category you would like to update: … … 4400 4364 5 - Inbox 4401 4365 6 - Outbox 4402 7 - Alias 4403 8 - External subscription 4366 7 - Alias (internal - the underlying calType will be returned; check for the isSubscription property) 4367 8 - External subscription (internal - the underlying calType will be returned; check for the isSubscription property and check on the item's status) 4404 4368 9 - Resource collection 4405 4369 --> … … 4411 4375 <h3>Subscription Tree</h3> 4412 4376 <ul id="calendarTree"> 4413 <xsl:apply-templates select="calendar [number(calType) = 0 or number(calType) > 6]" mode="listForUpdateSubscription"/>4377 <xsl:apply-templates select="calendar" mode="listForUpdateSubscription"/> 4414 4378 </ul> 4415 4379 </td> … … 4472 4436 <xsl:if test="calendarCollection='false'"> 4473 4437 <xsl:text> </xsl:text> 4474 <a href="{$subscriptions-initAdd}&calPath={$calPath}" title="add a calendaror folder">4475 <img src="{$resourcesRoot}/resources/calAddIcon.gif" width="13" height="13" alt="add a calendaror folder" border="0"/>4438 <a href="{$subscriptions-initAdd}&calPath={$calPath}" title="add a subscription or folder"> 4439 <img src="{$resourcesRoot}/resources/calAddIcon.gif" width="13" height="13" alt="add a subscription or folder" border="0"/> 4476 4440 </a> 4477 4441 </xsl:if> 4478 4442 <xsl:if test="calendar"> 4479 4443 <ul> 4480 <xsl:apply-templates select="calendar[ number(calType) = 0 or number(calType) > 6]" mode="listForUpdateSubscription">4444 <xsl:apply-templates select="calendar[isSubscription = 'true']" mode="listForUpdateSubscription"> 4481 4445 <!--<xsl:sort select="title" order="ascending" case-order="upper-first"/>--></xsl:apply-templates> 4482 4446 </ul> … … 5018 4982 </td> 5019 4983 </tr> 4984 <tr> 4985 <th>Super Users:</th> 4986 <td> 4987 <xsl:variable name="rootUsers" select="/bedework/system/rootUsers"/> 4988 <input value="{$rootUsers}" name="rootUsers" class="wide"/> 4989 <div class="desc"> 4990 Comma separated list of super users. No spaces. 4991 </div> 4992 </td> 4993 </tr> 5020 4994 <!--<tr> 5021 4995 <th>12 or 24 hour clock/time:</th> … … 5293 5267 </td> 5294 5268 </tr> 5295 <tr>5296 <th>Super Users:</th>5297 <td>5298 <xsl:variable name="rootUsers" select="/bedework/system/rootUsers"/>5299 <input value="{$rootUsers}" name="rootUsers" class="wide"/>5300 <div class="desc">5301 Comma separated list of super users. No spaces.5302 </div>5303 </td>5304 </tr>5305 5269 </table> 5306 5270 <table border="0" id="submitTable"> … … 5319 5283 <h2>Manage Calendar Suites</h2> 5320 5284 5321 <h4>Calendar suites:</h4>5322 5285 <p> 5323 5286 <input type="button" name="return" value="Add calendar suite" onclick="javascript:location.replace('{$calsuite-showAddForm}')"/> 5324 5287 </p> 5325 5288 5326 <ul> 5289 <table id="commonListTable"> 5290 <tr> 5291 <th>Name</th> 5292 <th>Associated Group</th> 5293 </tr> 5327 5294 <xsl:for-each select="calSuite"> 5328 <li> 5329 <xsl:variable name="name" select="name"/> 5330 <a href="{$calsuite-fetchForUpdate}&name={$name}"> 5331 <xsl:value-of select="name"/> 5332 </a> 5333 </li> 5295 <tr> 5296 <td> 5297 <xsl:variable name="name" select="name"/> 5298 <a href="{$calsuite-fetchForUpdate}&name={$name}"> 5299 <xsl:value-of select="name"/> 5300 </a> 5301 </td> 5302 <td> 5303 <xsl:value-of select="group"/> 5304 </td> 5305 </tr> 5334 5306 </xsl:for-each> 5335 </ ul>5307 </table> 5336 5308 5337 5309 </xsl:template> … … 5340 5312 <h2>Add Calendar Suite</h2> 5341 5313 <form name="calSuiteForm" action="{$calsuite-add}" method="post"> 5314 <input type="hidden" name="calPath" value="/public" size="20"/> 5342 5315 <table class="eventFormTable"> 5343 5316 <tr> 5344 5317 <th>Name:</th> 5345 5318 <td> 5346 <input name="name" size="20"/>5319 <input type="text" name="name" size="20"/> 5347 5320 </td> 5348 5321 <td> … … 5353 5326 <th>Group:</th> 5354 5327 <td> 5355 <input name="groupName" size="20"/>5328 <input type="text" name="groupName" size="20"/> 5356 5329 </td> 5357 5330 <td> 5358 5331 Name of admin group which contains event administrators and event owner to which preferences for the suite are attached 5359 </td>5360 </tr>5361 <tr>5362 <th>Root calendar:</th>5363 <td>5364 <input name="calPath" size="20"/>5365 </td>5366 <td>5367 Path of root calendar (not required if suite only consists of subscriptions and views)5368 5332 </td> 5369 5333 </tr> … … 5384 5348 <xsl:variable name="calSuiteName" select="name"/> 5385 5349 <form name="calSuiteForm" action="{$calsuite-update}" method="post"> 5350 <input type="hidden" name="calPath" size="20"> 5351 <xsl:attribute name="value"><xsl:variable name="calPath" select="calPath"/></xsl:attribute> 5352 </input> 5386 5353 <table class="eventFormTable"> 5387 5354 <tr> … … 5402 5369 <td> 5403 5370 Name of admin group which contains event administrators and event owner to which preferences for the suite are attached 5404 </td>5405 </tr>5406 <tr>5407 <th>Root calendar:</th>5408 <td>5409 <xsl:variable name="calPath" select="calPath"/>5410 <input name="calPath" value="{$calPath}" size="20"/>5411 </td>5412 <td>5413 Path of root calendar (not required if suite only consists of subscriptions and views)5414 5371 </td> 5415 5372 </tr> … … 5446 5403 </form> 5447 5404 </div> 5448 5449 <!--<div id="sharingBox">5450 <xsl:variable name="calPath" select="path"/>5451 <xsl:variable name="encodedCalPath" select="encodedPath"/>5452 <xsl:if test="currentAccess/current-user-privilege-set/privilege/read-acl or /bedework/userInfo/superUser='true'">5453 <h3>Manage suite administrators</h3>5454 <table class="common" id="sharing">5455 <tr>5456 <th class="commonHeader">Who:</th>5457 <th class="commonHeader">Current access:</th>5458 <th class="commonHeader">Source:</th>5459 </tr>5460 <xsl:for-each select="acl/ace">5461 <xsl:variable name="who">5462 <xsl:choose>5463 <xsl:when test="invert">5464 <xsl:choose>5465 <xsl:when test="invert/principal/href"><xsl:value-of select="normalize-space(invert/principal/href)"/></xsl:when>5466 <xsl:when test="invert/principal/property"><xsl:value-of select="name(invert/principal/property/*)"/></xsl:when>5467 <xsl:otherwise><xsl:value-of select="name(invert/principal/*)"/></xsl:otherwise>5468 </xsl:choose>5469 </xsl:when>5470 <xsl:otherwise>5471 <xsl:choose>5472 <xsl:when test="principal/href"><xsl:value-of select="normalize-space(principal/href)"/></xsl:when>5473 <xsl:when test="principal/property"><xsl:value-of select="name(principal/property/*)"/></xsl:when>5474 <xsl:otherwise><xsl:value-of select="name(principal/*)"/></xsl:otherwise>5475 </xsl:choose>5476 </xsl:otherwise>5477 </xsl:choose>5478 </xsl:variable>5479 <tr>5480 <th class="thin">5481 <xsl:if test="invert">5482 Not5483 </xsl:if>5484 <xsl:choose>5485 <xsl:when test="contains($who,/bedework/syspars/userPrincipalRoot)">5486 <img src="{$resourcesRoot}/resources/userIcon.gif" width="13" height="13" border="0" alt="user"/>5487 <xsl:value-of select="substring-after(substring-after($who,normalize-space(/bedework/syspars/userPrincipalRoot)),'/')"/>5488 </xsl:when>5489 <xsl:when test="contains($who,/bedework/syspars/groupPrincipalRoot)">5490 <img src="{$resourcesRoot}/resources/groupIcon.gif" width="13" height="13" border="0" alt="group"/>5491 <xsl:value-of select="substring-after(substring-after($who,normalize-space(/bedework/syspars/groupPrincipalRoot)),'/')"/>5492 </xsl:when>5493 <xsl:when test="invert and $who='owner'">5494 <xsl:value-of select="$who"/> (other)5495 </xsl:when>5496 <xsl:otherwise>5497 <xsl:value-of select="$who"/>5498 </xsl:otherwise>5499 </xsl:choose>5500 </th>5501 <td>5502 <xsl:for-each select="grant/privilege/node()">5503 <xsl:value-of select="name(.)"/>  5504 </xsl:for-each>5505 <xsl:for-each select="deny/privilege/node()">5506 <xsl:choose>5507 <xsl:when test="name(.)='all'">5508 none5509 </xsl:when>5510 <xsl:otherwise>5511 deny-<xsl:value-of select="name(.)"/>5512 </xsl:otherwise>5513 </xsl:choose>5514   5515 </xsl:for-each>5516 </td>5517 <td>5518 <xsl:choose>5519 <xsl:when test="inherited">5520 inherited from:5521 <a>5522 <xsl:attribute name="href"><xsl:value-of select="$calendar-fetchForUpdate"/>&calPath=<xsl:value-of select="inherited/href"/></xsl:attribute>5523 <xsl:value-of select="inherited/href"/>5524 </a>5525 </xsl:when>5526 <xsl:otherwise>5527 local:5528 <xsl:variable name="whoType">5529 <xsl:choose>5530 <xsl:when test="contains($who,/bedework/syspars/userPrincipalRoot)">user</xsl:when>5531 <xsl:when test="contains($who,/bedework/syspars/groupPrincipalRoot)">group</xsl:when>5532 <xsl:when test="$who='authenticated'">auth</xsl:when>5533 <xsl:when test="$who='unauthenticated'">unauth</xsl:when>5534 <xsl:when test="invert/principal/property/owner">other</xsl:when>5535 <xsl:when test="principal/property"><xsl:value-of select="name(principal/property/*)"/></xsl:when>5536 <xsl:when test="invert/principal/property"><xsl:value-of select="name(invert/principal/property/*)"/></xsl:when>5537 <xsl:otherwise></xsl:otherwise>5538 </xsl:choose>5539 </xsl:variable>5540 <xsl:variable name="shortWho">5541 <xsl:choose>5542 <xsl:when test="contains($who,/bedework/syspars/userPrincipalRoot)"><xsl:value-of select="substring-after(substring-after($who,normalize-space(/bedework/syspars/userPrincipalRoot)),'/')"/></xsl:when>5543 <xsl:when test="contains($who,/bedework/syspars/groupPrincipalRoot)"><xsl:value-of select="substring-after(substring-after($who,normalize-space(/bedework/syspars/groupPrincipalRoot)),'/')"/></xsl:when>5544 <xsl:otherwise></xsl:otherwise>5545 </xsl:choose>5546 </xsl:variable>5547 <xsl:choose>5548 <xsl:when test="invert">5549 <a href="{$calsuite-setAccess}&calSuiteName={$calSuiteName}&how=default&who={$shortWho}&whoType={$whoType}&notWho=yes">5550 reset to default5551 </a>5552 </xsl:when>5553 <xsl:otherwise>5554 <a href="{$calsuite-setAccess}&calSuiteName={$calSuiteName}&how=default&who={$shortWho}&whoType={$whoType}">5555 reset to default5556 </a>5557 </xsl:otherwise>5558 </xsl:choose>5559 </xsl:otherwise>5560 </xsl:choose>5561 </td>5562 </tr>5563 </xsl:for-each>5564 </table>5565 </xsl:if>5566 5567 <xsl:if test="currentAccess/current-user-privilege-set/privilege/write-acl or /bedework/userInfo/superUser='true'">5568 <form name="calsuiteShareForm" action="{$calsuite-setAccess}" id="shareForm" method="post">5569 <input type="hidden" name="calSuiteName" value="{$calSuiteName}"/>5570 <table cellspacing="0" id="shareFormTable" class="common">5571 <tr>5572 <th colspan="2" class="commonHeader">Set access:</th>5573 </tr>5574 <tr class="subhead">5575 <th>Who:</th>5576 <th>Rights:</th>5577 </tr>5578 <tr>5579 <td>5580 <input type="text" name="who" size="20"/>5581 <br/>5582 <input type="radio" value="user" name="whoType" checked="checked"/> user5583 <input type="radio" value="group" name="whoType"/> group5584 <p>OR</p>5585 <p>5586 <input type="radio" value="auth" name="whoType"/> all authorized users<br/>5587 <input type="radio" value="other" name="whoType"/> other users<br/>5588 <input type="radio" value="owner" name="whoType"/> owner5589 </p>5590 <p class="padTop">5591 <input type="checkbox" value="yes" name="notWho"/> invert (deny)5592 </p>5593 </td>5594 <td>5595 <ul id="howList">5596 <li>5597 <input type="radio" value="A" name="how"/>5598 <strong>All</strong> (read, write, delete)</li>5599 <li class="padTop">5600 <input type="radio" value="R" name="how"/>5601 <strong>Read</strong> (content, access, freebusy)5602 </li>5603 <li>5604 <input type="radio" value="f" name="how"/> Read freebusy only5605 </li>5606 <li class="padTop">5607 <input type="radio" value="Rc" name="how" checked="checked"/>5608 <strong>Read</strong> and <strong>Write content only</strong>5609 </li>5610 <li class="padTop">5611 <input type="radio" value="W" name="how"/>5612 <strong>Write and delete</strong> (content, access, properties)5613 </li>5614 <li>5615 <input type="radio" value="c" name="how"/> Write content only5616 </li>5617 <li>5618 <input type="radio" value="u" name="how"/> Delete only5619 </li>5620 <li class="padTop">5621 <input type="radio" value="N" name="how"/>5622 <strong>None</strong>5623 </li>5624 </ul>5625 </td>5626 </tr>5627 </table>5628 <input type="submit" name="submit" value="Submit"/>5629 </form>5630 </xsl:if>5631 </div>-->5632 5405 </xsl:template> 5633 5406 … … 6176 5949 <xsl:for-each select="/bedework/adminGroup/members/member"> 6177 5950 <xsl:choose> 6178 <xsl:when test="kind=' 0'"><!-- kind = user -->5951 <xsl:when test="kind='1'"><!-- kind = user --> 6179 5952 <tr> 6180 5953 <td>
