Changeset 11023 for main


Ignore:
Timestamp:
31 Jan 2014, 18:19:16 (11 years ago)
Author:
Henrik Bettermann
Message:

Make 'My Data' dropdown menu work.

Location:
main/waeup.kofa/branches/uli-diazo-themed
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-diazo-themed/layout/theme.html

    r11022 r11023  
    5151          <li><a href="#contact">Students</a></li>
    5252          <li><a href="#contact">Hostels</a></li>
     53          <li class="dropdown">
     54            <a href="#" class="dropdown-toggle"
     55               data-toggle="dropdown">My Data
     56               <b class="caret"></b>
     57            <ul class="dropdown-menu">
     58              <li><a href="#">Base Data</a></li>
     59              <li><a href="#">Clearance Data</a></li>
     60              <li><a href="#">Personal Data</a></li>
     61              <li><a href="#">History</a></li>
     62            </ul>
     63          </li>
    5364        </ul>
    5465
     
    6172               <img src="static/img/earth.png" />
    6273            <ul class="dropdown-menu">
    63               <li class="kofa-language"><a href="#">en</a></li>
    64               <li class="kofa-language"><a href="#">fr</a></li>
    65               <li class="kofa-language"><a href="#">de</a></li>
    66               <li class="kofa-language"><a href="#">ha</a></li>
    67               <li class="kofa-language"><a href="#">yo</a></li>
    68               <li class="kofa-language"><a href="#">ig</a></li>
     74              <li class="kofa-language"><a href="#">English</a></li>
     75              <li class="kofa-language"><a href="#">Français</a></li>
     76              <li class="kofa-language"><a href="#">Deutsch</a></li>
     77              <li class="kofa-language"><a href="#">Hausa</a></li>
     78              <li class="kofa-language"><a href="#">Yoruba</a></li>
     79              <li class="kofa-language"><a href="#">Igbo</a></li>
    6980            </ul>
    7081          </li>
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/browser_templates/mydatadropdowntabs.pt

    r7738 r11023  
    1 <li tal:attributes="class viewlet/active" data-dropdown="dropdown" >
     1<li  tal:attributes="class viewlet/active">
    22  <a href="#" class="dropdown-toggle"
    3     tal:content="viewlet/tab_title">Tab Title</a>
     3     data-toggle="dropdown">
     4     <span tal:replace="viewlet/tab_title">My Data</span>
     5     <b class="caret"></b>
     6  </a>
    47  <ul class="dropdown-menu">
    58    <li tal:repeat="target viewlet/targets">
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/tests/test_browser.py

    r11001 r11023  
    19581958        # We are logged in as student and can see the 'My Data' tab
    19591959        self.assertMatches(
    1960             '...<a href="#" class="dropdown-toggle">My Data</a>...',
     1960            '...<a href="#" class="dropdown-toggle" data-toggle="dropdown">...',
     1961            self.browser.contents)
     1962        self.assertMatches(
     1963            '...My Data...',
    19611964            self.browser.contents)
    19621965        self.browser.getLink("Logout").click()
Note: See TracChangeset for help on using the changeset viewer.