source: main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/browser_templates/paymentsmanagepage.pt @ 16507

Last change on this file since 16507 was 16507, checked in by Henrik Bettermann, 3 years ago

Add summary table of paid school fees in various sessions.

File size: 2.0 KB
Line 
1<form action="." tal:attributes="action request/URL" method="POST"
2      i18n:domain="waeup.kofa" enctype="multipart/form-data">
3
4  <table class="kofa-data-table dataTableManage">
5    <thead>
6    <tr>
7      <th>&nbsp;</th>
8      <th i18n:translate="">Payment Id</th>
9      <th i18n:translate="">Creation Date</th>
10      <th i18n:translate="">Payment Date</th>
11      <th i18n:translate="">Category</th>
12      <th i18n:translate="">Item</th>
13      <th i18n:translate="">Amount</th>
14      <th i18n:translate="">Session</th>
15      <th i18n:translate="">State</th>
16    </tr>
17    </thead>
18    <tbody>
19      <tr tal:repeat="cl context/values">
20         <td>
21          <input type="checkbox"
22             name="val_id"
23             tal:attributes="value cl/__name__"
24         tal:condition="python: not view.unremovable(cl)" />
25        </td>
26        <td> <a tal:attributes="href python: view.url(cl)">
27        <span tal:content="cl/p_id">PID</span></a></td>
28        <td tal:content="python: layout.formatDatetime(cl.creation_date)">CREATION DATE</td>
29        <td tal:content="python: layout.formatDatetime(cl.payment_date)">PAYMENT DATE</td>
30      <td tal:content ="cl/category">CATEGORY</td>
31      <td tal:content ="cl/display_item">ITEM</td>
32      <td tal:content ="cl/amount_auth">AMOUNT</td>
33      <td tal:content ="cl/p_session">SESSION</td>
34      <td tal:content ="cl/p_state_title">STATE</td>
35      </tr>
36    </tbody>
37  </table>
38
39  <div tal:condition="python: view.availableActions and view.manage_payments_allowed">
40    <span tal:repeat="action view/actions"
41          tal:omit-tag="">
42      <input tal:replace="structure action/render"/>
43    </span>
44  </div>
45  <br /><br />
46
47  <table class="table" style="width: 33%;">
48    <thead>
49    <tr>
50      <th i18n:translate="">Session</th>
51      <th i18n:translate="">Sum Total School Fees</th>
52    </tr>
53    </thead>
54    <tbody>
55      <tr tal:repeat="sfpm python: view.schoolfee_payments_made.items()">
56        <td tal:content ="python: sfpm[0]">YEAR</td>
57        <td tal:content ="python: sfpm[1]">AMOUNT</td>
58      </tr>
59    </tbody>
60  </table>
61
62</form>
Note: See TracBrowser for help on using the repository browser.