source: main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/paymentspage.pt @ 7336

Last change on this file since 7336 was 7254, checked in by Henrik Bettermann, 13 years ago

Define formatDatetime (for displaying datetime objects in data tables) centrally in layout.py.

File size: 830 bytes
Line 
1<h2 tal:content="view/label">TITLE</h2>
2
3<table class="zebra">
4<thead>
5</thead>
6<table class="display dataTable">
7  <thead>
8    <tr>
9      <th>Payment Id</th>
10      <th>Creation Date</th>
11      <th>Payment Date</th>
12      <th>Category</th>
13      <th>Item</th>
14      <th>State</th>
15    </tr>
16  </thead>
17  <tbody>
18    <tr tal:repeat="value context/values">
19      <td> <a tal:attributes="href value/__name__">
20      <span tal:content="value/p_id">PID</span></a></td>
21      <td tal:content="python: layout.formatDatetime(value.creation_date)">CREATION DATE</td>
22      <td tal:content="python: layout.formatDatetime(value.payment_date)">PAYMENT DATE</td>
23      <td tal:content ="value/category">CATEGORY</td>
24      <td tal:content ="value/p_item">ITEM</td>
25      <td tal:content ="value/state">STATE</td>
26    </tr>
27  </tbody>
28</table>
Note: See TracBrowser for help on using the repository browser.