Ignore:
Timestamp:
18 May 2009, 12:31:40 (16 years ago)
Author:
uli
Message:

Move list of faculties to facultycontainer view.

Location:
waeup/branches/ulif-rewrite/src/waeup
Files:
2 edited

Legend:

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

    r4139 r4144  
    44    <span tal:content="context/name">Sample University</span>
    55  </h1>
    6 
    7   <h2>Your faculties:</h2>
    8 
    9   <ul>
    10     <li tal:repeat="fac context/faculties/values">
    11       <a href="."
    12          tal:content="fac/title"
    13          tal:attributes="href python:view.url(fac)">
    14         Faculty Name
    15       </a>
    16     </li>
    17   </ul>
    186
    197  <div>
  • waeup/branches/ulif-rewrite/src/waeup/university/facultycontainer_templates/content.pt

    r3879 r4144  
    1 <div tal:condition="python: not len(context.keys())">
    2   There are no faculties registered yet.
    3 </div>
    4 <div>
    5   <div tal:repeat="faculty viewlet/getFaculties">
    6     <a href=""
    7        tal:attributes="href faculty/id"
    8        tal:content="faculty/name">
    9        The Faculty Name
    10     </a>
     1  <h2>Registered faculties:</h2>
     2
     3
     4  <div tal:condition="python: not len(context.keys())">
     5    There are no faculties registered yet.
    116  </div>
    12 </div>
    13 <div>
    14   <form method="POST"
    15         tal:attributes="action string:add">
    16     <input type="submit" name="addfaculty" value="Add" />
    17   </form>
    18 </div>
     7
     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>
Note: See TracChangeset for help on using the changeset viewer.