Ignore:
Timestamp:
24 Mar 2015, 12:45:18 (10 years ago)
Author:
Henrik Bettermann
Message:

Fix template and add test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/paymentspage.pt

    r12809 r12825  
    1010    <th i18n:translate="">Currency</th>
    1111    <th i18n:translate="">State</th>
    12     <th i18n:translate="">Contract</th>
     12    <th i18n:translate="">Title</th>
    1313  </tr>
    1414  </thead>
    1515  <tbody>
    1616    <tr tal:repeat="value view/payments">
    17       <td tal:content="python: value[0].payment_id[:9]">PAYMENT_ID</td>
    18       <td tal:content="python: layout.formatDatetime(value[0].creation_date)">CREATION DATE</td>
    19       <td tal:content="python: layout.formatDatetime(value[0].payment_date)">PAYMENT DATE</td>
    20       <td tal:content="python: view.gateway_services[value[0].gateway_service].title">SERVICE</td>
    21       <td tal:content="python: value[0].amount">AMOUNT</td>
    22       <td tal:content="python: value[0].currency">CURRENCY</td>
    23       <td tal:content="python: view.payment_states.getTerm(value[0].state).title">STATE</td>
    24       <td>
    25         <span tal:condition="python: value[1] is not None">
    26           <a tal:attributes="href python: view.url(value[2])">
    27             <span tal:content="python: value[1].title">PAYABLETITLE</span>
    28           </a>
    29         </span>
    30       </td>
     17      <td tal:content="python: value.payment_id[:9]">PAYMENT_ID</td>
     18      <td tal:content="python: layout.formatDatetime(value.creation_date)">CREATION DATE</td>
     19      <td tal:content="python: layout.formatDatetime(value.payment_date)">PAYMENT DATE</td>
     20      <td tal:content="python: view.gateway_services[value.gateway_service].title">SERVICE</td>
     21      <td tal:content="python: value.amount">AMOUNT</td>
     22      <td tal:content="python: value.currency">CURRENCY</td>
     23      <td tal:content="python: view.payment_states.getTerm(value.state).title">STATE</td>
     24      <td tal:content="python: value.title">TITLE</td>
    3125    </tr>
    3226  </tbody>
Note: See TracChangeset for help on using the changeset viewer.