source: main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/browser_templates/batchcontainer.pt @ 5124

Last change on this file since 5124 was 5118, checked in by uli, 15 years ago

Implement completely different design for access-codes and their batches. We drop using zope.catalogs here and care
for the limited set of operations we need on access codes and batches ourselves. This speeds up performance for batch
creation by factor 2 and uses only half the memory in ZODB than what was needed with old PIN implemenentation.

File size: 1.2 KB
Line 
1<h2>Manage Access-Code Batches</h2>
2
3<p>
4  The following batches are available:
5</p>
6<form method="POST">
7  <table>
8    <thead>
9      <tr>
10        <th>&nbsp;</th>
11        <th>Prefix</th><th>Entries/(invalidated)</th><th>Cost</th>
12        <th>Created</th><th>Creator</th>
13      </tr>
14    </thead>
15    <tbody>
16      <tr tal:repeat="batch context/values"
17          tal:attributes="class python: repeat['batch'].odd() and 'even' or 'odd'">
18        <td>
19          <input type="checkbox" name="batches" value="batch/prefix"
20                 tal:attributes="value batch/__name__" />
21        </td>
22        <td>
23          <span tal:replace="batch/prefix">APP</span>
24          -
25          <span tal:replace="batch/num">10</span>
26        </td>
27        <td>
28          <span tal:replace="batch/entry_num">1012</span>
29          /
30          <span tal:replace="batch/invalidated_num">512</span>
31        </td>
32        <td tal:content="batch/cost">12.12</td>
33        <td tal:content="python: batch.creation_date.ctime()">2009/12/24</td>
34        <td tal:content="batch/creator">some user</td>
35      </tr>
36      <tr tal:condition="not: context/values">
37        <td colspan="5"><b>No batches yet</b></td>
38      </tr>
39    </tbody>
40  </table>
41  <input type="submit" name="archive" value="Archive" />
42  <input type="submit" name="delete" value="Archive and Delete" />
43</form>
Note: See TracBrowser for help on using the repository browser.