source: main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/browser_templates/searchpage.pt @ 9819

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

Translate AC state in tables.

File size: 1.9 KB
Line 
1<form method="POST" i18n:domain="waeup.sirp">
2<br />
3  <input type="submit" class="btn primary" name="search"
4      tal:attributes="value view/search_button" />
5  <span i18n:translate="">for access codes</span>
6  <select name="searchtype">
7    <option i18n:translate="" value="code">with PIN</option>
8    <option i18n:translate="" value="batch_serial">with serial</option>
9    <option i18n:translate="" value="history">with message term</option>
10  </select>
11  <input type="text" name="searchterm" />
12  <p>&nbsp;</p>
13  <div tal:condition="view/hitlist">
14    <h3>Search Results</h3>
15    <input type="hidden" name="old_searchterm"
16         tal:attributes="value view/searchterm" />
17    <input type="hidden" name="old_searchtype"
18         tal:attributes="value view/searchtype" />
19    <table class="display dataTableManage">
20      <thead>
21      <tr>
22        <th>&nbsp;</th>
23        <th width="50px" i18n:translate="">Serial</th>
24        <th i18n:translate="">AC</th>
25        <th i18n:translate="">State</th>
26        <th i18n:translate="">Owner</th>
27        <th i18n:translate="">History</th>
28      </tr>
29      </thead>
30      <tbody>
31      <tr tal:repeat="item view/hitlist">
32        <td><input type="checkbox" name="entries"
33                   tal:attributes="value item/code" /></td>
34        <td tal:content="item/batch_serial">1</td>
35        <td tal:content="item/code">APP-1-1234567890</td>
36        <td tal:content="item/translated_state">unused</td>
37        <td tal:content="item/owner">Id</td>
38          <td tal:content="structure python:item.history.replace('||','<br />')">
39            history
40          </td>
41      </tr>
42      </tbody>
43    </table>
44    <div>
45      <input type="submit" class="btn" name="disable"
46          tal:attributes="value view/disable_button" />
47      <input type="submit" class="btn" name="enable"
48          tal:attributes="value view/enable_button" />
49    </div>
50
51  </div>
52</form>
Note: See TracBrowser for help on using the repository browser.