Changeset 2032

Show
Ignore:
Timestamp:
01/23/09 17:02:49
Author:
johnsa
Message:

admin client:
- prepare the way for new category selection process
- hide category management from admins
- update some UI features

Files:

Legend:

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

    r2015 r2032  
    933933} 
    934934li.folder { 
    935   list-style-image: url(../../resources/catIcon.gif); 
     935  list-style-image: url("../../resources/catIcon.gif"); 
    936936} 
    937937li.calendar { 
    938   list-style-image: url(../../resources/calIcon-sm.gif); 
     938  list-style-image: url("../../resources/calIcon-sm.gif"); 
     939
     940li.categories { 
     941  list-style-image: url("../../resources/categoryIcon.gif"); 
     942
     943li.calsuites { 
     944  list-style-image: url("../../resources/calsuitesIcon.gif"); 
     945
     946li.upload { 
     947  list-style-image: url("../../resources/uploadIcon.gif"); 
     948
     949li.prefs { 
     950  list-style-image: url("../../resources/prefsIcon.gif"); 
     951
     952li.timezones { 
     953  list-style-image: url("../../resources/clockIcon-sm.gif"); 
     954
     955li.groups { 
     956  list-style-image: url("../../resources/groupIcon.gif"); 
     957
     958li.user { 
     959  list-style-image: url("../../resources/userIcon.gif"); 
     960
     961li.changeGroup { 
     962  list-style-image: url("../../resources/changeGroup.gif"); 
    939963} 
    940964.calendarTree  li.trash { 
    941   list-style-image: url(../../resources/trashIcon.gif); 
     965  list-style-image: url("../../resources/trashIcon.gif"); 
    942966} 
    943967.calendarTree  li.inbox { 
    944   list-style-image: url(../../resources/inboxIcon.gif); 
     968  list-style-image: url("../../resources/inboxIcon.gif"); 
    945969} 
    946970.calendarTree  li.outbox { 
    947   list-style-image: url(../../resources/outboxIcon.gif); 
     971  list-style-image: url("../../resources/outboxIcon.gif"); 
    948972} 
    949973.calendarTree  li.deleted { 
    950   list-style-image: url(../../resources/calIconDeleted-sm.gif); 
     974  list-style-image: url("../../resources/calIconDeleted-sm.gif"); 
    951975} 
    952976.calendarTree  li.selected { 
    953   list-style-image: url(../../resources/glassFill-icon-view.gif); 
     977  list-style-image: url("../../resources/glassFill-icon-view.gif"); 
    954978  font-weight: bold; 
    955979} 
    956980.calendarTree  li.alias { 
    957   list-style-image: url(../../resources/calIconAlias-sm.gif); 
     981  list-style-image: url("../../resources/calIconAlias-sm.gif"); 
    958982  font-style: italic; 
    959983  margin-left: 0; 
     
    961985} 
    962986.calendarTree  li.aliasFolder { 
    963   list-style-image: url(../../resources/catIconAlias.gif); 
     987  list-style-image: url("../../resources/catIconAlias.gif"); 
    964988  font-style: italic; 
    965989  margin-left: 0; 
  • trunk/deployment/webadmin/webapp/resources/default/default/default.xsl

    r2031 r2032  
    637637          </a> 
    638638        </td> 
     639        <!-- 
     640          Category management is becomeing a  super-user and calsuite admin feature; 
     641          Categories underly much of the new single calendar and filtering model. 
    639642        <td> 
    640643          <a id="addCategoryLink" href="{$category-initAdd}"> 
     
    642645            <br/>Add Category 
    643646          </a> 
    644         </td> 
     647        </td> --> 
    645648      </tr> 
    646649      <tr> 
     
    663666          </a> 
    664667        </td> 
     668        <!-- 
     669          Category management is becomeing a super-user and calsuite admin feature; 
     670          Categories underly much of the new single calendar and filtering model. 
    665671        <td> 
    666672          <a href="{$category-initUpdate}"> 
     
    668674            <br/>Manage Categories 
    669675          </a> 
    670         </td> 
     676        </td> --> 
    671677      </tr> 
    672678    </table> 
    673679 
    674     <!-- 
    675     <h2 class="menuTitle">Main Menu</h2> 
    676     <table id="mainMenuTable"> 
    677       <tr> 
    678         <th>Events</th> 
    679         <td> 
    680           <a id="addEventLink" href="{$event-initAddEvent}"> 
    681             Add 
    682           </a> 
    683         </td> 
    684         <td> 
    685           <a href="{$event-initUpdateEvent}"> 
    686             Edit / Delete 
    687           </a> 
    688         </td> 
    689         <!- - 
    690         Disable direct selection by ID; we'll need to find another way 
    691         of quickly getting to events: search and grid views should be implemented. - - > 
    692         <!- - 
    693         <td> 
    694           Event ID: 
    695           <xsl:copy-of select="/bedework/formElements/*"/> 
    696         </td>- - > 
    697       </tr> 
    698       <tr> 
    699         <th>Contacts</th> 
    700         <td> 
    701           <a id="addContactLink" href="{$contact-initAdd}"> 
    702             Add 
    703           </a> 
    704         </td> 
    705         <td> 
    706           <a href="{$contact-initUpdate}"> 
    707             Edit / Delete 
    708           </a> 
    709         </td> 
    710       </tr> 
    711       <tr> 
    712         <th>Locations</th> 
    713         <td> 
    714           <a id="addLocationLink" href="{$location-initAdd}"> 
    715             Add 
    716           </a> 
    717         </td> 
    718         <td> 
    719           <a href="{$location-initUpdate}"> 
    720             Edit / Delete 
    721           </a> 
    722         </td> 
    723       </tr> 
    724       <tr> 
    725         <th>Categories</th> 
    726         <td> 
    727           <a id="addCategoryLink" href="{$category-initAdd}"> 
    728             Add 
    729           </a> 
    730         </td> 
    731         <td> 
    732           <a href="{$category-initUpdate}"> 
    733             Edit / Delete 
    734           </a> 
    735         </td> 
    736       </tr> 
    737     </table> 
    738     --> 
    739680    <div id="mainMenuEventSearch"> 
    740681      <h4 class="menuTitle">Event search:</h4> 
     
    813754        </xsl:if--> 
    814755        <xsl:if test="/bedework/userInfo/adminGroupMaintOk='true'"> 
    815           <li
     756          <li class="groups"
    816757            <a href="{$admingroup-initUpdate}"> 
    817758              Manage admin groups 
     
    819760          </li> 
    820761        </xsl:if> 
    821         <li
     762        <li class="changeGroup"
    822763          <a href="{$admingroup-switch}"> 
    823764            Change group... 
     
    825766        </li> 
    826767        <xsl:if test="/bedework/userInfo/userMaintOK='true'"> 
    827           <li
     768          <li class="user"
    828769            <form action="{$prefs-fetchForUpdate}" method="post"> 
    829770              Edit user preferences (enter userid):<br/> 
     
    842783      <h2>Manage System</h2> 
    843784      <ul class="adminMenu strong"> 
    844         <li
     785        <li class="calendar"
    845786          <a href="{$calendar-fetch}"> 
    846787            Manage calendars 
    847788          </a> 
    848789        </li> 
    849         <li> 
     790        <li class="categories"> 
     791          <a href="{$category-initUpdate}"> 
     792            Manage categories 
     793          </a> 
     794        </li> 
     795        <li class="calsuites"> 
    850796          <a href="{$calsuite-fetch}"> 
    851797            Manage calendar suites 
    852798          </a> 
    853799        </li> 
    854         <li
     800        <li class="upload"
    855801          <a href="{$event-initUpload}"> 
    856             Upload iCAL file 
     802            Upload ical file 
    857803          </a> 
    858804        </li> 
    859805      </ul> 
    860806      <ul class="adminMenu"> 
    861         <li> 
    862           <a href="{$filter-showAddForm}"> 
    863             Manage CalDAV filters 
    864           </a> 
    865         </li> 
    866       </ul> 
    867       <ul class="adminMenu"> 
    868         <li> 
     807        <li class="prefs"> 
    869808          <a href="{$system-fetch}"> 
    870809            Manage system preferences 
    871810          </a> 
    872811        </li> 
    873         <li
     812        <li class="timezones"
    874813          <a href="{$timezones-initUpload}"> 
    875814            Manage system timezones 
     
    892831            </li> 
    893832          </ul> 
     833        </li> 
     834      </ul> 
     835      <ul class="adminMenu"> 
     836        <li> 
     837          <a href="{$filter-showAddForm}"> 
     838            Manage CalDAV filters 
     839          </a> 
    894840        </li> 
    895841      </ul> 
     
    10831029          </td> 
    10841030        </tr> 
     1031        <!-- Disabling calendar selection is temporary - but we must determine if we're using 
     1032             a single calendar model (e.g. excluding submissions calendar, etc). The following value should *not* be 
     1033             hard coded, but we'll do this for the moment. --> 
     1034        <input type="hidden" name="newCalPath" value="/public/cals/MainCal"/> 
     1035        <!-- 
    10851036        <xsl:if test="not(starts-with(form/calendar/path,$submissionsRootUnencoded))"> 
    10861037          <tr> 
     
    10931044            <td> 
    10941045              <xsl:if test="form/calendar/preferred/select/option"> 
    1095                 <!-- Display the preferred calendars by default if they exist --> 
     1046                -  - Display the preferred calendars by default if they exist - - 
    10961047                <select name="bwPreferredCalendars" id="bwPreferredCalendars" onchange="this.form.newCalPath.value = this.value"> 
    10971048                  <option value=""> 
     
    11151066                </select> 
    11161067              </xsl:if> 
    1117               <!-- hide the listing of all calendars if preferred calendars exist, otherwise show them --> 
     1068              - - hide the listing of all calendars if preferred calendars exist, otherwise show them - - 
    11181069              <select name="bwAllCalendars" id="bwAllCalendars" onchange="this.form.newCalPath.value = this.value;"> 
    11191070                <xsl:if test="form/calendar/preferred/select/option"> 
     
    11401091              </select> 
    11411092              <xsl:text> </xsl:text> 
    1142               <!-- allow for toggling between the preferred and all calendars listings if preferred 
    1143                    calendars exist --> 
     1093              - - allow for toggling between the preferred and all calendars listings if preferred 
     1094                   calendars exist - - 
    11441095              <xsl:if test="form/calendar/preferred/select/option"> 
    11451096                <input type="radio" name="toggleCalendarLists" value="preferred" checked="checked" onclick="changeClass('bwPreferredCalendars','shown');changeClass('bwAllCalendars','invisible');this.form.newCalPath.value = this.form.bwPreferredCalendars.value;"/> 
     
    11541105            </td> 
    11551106          </tr> 
    1156         </xsl:if> 
     1107        </xsl:if> --> 
    11571108 
    11581109        <tr> 
     
    22552206        </tr> 
    22562207 
     2208        <!-- Display in  --> 
     2209        <!-- These are the subscriptions (aliases) where the events should show up. 
     2210             By selecting one or more of these, appropriate categories will be set on the event --> 
     2211        <tr> 
     2212          <td class="fieldName"> 
     2213            Display in: 
     2214          </td> 
     2215          <td> 
     2216            <xsl:for-each select="true"> 
     2217              <input type="checkbox" name="alias" value=""/>Test<br/> 
     2218            </xsl:for-each> 
     2219          </td> 
     2220        </tr> 
    22572221 
    22582222        <!--  Category  --> 
     2223        <!-- 
     2224          categories will no longer be directly set by the user; they are set 
     2225          by the back-end based on the subscriptions in the calendar suite. 
     2226          A user, therefore, tells the system where they want the event to 
     2227          show up, and the categories are set for them. --> 
     2228        <!-- 
    22592229        <tr> 
    22602230          <td class="fieldName"> 
     
    22702240                  <td> 
    22712241                    <xsl:for-each select="form/categories/preferred/category[position() &lt;= ceiling($catCount div 2)]"> 
    2272                       <!-- <xsl:sort select="keyword" order="ascending"/> --
     2242                      <xsl:sort select="keyword" order="ascending"/
    22732243                      <input type="checkbox" name="categoryKey"> 
    22742244                        <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> 
     
    22822252                  <td> 
    22832253                    <xsl:for-each select="form/categories/preferred/category[position() &gt; ceiling($catCount div 2)]"> 
    2284                       <!-- <xsl:sort select="keyword" order="ascending"/> --
     2254                      <xsl:sort select="keyword" order="ascending"/
    22852255                      <input type="checkbox" name="categoryKey"> 
    22862256                        <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> 
     
    23342304            </table> 
    23352305          </td> 
    2336         </tr> 
     2306        </tr> --> 
    23372307        <!-- note --> 
     2308        <!-- let's shut this off for now - needs rewriting if we keep it at all 
    23382309        <tr> 
    23392310          <td colspan="2" style="padding-top: 1em;"> 
     
    23532324            </span> 
    23542325          </td> 
    2355         </tr> 
     2326        </tr> --> 
    23562327 
    23572328        <xsl:if test="form/contact/name">