Ignore:
Timestamp:
3 Dec 2011, 05:09:21 (13 years ago)
Author:
Henrik Bettermann
Message:

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

Location:
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/accommodationmanagepage.pt

    r7240 r7254  
    3434        <td> <a tal:attributes="href cl/__name__">
    3535        <span tal:content="python: cl.getSessionString()">PID</span></a></td>
    36         <td tal:content="python: view.formatDatetime(cl.booking_date)">DATE</td>
     36        <td tal:content="python: layout.formatDatetime(cl.booking_date)">DATE</td>
    3737        <td tal:content="cl/bed_coordinates">COORDINATES</td>
    3838        <td tal:content="cl/bed_type">TYPE</td>
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/paymentsmanagepage.pt

    r6940 r7254  
    3737        <td> <a tal:attributes="href cl/__name__">
    3838        <span tal:content="cl/p_id">PID</span></a></td>
    39         <td tal:content="python: view.formatDatetime(cl.creation_date)">CREATION DATE</td>
    40         <td tal:content="python: view.formatDatetime(cl.payment_date)">PAYMENT DATE</td>
     39        <td tal:content="python: layout.formatDatetime(cl.creation_date)">CREATION DATE</td>
     40        <td tal:content="python: layout.formatDatetime(cl.payment_date)">PAYMENT DATE</td>
    4141      <td tal:content ="cl/category">CATEGORY</td>
    4242      <td tal:content ="cl/p_item">ITEM</td>
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/paymentspage.pt

    r6869 r7254  
    1919      <td> <a tal:attributes="href value/__name__">
    2020      <span tal:content="value/p_id">PID</span></a></td>
    21       <td tal:content="python: view.formatDatetime(value.creation_date)">CREATION DATE</td>
    22       <td tal:content="python: view.formatDatetime(value.payment_date)">PAYMENT DATE</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>
    2323      <td tal:content ="value/category">CATEGORY</td>
    2424      <td tal:content ="value/p_item">ITEM</td>
Note: See TracChangeset for help on using the changeset viewer.