Ignore:
Timestamp:
9 Jun 2009, 10:07:55 (15 years ago)
Author:
uli
Message:

Improve facultycontainer overview.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/university/facultycontainer_templates/content.pt

    r4144 r4234  
    66  </div>
    77
    8   <ul>
    9     <li tal:repeat="fac context/values">
    10       <a href="."
    11          tal:content="fac/title"
    12          tal:attributes="href python:view.url(fac)">
    13         Faculty Name
    14       </a>
    15     </li>
    16   </ul>
    17 
    18   <div>
    19     <form method="POST"
    20           tal:attributes="action string:add">
    21       <input type="submit" name="addfaculty" value="Add" />
    22     </form>
    23   </div>
     8  <table tal:condition="python: len(context.keys())">
     9    <tr tal:repeat="fac context/values">
     10      <td>
     11        <a href="."
     12           tal:content="fac/code"
     13           tal:attributes="href python:view.url(fac)">
     14          FacultyCode
     15        </a>
     16      </td>
     17      <td>
     18        <a href="."
     19           tal:content="fac/title"
     20           tal:attributes="href python:view.url(fac)">
     21          Faculty Name
     22        </a>
     23      </td>
     24    </tr>
     25  </table>
Note: See TracChangeset for help on using the changeset viewer.