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

Last change on this file since 7435 was 7198, checked in by Henrik Bettermann, 13 years ago

Use WAeUP datetime format and replace tabs in pagetemplates

File size: 1.2 KB
Line 
1<h2>Access Code Batches</h2>
2
3<form method="POST">
4  <p>
5    The following batches are available:
6  </p>
7
8  <table>
9    <thead>
10      <tr>
11        <th>&nbsp;</th>
12  <th>Prefix</th><th>Entries/(invalidated)</th><th>Cost</th>
13  <th>Created</th><th>Creator</th>
14      </tr>
15    </thead>
16    <tbody>
17      <tr tal:repeat="batch context/values"
18    tal:attributes="class python: repeat['batch'].odd() and 'even' or 'odd'">
19  <td>
20    <input type="checkbox" name="batches" value="batch/prefix"
21     tal:attributes="value batch/__name__" />
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">some user</td>
38      </tr>
39      <tr tal:condition="not: context/values">
40  <td colspan="5"><b>No batches yet</b></td>
41      </tr>
42    </tbody>
43  </table>
44  <input type="submit" name="archive" value="Archive" />
45  <input type="submit" name="delete" value="Archive and Delete" />
46</form>
Note: See TracBrowser for help on using the repository browser.