Last change
on this file since 5489 was
5155,
checked in by uli, 15 years ago
|
Add UI components for searching access codes.
|
File size:
1.2 KB
|
Line | |
---|
1 | <h2>Search Scratch Cards</h2> |
---|
2 | |
---|
3 | <form method="POST"> |
---|
4 | <input type="submit" name="search" value="Search" /> |
---|
5 | for scratch cards |
---|
6 | |
---|
7 | <select name="searchtype"> |
---|
8 | <option value="stud_id"> |
---|
9 | used by student with ID |
---|
10 | </option> |
---|
11 | <option value="pin">with PIN</option> |
---|
12 | <option value="serial">with serial</option> |
---|
13 | </select>: |
---|
14 | |
---|
15 | <input type="text" name="searchterm" /> |
---|
16 | <br /> |
---|
17 | <b>complete numbers only</b> |
---|
18 | (Student ID means registration number for APP SCs) |
---|
19 | <br /> |
---|
20 | |
---|
21 | <p> </p> |
---|
22 | <div tal:condition="view/searchresults"> |
---|
23 | <h3>Search Results</h3> |
---|
24 | <table> |
---|
25 | <thead> |
---|
26 | <tr> |
---|
27 | <th> </th> |
---|
28 | <th>Serial</th><th>AC</th><th>Status</th> |
---|
29 | </tr> |
---|
30 | </thead> |
---|
31 | <tbody> |
---|
32 | <tr tal:repeat="item view/searchresults" |
---|
33 | tal:attributes="class python: repeat['item'].odd() and 'even' or 'odd'"> |
---|
34 | <td><input type="checkbox" name="entries" |
---|
35 | tal:attributes="value item/code" /></td> |
---|
36 | <td tal:content="item/serial">1</td> |
---|
37 | <td tal:content="item/code">APP-1-1234567890</td> |
---|
38 | <td tal:content="item/status">unused</td> |
---|
39 | </tr> |
---|
40 | </tbody> |
---|
41 | </table> |
---|
42 | |
---|
43 | <input type="submit" name="disable" value="Disable ACs" /> |
---|
44 | <input type="submit" name="enable" value="Enable ACs" /> |
---|
45 | |
---|
46 | </div> |
---|
47 | </form> |
---|
Note: See
TracBrowser for help on using the repository browser.