Changeset 2033

Show
Ignore:
Timestamp:
01/26/09 13:19:59
Author:
johnsa
Message:

caladmin: expose calsuite subscriptions for use in the event form.

Files:

Legend:

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

    r2032 r2033  
    656656        <td> 
    657657          <a href="{$contact-initUpdate}"> 
    658             <img src="{$resourcesRoot}/resources/bwAdminManageContactsIcon.jpg" width="100" height="73" alt="Manage Events" border="0"/> 
     658            <img src="{$resourcesRoot}/resources/bwAdminManageContactsIcon.jpg" width="100" height="73" alt="Manage Contacts" border="0"/> 
    659659            <br/>Manage Contacts 
    660660          </a> 
     
    662662        <td> 
    663663          <a href="{$location-initUpdate}"> 
    664             <img src="{$resourcesRoot}/resources/bwAdminManageLocsIcon.jpg" width="100" height="73" alt="Manage Events" border="0"/> 
     664            <img src="{$resourcesRoot}/resources/bwAdminManageLocsIcon.jpg" width="100" height="73" alt="Manage Locations" border="0"/> 
    665665            <br/>Manage Locations 
    666666          </a> 
     
    671671        <td> 
    672672          <a href="{$category-initUpdate}"> 
    673             <img src="{$resourcesRoot}/resources/bwAdminManageCatsIcon.jpg" width="100" height="73" alt="Manage Events" border="0"/> 
     673            <img src="{$resourcesRoot}/resources/bwAdminManageCatsIcon.jpg" width="100" height="73" alt="Manage Categories" border="0"/> 
    674674            <br/>Manage Categories 
    675675          </a> 
     
    877877        <th>Start</th> 
    878878        <th>End</th> 
    879         <xsl:choose> 
    880           <xsl:when test="$pending = 'true'"> 
    881             <th>Categories</th> 
    882           </xsl:when> 
    883           <xsl:otherwise> 
    884             <th>Calendar</th> 
    885           </xsl:otherwise> 
    886         </xsl:choose> 
     879        <th>Categories</th> 
     880        <th>Calendar</th> 
    887881        <th>Description</th> 
    888882      </tr> 
     
    933927          </td> 
    934928          <td class="calcat"> 
    935             <xsl:choose> 
    936               <xsl:when test="$pending = 'true'"> 
    937                 <xsl:for-each select="categories/category"> 
    938                   <xsl:value-of select="word"/><br/> 
    939                 </xsl:for-each> 
    940               </xsl:when> 
    941               <xsl:otherwise> 
    942                 <xsl:value-of select="calendar/name"/> 
    943               </xsl:otherwise> 
    944             </xsl:choose> 
     929            <xsl:for-each select="categories/category"> 
     930              <xsl:value-of select="word"/><br/> 
     931            </xsl:for-each> 
     932          </td> 
     933          <td> 
     934            <xsl:value-of select="calendar/name"/> 
    945935          </td> 
    946936          <td> 
     
    22142204          </td> 
    22152205          <td> 
    2216             <xsl:for-each select="true"> 
    2217               <input type="checkbox" name="alias" value=""/>Test<br/> 
    2218             </xsl:for-each> 
     2206            <ul class="calendarTree"> 
     2207              <xsl:apply-templates select="form/subscriptions/calsuite/calendars/calendar" mode="showEventFormAliases"> 
     2208                <xsl:with-param name="root">true</xsl:with-param> 
     2209              </xsl:apply-templates> 
     2210            </ul> 
    22192211          </td> 
    22202212        </tr> 
     
    23802372      </xsl:if> 
    23812373    </form> 
     2374  </xsl:template> 
     2375 
     2376  <xsl:template match="calendar" mode="showEventFormAliases"> 
     2377    <xsl:param name="root">false</xsl:param> 
     2378    <li> 
     2379      <xsl:attribute name="class"> 
     2380        <xsl:choose> 
     2381          <xsl:when test="calType = 0">folder</xsl:when> 
     2382          <xsl:otherwise>calendar</xsl:otherwise> 
     2383        </xsl:choose> 
     2384      </xsl:attribute> 
     2385 
     2386      <xsl:choose> 
     2387        <xsl:when test="$root = 'true'"> 
     2388          <!-- treat the root calendar as the root of calendar suite; --> 
     2389          <strong> 
     2390            <xsl:value-of select="/bedework/currentCalSuite/name"/> 
     2391          </strong> 
     2392        </xsl:when> 
     2393        <xsl:otherwise> 
     2394          <input type="checkbox" name="alias"> 
     2395            <xsl:attribute name="value"><xsl:value-of select="calPath"/></xsl:attribute> 
     2396          </input> 
     2397          <xsl:value-of select="name"/> 
     2398        </xsl:otherwise> 
     2399      </xsl:choose> 
     2400 
     2401      <xsl:if test="calendar"> 
     2402        <ul> 
     2403          <xsl:apply-templates select="calendar[isSubscription = 'true' or calType = '0']" mode="showEventFormAliases"/> 
     2404        </ul> 
     2405      </xsl:if> 
     2406    </li> 
    23822407  </xsl:template> 
    23832408 
     
    51625187 
    51635188    <p> 
    5164       <input type="button" name="return" value="Add calendar suite" onclick="javascript:location.replace('{$calsuite-showAddForm}')"/> 
     5189      <input type="button" name="addSuite" value="Add calendar suite" onclick="javascript:location.replace('{$calsuite-showAddForm}')"/> 
     5190      <input type="button" name="switchGroup" value="Switch group" onclick="javascript:location.replace('{$admingroup-switch}')"/> 
    51655191    </p> 
    51665192