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> </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 | <input type="checkbox" name="entries" tal:attributes="value python:value[0].__name__" /> |
---|
44 | </td> |
---|
45 | <td><span tal:content="python: value[0].payment_id[:9]"></span>...</td> |
---|
46 | <td tal:content="python: layout.formatDatetime(value[0].creation_date)">CREATION DATE</td> |
---|
47 | <td tal:content="python: layout.formatDatetime(value[0].payment_date)">PAYMENT DATE</td> |
---|
48 | <td tal:content="python: view.gateway_services[value[0].gateway_service].title">SERVICE</td> |
---|
49 | <td tal:content="python: value[0].amount">AMOUNT</td> |
---|
50 | <td tal:content="python: value[0].currency">CURRENCY</td> |
---|
51 | <td tal:content="python: view.payment_states.getTerm(value[0].state).title">STATE</td> |
---|
52 | <td> |
---|
53 | <span tal:condition="python: value[1] is not None"> |
---|
54 | <a tal:attributes="href python: view.url(value[2])"> |
---|
55 | <span tal:content="python: value[1].title">PAYABLETITLE</span> |
---|
56 | </a> |
---|
57 | </span> |
---|
58 | </td> |
---|
59 | </tr> |
---|
60 | </tbody> |
---|
61 | </table> |
---|
62 | <input type="checkbox" onClick="toggle(this, 'entries')" /> |
---|
63 | <span i18n:translate="">Select all</span> |
---|
64 | <br /><br /> |
---|
65 | <input type="submit" name="remove" |
---|
66 | tal:attributes="value view/remove_button" class="btn btn-default" |
---|
67 | onclick="return confirmPost('Are you sure?')"/> |
---|
68 | </div> |
---|
69 | </form> |
---|
70 | |
---|