source: WAeUP_SRP/trunk/skins/waeup_pins/pins_view.pt @ 1062

Last change on this file since 1062 was 1062, checked in by joachim, 18 years ago

add search for serial No

  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1<metal:html tal:define="info options/info;
2                        rendered options/rendered;
3                        mtool here/portal_membership;
4                        member mtool/getAuthenticatedMember;
5                        ">
6  <metal:body use-macro="here/main_template/macros/master">
7    <metal:main fill-slot="main">
8      <span tal:condition="isAnon">
9      </span> 
10      <span tal:condition="not:isAnon">
11        <span tal:replace="structure rendered" />
12      <form action="." method="post">
13        <table>
14          <tr tal:repeat="pin info/used">
15            <td>
16              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
17                     tal:define="id string:${pin/serial}_${pin/prefix}"
18                     tal:attributes="value id;
19                     id python:'cb_' + id;"
20                     />
21            </td>
22            <td width="50px"> <span tal:content="pin/serial" />: </td>
23            <td tal:content="pin/pin" />
24            <td tal:content="pin/student_id" />
25            <td tal:condition="pin/student_url">
26              <a tal:condition="pin/student_url" href="" tal:content="pin/student"
27                 tal:attributes="href pin/student_url"></a>
28              <span tal:condition="not: pin/student_url" tal:content="pin/student" />
29            </td>
30          </tr>
31        </table>
32        <table width="100%" cellspacing="0" cellpadding="2"
33               summary="contents of the folder"
34               class="folderButtons">
35          <tr>
36            <td align="left" valign="top" rowspan="3"></td>
37            <td align="left" valign="top">
38              <input type="submit" name="disable_pins:method"
39                     value="disable pins"
40                     class="destructive"
41                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
42                     (cpsmcat('really disable ?'), )"
43                     />
44            </td>
45            <td align="left" valign="top">
46              <input type="submit" name="enable_pins:method"
47                     value="enable pins"
48                     class="destructive"
49                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
50                     (cpsmcat('really enable ?'), )"
51                     />
52            </td>
53          </tr>
54        </table>
55      </form>
56        <h3>PIN Batches</h3>
57        <br />
58      <form action="." method="get">
59        <select class="form-element" name=":action"
60                tal:attributes="onChange string:location.href='${context/absolute_url}/'+this.options[this.selectedIndex].value"
61                >
62          <option value="--">Goto Batch ...</option>
63          <option tal:repeat="batch context/objectIds"
64                  tal:attributes="value batch"
65                  tal:content="batch">
66          </option>
67        </select>
68      </form>
69      </span>
70    </metal:main>
71  </metal:body>
72</metal:html>
Note: See TracBrowser for help on using the repository browser.