Ignore:
Timestamp:
28 Jul 2009, 00:00:11 (15 years ago)
Author:
uli
Message:

Use YUI tabs to display contained tables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/university/department_templates/courselist.pt

    r4443 r4455  
    1   <h2>Registered Courses:</h2>
     1<script type="text/javascript">
     2  var tabView = new YAHOO.widget.TabView('table-tabs');
     3</script>
     4<div id="table-tabs" class="yui-navset">
     5  <ul class="yui-nav">
     6    <li class="selected"><a href="#tab1"><em>Courses</em></a></li>
     7    <li><a href="#tab2"><em>Certificates</em></a></li>
     8  </ul>             
     9  <div class="yui-content">
     10    <div id="tab1">
     11      <div>
    212
     13        <div name="thecoursetable"
     14             tal:condition="python: len(context.courses.keys())">
     15              <div tal:replace="structure viewlet/table/renderHTML" />
     16        </div>
    317
    4   <div tal:condition="python: not len(context.keys())">
    5     There are no courses registered yet.
    6   </div>
    7 
    8   <div name="thecoursetable" tal:condition="python: len(context.courses.keys())">
    9     <div tal:replace="structure viewlet/table/renderHTML" />
    10   </div>
     18      </div>
     19    </div>
     20    <div id="tab2"><p>Tab Two Content</p></div>
     21  </div>
     22</div>
Note: See TracChangeset for help on using the changeset viewer.