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

Last change on this file since 6549 was 6470, checked in by Henrik Bettermann, 14 years ago

It should always be workflow state not status. My mistake.

File size: 1.4 KB
Line 
1<form method="POST">
2
3<br />
4
5  <input type="submit" name="search" value="Search" />
6  for access codes
7
8  <select name="searchtype">
9    <option value="code">with PIN</option>
10    <option value="batch_serial">with serial</option>
11    <option value="history">with message term</option>
12  </select>
13
14  <input type="text" name="searchterm" />
15
16  <p>&nbsp;</p>
17  <div tal:condition="view/hitlist">
18    <h3>Search Results</h3>
19    <input type="hidden" name="old_searchterm"
20         tal:attributes="value view/searchterm" />
21    <input type="hidden" name="old_searchtype"
22         tal:attributes="value view/searchtype" />
23    <table class="display dataTableManage">
24      <thead>
25        <tr>
26          <th>&nbsp;</th>
27          <th width="50px">Serial</th><th>AC</th><th>State</th><th>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/state">unused</td>
37          <td tal:content="structure python:item.history.replace('||','<br />')">
38            history
39          </td>
40        </tr>
41      </tbody>
42    </table>
43    <div class="actionButtons">
44        <input type="submit" name="disable" value="Disable ACs" />
45        <input type="submit" name="enable" value="Enable ACs" />
46    </div>
47
48  </div>
49</form>
Note: See TracBrowser for help on using the repository browser.