source: main/waeup.ikoba/trunk/src/waeup/ikoba/payments/browser_templates/containerpage.pt @ 14395

Last change on this file since 14395 was 12823, checked in by uli, 10 years ago

Return only payments (not also related objects) in search.

File size: 2.0 KB
Line 
1<form method="POST" i18n:domain="waeup.ikoba" class="form-inline">
2<br />
3  <div class="form-group">
4    <input class="btn btn-primary" type="submit" name="search"
5      tal:attributes="value view/search_button" />
6  </div>
7  <div class="form-group">
8    <select name="searchtype" class="form-control">
9      <option i18n:translate="" value="payment_id">with payment id</option>
10      <option i18n:translate="" value="payer_id">with payer id</option>
11      <option i18n:translate="" value="payable_id">with contract id</option>
12    </select>
13  </div>
14  <div class="form-group">
15    <input type="text" class="form-control" name="searchterm" />
16  </div>
17</form>
18<br />
19<div tal:condition="view/hitlist">
20  <h3 i18n:translate="">Search Results</h3>
21  <input type="hidden" name="old_searchterm"
22       tal:attributes="value view/searchterm" />
23  <input type="hidden" name="old_searchtype"
24       tal:attributes="value view/searchtype" />
25  <table class="ikoba-data-table dataTable">
26    <thead>
27    <tr>
28      <th i18n:translate="">Payment Id</th>
29      <th i18n:translate="">Creation Date</th>
30      <th i18n:translate="">Payment Date</th>
31      <th i18n:translate="">Service</th>
32      <th i18n:translate="">Amount</th>
33      <th i18n:translate="">Currency</th>
34      <th i18n:translate="">State</th>
35      <th i18n:translate="">Title</th>
36    </tr>
37    </thead>
38    <tbody>
39      <tr tal:repeat="value view/hitlist">
40        <td tal:content="python: value.payment_id[:9]">PAYMENT_ID</td>
41        <td tal:content="python: layout.formatDatetime(value.creation_date)">CREATION DATE</td>
42        <td tal:content="python: layout.formatDatetime(value.payment_date)">PAYMENT DATE</td>
43        <td tal:content="python: view.gateway_services[value.gateway_service].title">SERVICE</td>
44        <td tal:content="python: value.amount">AMOUNT</td>
45        <td tal:content="python: value.currency">CURRENCY</td>
46        <td tal:content="python: view.payment_states.getTerm(value.state).title">STATE</td>
47        <td tal:content="python: value.title">TITLE</td>
48
49      </tr>
50    </tbody>
51  </table>
52</div>
Note: See TracBrowser for help on using the repository browser.