source: main/waeup.ikoba/trunk/src/waeup/ikoba/payments/browser_templates/containermanagepage.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.7 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  <br />
18  <div tal:condition="view/hitlist">
19    <h3 i18n:translate="">Search Results</h3>
20    <input type="hidden" name="old_searchterm"
21         tal:attributes="value view/searchterm" />
22    <input type="hidden" name="old_searchtype"
23         tal:attributes="value view/searchtype" />
24
25    <br /><br />
26    <table class="ikoba-data-table dataTableManage">
27      <thead>
28      <tr>
29        <th>&nbsp;</th>
30        <th i18n:translate="">Payment Id</th>
31        <th i18n:translate="">Creation Date</th>
32        <th i18n:translate="">Payment Date</th>
33        <th i18n:translate="">Service</th>
34        <th i18n:translate="">Amount</th>
35        <th i18n:translate="">Currency</th>
36        <th i18n:translate="">State</th>
37        <th i18n:translate="">Contract</th>
38      </tr>
39      </thead>
40      <tbody>
41        <tr tal:repeat="value view/hitlist">
42          <td>
43            <!-- XXX: preformat values in view -->
44            <input type="checkbox" name="entries" tal:attributes="value python:value.__name__" />
45          </td>
46          <td tal:content="python: value.payment_id[:9]">PAYMENT_ID</td>
47          <td tal:content="python: layout.formatDatetime(value.creation_date)">CREATION DATE</td>
48          <td tal:content="python: layout.formatDatetime(value.payment_date)">PAYMENT DATE</td>
49          <td tal:content="python: view.gateway_services[value.gateway_service].title">SERVICE</td>
50          <td tal:content="python: value.amount">AMOUNT</td>
51          <td tal:content="python: value.currency">CURRENCY</td>
52          <td tal:content="python: view.payment_states.getTerm(value.state).title">STATE</td>
53          <td tal:content="python: value.title">TITLE</td>
54        </tr>
55      </tbody>
56    </table>
57    <input type="checkbox" onClick="toggle(this, 'entries')" />
58    <span  i18n:translate="">Select all</span>
59    <br /><br />
60    <input type="submit" name="remove"
61           tal:attributes="value view/remove_button" class="btn btn-default"
62           onclick="return confirmPost('Are you sure?')"/>
63  </div>
64</form>
Note: See TracBrowser for help on using the repository browser.