source: main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/browser_templates/batchcontainer.pt @ 9245

Last change on this file since 9245 was 9245, checked in by Henrik Bettermann, 12 years ago

Zero-batches must not be removed or archived.

File size: 1.4 KB
Line 
1<form i18n:domain="waeup.kofa" method="POST">
2  <p i18n:translate="">
3    The following batches are available:
4  </p>
5  <table>
6    <thead>
7      <tr>
8        <th>&nbsp;</th>
9        <th i18n:translate="">Prefix</th>
10        <th i18n:translate="">Entries/(invalidated)</th>
11        <th i18n:translate="">Cost</th>
12        <th i18n:translate="">Date of Creation</th>
13        <th i18n:translate="">Creator</th>
14      </tr>
15    </thead>
16    <tbody>
17  <tr tal:repeat="batch context/values">
18  <td>
19    <input type="checkbox" name="batches" value="batch/prefix"
20     tal:attributes="value batch/__name__"
21     tal:condition="batch/num" />
22  </td>
23  <td>
24    <span tal:replace="batch/prefix">APP</span>
25    -
26    <span tal:replace="batch/num">10</span>
27  </td>
28  <td>
29    <span tal:replace="batch/entry_num">1012</span>
30    /
31    <span tal:replace="batch/used_num">512</span>
32  </td>
33  <td tal:content="batch/cost">12.12</td>
34  <td tal:content="python: batch.creation_date.strftime('%Y-%m-%d %H:%M:%S')">
35      2011-11-22 18:04:55
36  </td>
37  <td tal:content="batch/creator">SOMEUSER</td>
38      </tr>
39      <tr tal:condition="not: context/values">
40      <td colspan="5"><b i18n:translate="">No batches yet</b></td>
41      </tr>
42    </tbody>
43  </table>
44  <input type="submit" class="btn" name="archive"
45      tal:attributes="value view/archive_button" />
46  <input type="submit" class="btn" name="delete"
47       tal:attributes="value view/delete_button" />
48</form>
Note: See TracBrowser for help on using the repository browser.