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

Last change on this file since 12767 was 12762, checked in by Henrik Bettermann, 10 years ago

Add PaymentsContainerPage? to search for and list payments (work in progress, completely untested).

File size: 2.3 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="">Contract</th>
36    </tr>
37    </thead>
38    <tbody>
39      <tr tal:repeat="value view/hitlist">
40        <td><span tal:content="python: value[0].payment_id[:9]"></span>...</td>
41        <td tal:content="python: layout.formatDatetime(value[0].creation_date)">CREATION DATE</td>
42        <td tal:content="python: layout.formatDatetime(value[0].payment_date)">PAYMENT DATE</td>
43        <td tal:content="python: view.gateway_services[value[0].gateway_service].title">SERVICE</td>
44        <td tal:content="python: value[0].amount">AMOUNT</td>
45        <td tal:content="python: value[0].currency">CURRENCY</td>
46        <td tal:content="python: view.payment_states.getTerm(value[0].state).title">STATE</td>
47        <td>
48          <span tal:condition="python: value[1] is not None">
49            <a tal:attributes="href python: view.url(value[2])">
50              <span tal:content="python: value[1].title">PAYABLETITLE</span>
51            </a>
52          </span>
53        </td>
54      </tr>
55    </tbody>
56  </table>
57</div>
58
Note: See TracBrowser for help on using the repository browser.