source: main/waeup.kofa/branches/uli-rm-bootstrap/src/waeup/kofa/accesscodes/browser_templates/searchpage.pt @ 17651

Last change on this file since 17651 was 11254, checked in by uli, 11 years ago

Merge changes from uli-diazo-themed back into trunk. If this works, then a miracle happened.

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